Home
last modified time | relevance | path

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

/linux-5.19.10/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.h72 #define KASAN_GRANULE_MASK (KASAN_GRANULE_SIZE - 1) macro
388 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_poison()
390 if (WARN_ON(size & KASAN_GRANULE_MASK)) in kasan_poison()
406 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_unpoison()
416 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()