Lines Matching defs:shadow
405 static int shadow_pointer_offset(const void *row, const void *shadow)
410 return 3 + (BITS_PER_LONG/8)*2 + (shadow - row)*2 +
411 (shadow - row) / SHADOW_BYTES_PER_BLOCK + 1;
417 const void *shadow = kasan_mem_to_shadow(addr);
420 shadow_row = (void *)round_down((unsigned long)shadow,
434 * We should not pass a shadow pointer to generic
443 if (row_is_guilty(shadow_row, shadow))
445 shadow_pointer_offset(shadow_row, shadow),
565 * canonical half of the address space) cause out-of-bounds shadow memory reads
568 * shadow memory access lands in the non-canonical part of the address space.
581 * For faults near the shadow address for NULL, we can be fairly certain
582 * that this is a KASAN shadow memory access.
583 * For faults that correspond to shadow for low canonical addresses, we
584 * can still be pretty sure - that shadow region is a fairly narrow
586 * But faults that look like shadow for non-canonical addresses are a