Home
last modified time | relevance | path

Searched refs:thunk (Results 1 – 17 of 17) sorted by relevance

/linux/arch/s390/kernel/
H A Dnospec-branch.c105 u8 *instr, *thunk, *br; in __nospec_revert() local
119 thunk = instr + (long)(*(int *)(instr + 2)) * 2; in __nospec_revert()
120 if (thunk[0] == 0xc6 && thunk[1] == 0x00) in __nospec_revert()
122 br = thunk + (long)(*(int *)(thunk + 2)) * 2; in __nospec_revert()
/linux/tools/testing/selftests/x86/bugs/
H A Dits_indirect_alignment.py110 thunk = int(operand, 16) variable
111 if thunk > x86_indirect_its_thunk_r15:
112 insn_at_thunk = list(cap.disasm(prog.read(thunk, 16), thunk))[0]
114 if 'jmp' in insn_at_thunk.mnemonic and thunk & 0x20:
/linux/arch/s390/tools/
H A Dgcc-thunk-extern.sh6 cat << "END" | $@ -x c - -fno-PIE -march=z10 -mindirect-branch=thunk-extern -mfunction-return=thunk
/linux/arch/s390/
H A DMakefile81 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk-extern
82 CC_FLAGS_EXPOLINE += -mfunction-return=thunk-extern
84 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk
85 CC_FLAGS_EXPOLINE += -mfunction-return=thunk
H A DKconfig608 depends on $(cc-option,-mindirect-branch=thunk)
614 Requires a compiler with -mindirect-branch=thunk support for full
621 $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC))
626 -mindirect-branch=thunk-extern, which requires a newer compiler.
/linux/arch/x86/kernel/
H A Dalternative.c140 static void *its_init_thunk(void *thunk, int reg) in its_init_thunk() argument
142 u8 *bytes = thunk; in its_init_thunk()
170 return thunk + offset; in its_init_thunk()
250 void *thunk; in its_allocate_thunk() local
280 thunk = its_page + its_offset; in its_allocate_thunk()
283 return its_init_thunk(thunk, reg); in its_allocate_thunk()
288 u8 *thunk = __x86_indirect_its_thunk_array[reg]; in its_static_thunk() local
293 return thunk - 2; in its_static_thunk()
295 return thunk; in its_static_thunk()
804 u8 *thunk = __x86_indirect_its_thunk_array[reg]; in emit_its_trampoline() local
[all …]
/linux/arch/x86/
H A DMakefile16 RETPOLINE_CFLAGS := -mindirect-branch=thunk-extern -mindirect-branch-register
17 RETPOLINE_VDSO_CFLAGS := -mindirect-branch=thunk-inline -mindirect-branch-register
20 RETPOLINE_CFLAGS := -mretpoline-external-thunk
26 RETHUNK_CFLAGS := -mfunction-return=thunk-extern
27 RETHUNK_RUSTFLAGS := -Zfunction-return=thunk-extern
H A DKconfig2387 def_bool $(cc-option,-mfunction-return=thunk-extern)
2471 branches. Requires a compiler with -mindirect-branch=thunk-extern
2482 Requires a compiler with -mfunction-return=thunk-extern
/linux/drivers/mtd/chips/
H A Dfwh_lock.h30 unsigned long adr, int len, void *thunk) in fwh_xxlock_oneblock() argument
33 struct fwh_xxlock_thunk *xxlt = (struct fwh_xxlock_thunk *)thunk; in fwh_xxlock_oneblock()
H A Dcfi_util.c358 loff_t ofs, size_t len, void *thunk) in cfi_varsize_frob() argument
418 ret = (*frob)(map, &cfi->chips[chipnum], adr, size, thunk); in cfi_varsize_frob()
H A Dcfi_cmdset_0001.c1953 unsigned long adr, int len, void *thunk) in do_erase_oneblock() argument
2092 int len, void *thunk) in do_getlockstatus_oneblock() argument
2110 int len, void *thunk) in do_printlockstatus_oneblock() argument
2113 adr, do_getlockstatus_oneblock(map, chip, adr, len, thunk)); in do_printlockstatus_oneblock()
2122 unsigned long adr, int len, void *thunk) in do_xxlock_oneblock() argument
2142 if (thunk == DO_XXLOCK_ONEBLOCK_LOCK) { in do_xxlock_oneblock()
2145 } else if (thunk == DO_XXLOCK_ONEBLOCK_UNLOCK) { in do_xxlock_oneblock()
H A Dcfi_cmdset_0002.c2510 …_erase_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) in do_erase_oneblock() argument
2631 unsigned long adr, int len, void *thunk) in do_atmel_lock() argument
2666 unsigned long adr, int len, void *thunk) in do_atmel_unlock() argument
2718 unsigned long adr, int len, void *thunk) in do_ppb_xxlock() argument
2742 if (thunk == DO_XXLOCK_ONEBLOCK_LOCK) { in do_ppb_xxlock()
2746 } else if (thunk == DO_XXLOCK_ONEBLOCK_UNLOCK) { in do_ppb_xxlock()
2754 } else if (thunk == DO_XXLOCK_ONEBLOCK_GETLOCK) { in do_ppb_xxlock()
/linux/include/linux/mtd/
H A Dcfi.h381 unsigned long adr, int len, void *thunk);
384 loff_t ofs, size_t len, void *thunk);
/linux/Documentation/admin-guide/hw-vuln/
H A Dindirect-target-selection.rst71 replaced with a new thunk, such that they get a unique address. This could
76 with a jump to a static thunk in __x86_indirect_its_thunk_array. If required,
79 All vulnerable RETs are replaced with a static thunk, they do not use dynamic
H A Dspectre.rst489 -mindirect-branch=thunk-extern -mindirect-branch-register options.
491 to support -mretpoline-external-thunk option. The kernel config
/linux/tools/virtio/
H A DMakefile18 …-include ../../include/linux/kconfig.h $(call cc-option,-mfunction-return=thunk) $(call cc-option,…
/linux/arch/x86/kernel/cpu/
H A Dbugs.c80 static void __init set_return_thunk(void *thunk) in set_return_thunk() argument
82 x86_return_thunk = thunk; in set_return_thunk()
84 pr_info("active return thunk: %ps\n", thunk); in set_return_thunk()