Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 51.044305] ================================================================== [ 51.044389] BUG: KFENCE: use-after-free read in test_krealloc+0x51c/0x830 [ 51.044389] [ 51.044484] Use-after-free read at 0x000000007bd00904 (in kfence-#165): [ 51.044539] test_krealloc+0x51c/0x830 [ 51.044583] kunit_try_run_case+0x170/0x3f0 [ 51.044629] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.044673] kthread+0x328/0x630 [ 51.044712] ret_from_fork+0x10/0x20 [ 51.044753] [ 51.044777] kfence-#165: 0x000000007bd00904-0x00000000488faae2, size=32, cache=kmalloc-32 [ 51.044777] [ 51.044832] allocated by task 337 on cpu 1 at 51.043650s (0.001178s ago): [ 51.044901] test_alloc+0x29c/0x628 [ 51.044941] test_krealloc+0xc0/0x830 [ 51.044981] kunit_try_run_case+0x170/0x3f0 [ 51.045021] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.045063] kthread+0x328/0x630 [ 51.045100] ret_from_fork+0x10/0x20 [ 51.045137] [ 51.045160] freed by task 337 on cpu 1 at 51.043888s (0.001268s ago): [ 51.045235] krealloc_noprof+0x148/0x360 [ 51.045274] test_krealloc+0x1dc/0x830 [ 51.045314] kunit_try_run_case+0x170/0x3f0 [ 51.045354] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.045397] kthread+0x328/0x630 [ 51.045433] ret_from_fork+0x10/0x20 [ 51.045473] [ 51.045521] CPU: 1 UID: 0 PID: 337 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 51.045600] Tainted: [B]=BAD_PAGE, [N]=TEST [ 51.045630] Hardware name: linux,dummy-virt (DT) [ 51.045665] ==================================================================
[ 51.624929] ================================================================== [ 51.625346] BUG: KFENCE: use-after-free read in test_krealloc+0x6fc/0xbe0 [ 51.625346] [ 51.625770] Use-after-free read at 0x(____ptrval____) (in kfence-#158): [ 51.626008] test_krealloc+0x6fc/0xbe0 [ 51.626266] kunit_try_run_case+0x1a5/0x480 [ 51.626425] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 51.626904] kthread+0x337/0x6f0 [ 51.627102] ret_from_fork+0x116/0x1d0 [ 51.627264] ret_from_fork_asm+0x1a/0x30 [ 51.627554] [ 51.627630] kfence-#158: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32 [ 51.627630] [ 51.628052] allocated by task 354 on cpu 0 at 51.624291s (0.003759s ago): [ 51.628424] test_alloc+0x364/0x10f0 [ 51.628598] test_krealloc+0xad/0xbe0 [ 51.628770] kunit_try_run_case+0x1a5/0x480 [ 51.629000] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 51.629260] kthread+0x337/0x6f0 [ 51.629443] ret_from_fork+0x116/0x1d0 [ 51.629629] ret_from_fork_asm+0x1a/0x30 [ 51.629976] [ 51.630344] freed by task 354 on cpu 0 at 51.624557s (0.005784s ago): [ 51.630645] krealloc_noprof+0x108/0x340 [ 51.630841] test_krealloc+0x226/0xbe0 [ 51.631013] kunit_try_run_case+0x1a5/0x480 [ 51.631595] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 51.631903] kthread+0x337/0x6f0 [ 51.632042] ret_from_fork+0x116/0x1d0 [ 51.632255] ret_from_fork_asm+0x1a/0x30 [ 51.632426] [ 51.632550] CPU: 0 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 51.632962] Tainted: [B]=BAD_PAGE, [N]=TEST [ 51.633140] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 51.633525] ==================================================================