Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 53.820167] ================================================================== [ 53.820300] BUG: KFENCE: use-after-free read in test_krealloc+0x51c/0x830 [ 53.820300] [ 53.820453] Use-after-free read at 0x00000000160ad8fc (in kfence-#197): [ 53.820525] test_krealloc+0x51c/0x830 [ 53.820587] kunit_try_run_case+0x170/0x3f0 [ 53.820645] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 53.820700] kthread+0x328/0x630 [ 53.820753] ret_from_fork+0x10/0x20 [ 53.820800] [ 53.820829] kfence-#197: 0x00000000160ad8fc-0x0000000049f4a6dc, size=32, cache=kmalloc-32 [ 53.820829] [ 53.820896] allocated by task 341 on cpu 1 at 53.819276s (0.001616s ago): [ 53.820984] test_alloc+0x29c/0x628 [ 53.821033] test_krealloc+0xc0/0x830 [ 53.821077] kunit_try_run_case+0x170/0x3f0 [ 53.821127] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 53.821182] kthread+0x328/0x630 [ 53.821229] ret_from_fork+0x10/0x20 [ 53.821274] [ 53.821301] freed by task 341 on cpu 1 at 53.819608s (0.001688s ago): [ 53.821376] krealloc_noprof+0x148/0x360 [ 53.821440] test_krealloc+0x1dc/0x830 [ 53.821488] kunit_try_run_case+0x170/0x3f0 [ 53.821537] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 53.821589] kthread+0x328/0x630 [ 53.821636] ret_from_fork+0x10/0x20 [ 53.821680] [ 53.821739] CPU: 1 UID: 0 PID: 341 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 53.821832] Tainted: [B]=BAD_PAGE, [N]=TEST [ 53.821867] Hardware name: linux,dummy-virt (DT) [ 53.821908] ==================================================================
[ 50.449276] ================================================================== [ 50.449769] BUG: KFENCE: use-after-free read in test_krealloc+0x6fc/0xbe0 [ 50.449769] [ 50.450224] Use-after-free read at 0x(____ptrval____) (in kfence-#158): [ 50.451258] test_krealloc+0x6fc/0xbe0 [ 50.451895] kunit_try_run_case+0x1a5/0x480 [ 50.452111] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 50.452566] kthread+0x337/0x6f0 [ 50.452831] ret_from_fork+0x41/0x80 [ 50.453038] ret_from_fork_asm+0x1a/0x30 [ 50.453385] [ 50.453631] kfence-#158: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32 [ 50.453631] [ 50.454321] allocated by task 357 on cpu 1 at 50.448260s (0.006054s ago): [ 50.454802] test_alloc+0x364/0x10f0 [ 50.455204] test_krealloc+0xad/0xbe0 [ 50.455579] kunit_try_run_case+0x1a5/0x480 [ 50.455938] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 50.456339] kthread+0x337/0x6f0 [ 50.456688] ret_from_fork+0x41/0x80 [ 50.456885] ret_from_fork_asm+0x1a/0x30 [ 50.457081] [ 50.457196] freed by task 357 on cpu 1 at 50.448772s (0.008420s ago): [ 50.457828] krealloc_noprof+0x108/0x340 [ 50.458198] test_krealloc+0x226/0xbe0 [ 50.458587] kunit_try_run_case+0x1a5/0x480 [ 50.458997] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 50.459451] kthread+0x337/0x6f0 [ 50.459822] ret_from_fork+0x41/0x80 [ 50.460208] ret_from_fork_asm+0x1a/0x30 [ 50.460530] [ 50.460830] CPU: 1 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 50.461512] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.461738] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 50.462357] ==================================================================