Lines Matching refs:row
270 static bool meta_row_is_guilty(const void *row, const void *addr) in meta_row_is_guilty() argument
272 return (row <= addr) && (addr < row + META_MEM_BYTES_PER_ROW); in meta_row_is_guilty()
275 static int meta_pointer_offset(const void *row, const void *addr) in meta_pointer_offset() argument
288 (addr - row) / KASAN_GRANULE_SIZE * 3 + 1; in meta_pointer_offset()
294 void *row; in print_memory_metadata() local
296 row = (void *)round_down((unsigned long)addr, META_MEM_BYTES_PER_ROW) in print_memory_metadata()
306 (i == 0) ? ">%px: " : " %px: ", row); in print_memory_metadata()
313 kasan_metadata_fetch_row(&metadata[0], row); in print_memory_metadata()
319 if (meta_row_is_guilty(row, addr)) in print_memory_metadata()
320 pr_err("%*c\n", meta_pointer_offset(row, addr), '^'); in print_memory_metadata()
322 row += META_MEM_BYTES_PER_ROW; in print_memory_metadata()