Date
July 22, 2025, 5:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 64.317887] ================================================================== [ 64.317962] BUG: KFENCE: use-after-free read in test_krealloc+0x51c/0x830 [ 64.317962] [ 64.318052] Use-after-free read at 0x000000007a4a5714 (in kfence-#187): [ 64.318105] test_krealloc+0x51c/0x830 [ 64.318150] kunit_try_run_case+0x170/0x3f0 [ 64.318200] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 64.318245] kthread+0x328/0x630 [ 64.318287] ret_from_fork+0x10/0x20 [ 64.318329] [ 64.318353] kfence-#187: 0x000000007a4a5714-0x000000005885938b, size=32, cache=kmalloc-32 [ 64.318353] [ 64.318408] allocated by task 368 on cpu 1 at 64.317238s (0.001166s ago): [ 64.318478] test_alloc+0x29c/0x628 [ 64.318516] test_krealloc+0xc0/0x830 [ 64.318554] kunit_try_run_case+0x170/0x3f0 [ 64.318592] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 64.318633] kthread+0x328/0x630 [ 64.318670] ret_from_fork+0x10/0x20 [ 64.318710] [ 64.318733] freed by task 368 on cpu 1 at 64.317493s (0.001236s ago): [ 64.318791] krealloc_noprof+0x148/0x360 [ 64.318840] test_krealloc+0x1dc/0x830 [ 64.318877] kunit_try_run_case+0x170/0x3f0 [ 64.318916] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 64.318960] kthread+0x328/0x630 [ 64.318997] ret_from_fork+0x10/0x20 [ 64.319037] [ 64.319083] CPU: 1 UID: 0 PID: 368 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250722 #1 PREEMPT [ 64.319168] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 64.319200] Hardware name: linux,dummy-virt (DT) [ 64.319234] ==================================================================
[ 63.212363] ================================================================== [ 63.212732] BUG: KFENCE: use-after-free read in test_krealloc+0x6fc/0xbe0 [ 63.212732] [ 63.213111] Use-after-free read at 0x(____ptrval____) (in kfence-#171): [ 63.213431] test_krealloc+0x6fc/0xbe0 [ 63.213633] kunit_try_run_case+0x1a5/0x480 [ 63.213864] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 63.214113] kthread+0x337/0x6f0 [ 63.214242] ret_from_fork+0x116/0x1d0 [ 63.214405] ret_from_fork_asm+0x1a/0x30 [ 63.215076] [ 63.215184] kfence-#171: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32 [ 63.215184] [ 63.215604] allocated by task 385 on cpu 0 at 63.211757s (0.003845s ago): [ 63.216256] test_alloc+0x364/0x10f0 [ 63.216428] test_krealloc+0xad/0xbe0 [ 63.216593] kunit_try_run_case+0x1a5/0x480 [ 63.216808] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 63.217056] kthread+0x337/0x6f0 [ 63.217276] ret_from_fork+0x116/0x1d0 [ 63.217444] ret_from_fork_asm+0x1a/0x30 [ 63.217627] [ 63.217698] freed by task 385 on cpu 0 at 63.211988s (0.005707s ago): [ 63.218006] krealloc_noprof+0x108/0x340 [ 63.218187] test_krealloc+0x226/0xbe0 [ 63.218391] kunit_try_run_case+0x1a5/0x480 [ 63.218572] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 63.218784] kthread+0x337/0x6f0 [ 63.218947] ret_from_fork+0x116/0x1d0 [ 63.219140] ret_from_fork_asm+0x1a/0x30 [ 63.219382] [ 63.219494] CPU: 0 UID: 0 PID: 385 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) [ 63.219953] Tainted: [B]=BAD_PAGE, [N]=TEST [ 63.220156] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 63.220708] ==================================================================