Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 51.471171] ================================================================== [ 51.471232] BUG: KFENCE: use-after-free read in test_krealloc+0x51c/0x830 [ 51.471232] [ 51.471314] Use-after-free read at 0x00000000c93cc991 (in kfence-#154): [ 51.471364] test_krealloc+0x51c/0x830 [ 51.471408] kunit_try_run_case+0x170/0x3f0 [ 51.471453] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.471497] kthread+0x328/0x630 [ 51.471539] ret_from_fork+0x10/0x20 [ 51.471579] [ 51.471602] kfence-#154: 0x00000000c93cc991-0x000000005d7f3a1e, size=32, cache=kmalloc-32 [ 51.471602] [ 51.471656] allocated by task 337 on cpu 0 at 51.470477s (0.001175s ago): [ 51.471724] test_alloc+0x29c/0x628 [ 51.471765] test_krealloc+0xc0/0x830 [ 51.471803] kunit_try_run_case+0x170/0x3f0 [ 51.471841] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.471883] kthread+0x328/0x630 [ 51.471923] ret_from_fork+0x10/0x20 [ 51.471962] [ 51.471985] freed by task 337 on cpu 0 at 51.470773s (0.001208s ago): [ 51.472043] krealloc_noprof+0x148/0x360 [ 51.472082] test_krealloc+0x1dc/0x830 [ 51.472121] kunit_try_run_case+0x170/0x3f0 [ 51.472170] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.472211] kthread+0x328/0x630 [ 51.472249] ret_from_fork+0x10/0x20 [ 51.472287] [ 51.472331] CPU: 0 UID: 0 PID: 337 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 51.472416] Tainted: [B]=BAD_PAGE, [N]=TEST [ 51.472450] Hardware name: linux,dummy-virt (DT) [ 51.472482] ==================================================================
[ 52.323997] ================================================================== [ 52.324412] BUG: KFENCE: use-after-free read in test_krealloc+0x6fc/0xbe0 [ 52.324412] [ 52.325081] Use-after-free read at 0x(____ptrval____) (in kfence-#168): [ 52.325324] test_krealloc+0x6fc/0xbe0 [ 52.325599] kunit_try_run_case+0x1a5/0x480 [ 52.325836] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 52.326027] kthread+0x337/0x6f0 [ 52.326193] ret_from_fork+0x116/0x1d0 [ 52.326378] ret_from_fork_asm+0x1a/0x30 [ 52.326734] [ 52.326916] kfence-#168: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32 [ 52.326916] [ 52.327387] allocated by task 355 on cpu 1 at 52.323089s (0.004294s ago): [ 52.328467] test_alloc+0x364/0x10f0 [ 52.328909] test_krealloc+0xad/0xbe0 [ 52.329093] kunit_try_run_case+0x1a5/0x480 [ 52.329307] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 52.329782] kthread+0x337/0x6f0 [ 52.330053] ret_from_fork+0x116/0x1d0 [ 52.330278] ret_from_fork_asm+0x1a/0x30 [ 52.330469] [ 52.330583] freed by task 355 on cpu 1 at 52.323438s (0.007140s ago): [ 52.331440] krealloc_noprof+0x108/0x340 [ 52.331805] test_krealloc+0x226/0xbe0 [ 52.332105] kunit_try_run_case+0x1a5/0x480 [ 52.332397] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 52.332883] kthread+0x337/0x6f0 [ 52.333274] ret_from_fork+0x116/0x1d0 [ 52.333528] ret_from_fork_asm+0x1a/0x30 [ 52.333771] [ 52.333967] CPU: 1 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 52.334384] Tainted: [B]=BAD_PAGE, [N]=TEST [ 52.334560] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 52.335262] ==================================================================