Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/mm/kasan/
Dcommon.c372 static inline bool shadow_invalid(u8 tag, s8 shadow_byte) in shadow_invalid() argument
375 return shadow_byte < 0 || in shadow_invalid()
376 shadow_byte >= KASAN_SHADOW_SCALE_SIZE; in shadow_invalid()
379 if ((u8)shadow_byte == KASAN_TAG_INVALID) in shadow_invalid()
381 if ((tag != KASAN_TAG_KERNEL) && (tag != (u8)shadow_byte)) in shadow_invalid()
390 s8 shadow_byte; in __kasan_slab_free() local
409 shadow_byte = READ_ONCE(*(s8 *)kasan_mem_to_shadow(object)); in __kasan_slab_free()
410 if (shadow_invalid(tag, shadow_byte)) { in __kasan_slab_free()