Home
last modified time | relevance | path

Searched refs:KASAN_GRANULE_MASK (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/mm/kasan/
Dshadow.c90 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_poison()
92 if (WARN_ON(size & KASAN_GRANULE_MASK)) in kasan_poison()
108 if (size & KASAN_GRANULE_MASK) { in kasan_poison_last_granule()
110 *shadow = size & KASAN_GRANULE_MASK; in kasan_poison_last_granule()
134 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_unpoison()
Dkasan.h105 #define KASAN_GRANULE_MASK (KASAN_GRANULE_SIZE - 1) macro
452 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_poison()
454 if (WARN_ON(size & KASAN_GRANULE_MASK)) in kasan_poison()
470 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_unpoison()
480 init && ((unsigned long)size & KASAN_GRANULE_MASK)) { in kasan_unpoison()
Dgeneric.c48 s8 last_accessible_byte = addr & KASAN_GRANULE_MASK; in memory_is_poisoned_1()
64 if (unlikely(((addr + size - 1) & KASAN_GRANULE_MASK) < size - 1)) in memory_is_poisoned_2_4_8()
136 ((long)(last_byte & KASAN_GRANULE_MASK) >= *last_shadow))) in memory_is_poisoned_n()