/linux-6.6.21/arch/loongarch/include/asm/ |
D | kasan.h | 13 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 34 #define XKPRANGE_CC_SHADOW_SIZE (XKPRANGE_CC_SIZE >> KASAN_SHADOW_SCALE_SHIFT) 41 #define XKPRANGE_UC_SHADOW_SIZE (XKPRANGE_UC_SIZE >> KASAN_SHADOW_SCALE_SHIFT) 48 #define XKVRANGE_VC_SHADOW_SIZE (XKVRANGE_VC_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
|
/linux-6.6.21/arch/x86/include/asm/ |
D | kasan.h | 7 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 17 KASAN_SHADOW_SCALE_SHIFT)) 24 KASAN_SHADOW_SCALE_SHIFT)))
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | kasan.h | 20 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 29 (KASAN_KERN_START >> KASAN_SHADOW_SCALE_SHIFT)) 34 #define KASAN_SHADOW_END (-(-KASAN_SHADOW_START >> KASAN_SHADOW_SCALE_SHIFT))
|
/linux-6.6.21/arch/arm/include/asm/ |
D | kasan_def.h | 74 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 76 #define KASAN_SHADOW_END ((UL(1) << (32 - KASAN_SHADOW_SCALE_SHIFT)) \
|
D | kasan.h | 17 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
|
/linux-6.6.21/Documentation/arch/arm64/ |
D | kasan-offsets.sh | 12 echo KASAN_SHADOW_SCALE_SHIFT = 3 20 echo KASAN_SHADOW_SCALE_SHIFT = 4
|
/linux-6.6.21/arch/s390/include/asm/ |
D | kasan.h | 9 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 11 (_AC(1, UL) << (_REGION1_SHIFT - KASAN_SHADOW_SCALE_SHIFT))
|
/linux-6.6.21/arch/xtensa/include/asm/ |
D | kasan.h | 13 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 20 #define KASAN_SHADOW_SIZE (-KASAN_START_VADDR >> KASAN_SHADOW_SCALE_SHIFT)
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | kasan.h | 28 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 30 #define KASAN_SHADOW_SIZE (UL(1) << ((VA_BITS - 1) - KASAN_SHADOW_SCALE_SHIFT))
|
/linux-6.6.21/arch/um/include/asm/ |
D | kasan.h | 11 #define KASAN_SHADOW_SCALE_SHIFT 3 macro 17 KASAN_SHADOW_SCALE_SHIFT)
|
/linux-6.6.21/arch/arm64/ |
D | Makefile | 138 KASAN_SHADOW_SCALE_SHIFT := 4 macro 140 KASAN_SHADOW_SCALE_SHIFT := 3 macro 143 KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) 144 KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) 145 KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT)
|
/linux-6.6.21/arch/loongarch/mm/ |
D | kasan_init.c | 66 return (void *)((maddr >> KASAN_SHADOW_SCALE_SHIFT) + offset); in kasan_mem_to_shadow() 81 …return (void *)(((addr - XKVRANGE_VC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKVRANGE_VC_STA… in kasan_shadow_to_mem() 83 …return (void *)(((addr - XKPRANGE_UC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_UC_STA… in kasan_shadow_to_mem() 85 …return (void *)(((addr - XKPRANGE_CC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_CC_STA… in kasan_shadow_to_mem()
|
/linux-6.6.21/arch/arm64/include/asm/ |
D | kasan.h | 36 #define _KASAN_SHADOW_START(va) (KASAN_SHADOW_END - (1UL << ((va) - KASAN_SHADOW_SCALE_SHIFT)))
|
D | memory.h | 74 #define KASAN_SHADOW_END ((UL(1) << (64 - KASAN_SHADOW_SCALE_SHIFT)) \ 76 #define PAGE_END (KASAN_SHADOW_END - (1UL << (vabits_actual - KASAN_SHADOW_SCALE_SHIFT)))
|
D | cache.h | 48 #define ARCH_SLAB_MINALIGN (1ULL << KASAN_SHADOW_SCALE_SHIFT)
|
/linux-6.6.21/scripts/gdb/linux/ |
D | mm.py | 109 self.KASAN_SHADOW_SCALE_SHIFT = 3 111 self.KASAN_SHADOW_SCALE_SHIFT = 4 113 … self.KASAN_SHADOW_END = (1 << (64 - self.KASAN_SHADOW_SCALE_SHIFT)) + self.KASAN_SHADOW_OFFSET 114 …self.PAGE_END = self.KASAN_SHADOW_END - (1 << (self.vabits_actual - self.KASAN_SHADOW_SCALE_SHIFT))
|
/linux-6.6.21/include/linux/ |
D | moduleloader.h | 127 #define MODULE_ALIGN (PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
|
D | kasan.h | 60 return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT) in kasan_mem_to_shadow()
|
/linux-6.6.21/arch/xtensa/mm/ |
D | kasan_init.c | 78 (KASAN_START_VADDR >> KASAN_SHADOW_SCALE_SHIFT)); in kasan_init()
|
/linux-6.6.21/mm/kasan/ |
D | shadow.c | 239 nr_shadow_pages = mem_data->nr_pages >> KASAN_SHADOW_SCALE_SHIFT; in kasan_mem_notifier() 609 KASAN_SHADOW_SCALE_SHIFT; in kasan_alloc_module_shadow()
|
D | kasan.h | 126 #define KASAN_GRANULE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT) 298 << KASAN_SHADOW_SCALE_SHIFT); in kasan_shadow_to_mem()
|
D | init.c | 459 end = addr + (size >> KASAN_SHADOW_SCALE_SHIFT); in kasan_remove_zero_shadow() 494 shadow_end = shadow_start + (size >> KASAN_SHADOW_SCALE_SHIFT); in kasan_add_zero_shadow()
|
/linux-6.6.21/Documentation/translations/zh_CN/dev-tools/ |
D | kasan.rst | 254 return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT) 258 在这里 ``KASAN_SHADOW_SCALE_SHIFT = 3`` 。
|
/linux-6.6.21/arch/powerpc/include/asm/nohash/32/ |
D | pgtable.h | 119 #define VMALLOC_END ALIGN_DOWN(ioremap_bot, PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
|
/linux-6.6.21/arch/arm64/mm/ |
D | kasan_init.c | 172 KASAN_SHADOW_END - (1UL << (64 - KASAN_SHADOW_SCALE_SHIFT))); in kasan_early_init()
|