Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/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-6.15/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-6.15/arch/s390/
H A DMakefile79 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk-extern
80 CC_FLAGS_EXPOLINE += -mfunction-return=thunk-extern
82 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk
83 CC_FLAGS_EXPOLINE += -mfunction-return=thunk
H A DKconfig615 depends on $(cc-option,-mindirect-branch=thunk)
621 Requires a compiler with -mindirect-branch=thunk support for full
628 $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC))
633 -mindirect-branch=thunk-extern, which requires a newer compiler.
/linux-6.15/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-6.15/arch/x86/
H A DMakefile16 RETPOLINE_CFLAGS := $(call cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register)
17 RETPOLINE_VDSO_CFLAGS := $(call cc-option,-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 DKconfig2413 def_bool $(cc-option,-mfunction-return=thunk-extern)
2497 branches. Requires a compiler with -mindirect-branch=thunk-extern
2508 Requires a compiler with -mfunction-return=thunk-extern
/linux-6.15/arch/x86/kernel/
H A Dalternative.c145 u8 *bytes = thunk; in its_init_thunk()
173 return thunk + offset; in its_init_thunk()
245 void *thunk; in its_allocate_thunk() local
275 thunk = its_page + its_offset; in its_allocate_thunk()
288 return thunk - 2; in its_static_thunk()
290 return thunk; in its_static_thunk()
811 thunk = tmp; in emit_its_trampoline()
813 return __emit_trampoline(addr, insn, bytes, thunk, thunk); in emit_its_trampoline()
1686 thunk = tmp; in emit_paranoid_trampoline()
1689 return __emit_trampoline(addr, insn, bytes, thunk, thunk); in emit_paranoid_trampoline()
[all …]
/linux-6.15/arch/x86/entry/
H A DMakefile21 obj-$(CONFIG_PREEMPTION) += thunk.o
/linux-6.15/include/linux/mtd/
H A Dcfi.h381 unsigned long adr, int len, void *thunk);
384 loff_t ofs, size_t len, void *thunk);
/linux-6.15/tools/virtio/
H A DMakefile18 …-include ../../include/linux/kconfig.h $(call cc-option,-mfunction-return=thunk) $(call cc-option,…
/linux-6.15/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-6.15/drivers/mtd/lpddr/
H A Dlpddr_cmds.c713 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock() argument
728 if (thunk == DO_XXLOCK_LOCK) { in do_xxlock()
731 } else if (thunk == DO_XXLOCK_UNLOCK) { in do_xxlock()
/linux-6.15/tools/objtool/Documentation/
H A Dobjtool.txt27 - Retpoline call site annotation -- annotates all retpoline thunk call
28 sites, enabling the kernel to patch them inline, to prevent "thunk
31 - Return thunk validation -- validates return thunks are used for
34 - Return thunk annotation -- annotates all return thunk sites so kernel
37 - Return thunk untraining validation -- validate that all entry paths
/linux-6.15/arch/x86/kernel/cpu/
H A Dbugs.c70 static void __init set_return_thunk(void *thunk) in set_return_thunk() argument
75 x86_return_thunk = thunk; in set_return_thunk()