Lines Matching refs:addr
73 char *addr; /* Address at which the bad access occurred. */ member
149 cur += scnprintf(cur, end - cur, " 0x%p", (void *)r->addr); in report_matches()
322 expect.addr = buf - 1; in test_out_of_bounds_read()
323 READ_ONCE(*expect.addr); in test_out_of_bounds_read()
328 expect.addr = buf + size; in test_out_of_bounds_read()
329 READ_ONCE(*expect.addr); in test_out_of_bounds_read()
346 expect.addr = buf - 1; in test_out_of_bounds_write()
347 WRITE_ONCE(*expect.addr, 42); in test_out_of_bounds_write()
362 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_use_after_free_read()
363 test_free(expect.addr); in test_use_after_free_read()
364 READ_ONCE(*expect.addr); in test_use_after_free_read()
377 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_double_free()
378 test_free(expect.addr); in test_double_free()
379 test_free(expect.addr); /* Double-free. */ in test_double_free()
394 expect.addr = buf + 1; /* Free on invalid address. */ in test_invalid_addr_free()
395 test_free(expect.addr); /* Invalid address free. */ in test_invalid_addr_free()
414 expect.addr = buf + size; in test_corruption()
415 WRITE_ONCE(*expect.addr, 42); in test_corruption()
420 expect.addr = buf - 1; in test_corruption()
421 WRITE_ONCE(*expect.addr, 42); in test_corruption()
464 expect.addr = buf + size + align; in test_kmalloc_aligned_oob_read()
465 READ_ONCE(*expect.addr); in test_kmalloc_aligned_oob_read()
485 expect.addr = buf + size; in test_kmalloc_aligned_oob_write()
486 WRITE_ONCE(*expect.addr, READ_ONCE(*expect.addr) + 1); in test_kmalloc_aligned_oob_write()
551 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_init_on_free()
553 expect.addr[i] = i + 1; in test_init_on_free()
554 test_free(expect.addr); in test_init_on_free()
562 KUNIT_EXPECT_EQ(test, expect.addr[i], (char)0); in test_init_on_free()
631 .addr = &__kfence_pool[10], in test_invalid_access()
652 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_memcache_typesafe_by_rcu()
653 *expect.addr = 42; in test_memcache_typesafe_by_rcu()
656 test_free(expect.addr); in test_memcache_typesafe_by_rcu()
657 KUNIT_EXPECT_EQ(test, *expect.addr, (char)42); in test_memcache_typesafe_by_rcu()
671 KUNIT_EXPECT_EQ(test, *expect.addr, (char)42); in test_memcache_typesafe_by_rcu()
682 .addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY), in test_krealloc()
685 char *buf = expect.addr; in test_krealloc()
711 READ_ONCE(*expect.addr); /* Ensure krealloc() actually freed earlier KFENCE object. */ in test_krealloc()