Hay
Date
Feb. 5, 2025, 2:09 p.m.

Environment
qemu-x86_64

[   81.684591] ==================================================================
[   81.685340] BUG: KFENCE: use-after-free read in test_krealloc+0x2e9/0x530
[   81.685340] 
[   81.686050] Use-after-free read at 0x(____ptrval____) (in kfence-#219):
[   81.686363]  test_krealloc+0x2e9/0x530
[   81.686607]  kunit_try_run_case+0x126/0x290
[   81.686961]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   81.687478]  kthread+0x19e/0x1e0
[   81.687862]  ret_from_fork+0x41/0x70
[   81.688340]  ret_from_fork_asm+0x1b/0x30
[   81.689061] 
[   81.689334] kfence-#219: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   81.689334] 
[   81.690134] allocated by task 295 on cpu 1 at 81.683825s:
[   81.691019]  test_alloc+0x2a0/0x8d0
[   81.691718]  test_krealloc+0xb1/0x530
[   81.692283]  kunit_try_run_case+0x126/0x290
[   81.692900]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   81.693409]  kthread+0x19e/0x1e0
[   81.694102]  ret_from_fork+0x41/0x70
[   81.694757]  ret_from_fork_asm+0x1b/0x30
[   81.695406] 
[   81.695763] freed by task 295 on cpu 1 at 81.684233s:
[   81.696613]  krealloc+0x83/0x140
[   81.697210]  test_krealloc+0x137/0x530
[   81.697819]  kunit_try_run_case+0x126/0x290
[   81.698439]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   81.699118]  kthread+0x19e/0x1e0
[   81.699666]  ret_from_fork+0x41/0x70
[   81.700275]  ret_from_fork_asm+0x1b/0x30
[   81.700916] 
[   81.701235] CPU: 1 PID: 295 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   81.702071] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   81.702902] ==================================================================