Home
last modified time | relevance | path

Searched refs:KASAN_SHADOW_SCALE_SHIFT (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.6.21/arch/loongarch/include/asm/
Dkasan.h13 #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/
Dkasan.h7 #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/
Dkasan.h20 #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/
Dkasan_def.h74 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
76 #define KASAN_SHADOW_END ((UL(1) << (32 - KASAN_SHADOW_SCALE_SHIFT)) \
Dkasan.h17 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
/linux-6.6.21/Documentation/arch/arm64/
Dkasan-offsets.sh12 echo KASAN_SHADOW_SCALE_SHIFT = 3
20 echo KASAN_SHADOW_SCALE_SHIFT = 4
/linux-6.6.21/arch/s390/include/asm/
Dkasan.h9 #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/
Dkasan.h13 #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/
Dkasan.h28 #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/
Dkasan.h11 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
17 KASAN_SHADOW_SCALE_SHIFT)
/linux-6.6.21/arch/arm64/
DMakefile138 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/
Dkasan_init.c66 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/
Dkasan.h36 #define _KASAN_SHADOW_START(va) (KASAN_SHADOW_END - (1UL << ((va) - KASAN_SHADOW_SCALE_SHIFT)))
Dmemory.h74 #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)))
Dcache.h48 #define ARCH_SLAB_MINALIGN (1ULL << KASAN_SHADOW_SCALE_SHIFT)
/linux-6.6.21/scripts/gdb/linux/
Dmm.py109 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/
Dmoduleloader.h127 #define MODULE_ALIGN (PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
Dkasan.h60 return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT) in kasan_mem_to_shadow()
/linux-6.6.21/arch/xtensa/mm/
Dkasan_init.c78 (KASAN_START_VADDR >> KASAN_SHADOW_SCALE_SHIFT)); in kasan_init()
/linux-6.6.21/mm/kasan/
Dshadow.c239 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()
Dkasan.h126 #define KASAN_GRANULE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT)
298 << KASAN_SHADOW_SCALE_SHIFT); in kasan_shadow_to_mem()
Dinit.c459 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/
Dkasan.rst254 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/
Dpgtable.h119 #define VMALLOC_END ALIGN_DOWN(ioremap_bot, PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
/linux-6.6.21/arch/arm64/mm/
Dkasan_init.c172 KASAN_SHADOW_END - (1UL << (64 - KASAN_SHADOW_SCALE_SHIFT))); in kasan_early_init()

12