| /linux/arch/s390/kernel/ |
| H A D | nospec-branch.c | 105 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 D | its_indirect_alignment.py | 110 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 D | gcc-thunk-extern.sh | 6 cat << "END" | $@ -x c - -fno-PIE -march=z10 -mindirect-branch=thunk-extern -mfunction-return=thunk…
|
| /linux/arch/s390/ |
| H A D | Makefile | 81 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 D | Kconfig | 621 depends on $(cc-option,-mindirect-branch=thunk) 627 Requires a compiler with -mindirect-branch=thunk support for full 634 $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC)) 639 -mindirect-branch=thunk-extern, which requires a newer compiler.
|
| /linux/arch/x86/kernel/ |
| H A D | alternative.c | 140 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() 839 u8 *thunk = __x86_indirect_its_thunk_array[reg]; in emit_its_trampoline() local [all …]
|
| /linux/drivers/mtd/chips/ |
| H A D | fwh_lock.h | 30 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 D | cfi_util.c | 358 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 D | cfi_cmdset_0001.c | 1949 unsigned long adr, int len, void *thunk) in do_erase_oneblock() argument 2088 int len, void *thunk) in do_getlockstatus_oneblock() argument 2106 int len, void *thunk) in do_printlockstatus_oneblock() argument 2109 adr, do_getlockstatus_oneblock(map, chip, adr, len, thunk)); in do_printlockstatus_oneblock() 2118 unsigned long adr, int len, void *thunk) in do_xxlock_oneblock() argument 2138 if (thunk == DO_XXLOCK_ONEBLOCK_LOCK) { in do_xxlock_oneblock() 2141 } else if (thunk == DO_XXLOCK_ONEBLOCK_UNLOCK) { in do_xxlock_oneblock()
|
| H A D | cfi_cmdset_0002.c | 2509 …_erase_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) in do_erase_oneblock() argument 2630 unsigned long adr, int len, void *thunk) in do_atmel_lock() argument 2665 unsigned long adr, int len, void *thunk) in do_atmel_unlock() argument 2717 unsigned long adr, int len, void *thunk) in do_ppb_xxlock() argument 2741 if (thunk == DO_XXLOCK_ONEBLOCK_LOCK) { in do_ppb_xxlock() 2745 } else if (thunk == DO_XXLOCK_ONEBLOCK_UNLOCK) { in do_ppb_xxlock() 2753 } else if (thunk == DO_XXLOCK_ONEBLOCK_GETLOCK) { in do_ppb_xxlock()
|
| /linux/include/linux/mtd/ |
| H A D | cfi.h | 381 unsigned long adr, int len, void *thunk); 384 loff_t ofs, size_t len, void *thunk);
|
| /linux/Documentation/admin-guide/hw-vuln/ |
| H A D | indirect-target-selection.rst | 71 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 D | spectre.rst | 489 -mindirect-branch=thunk-extern -mindirect-branch-register options. 491 to support -mretpoline-external-thunk option. The kernel config
|
| /linux/tools/virtio/ |
| H A D | Makefile | 18 …-include ../../include/linux/kconfig.h $(call cc-option,-mfunction-return=thunk) $(call cc-option,…
|
| /linux/drivers/mtd/lpddr/ |
| H A D | lpddr_cmds.c | 712 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock() argument 727 if (thunk == DO_XXLOCK_LOCK) { in do_xxlock() 730 } else if (thunk == DO_XXLOCK_UNLOCK) { in do_xxlock()
|