Hay
Date
May 23, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   34.604787] ==================================================================
[   34.605010] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   34.605010] 
[   34.605183] Invalid free of 0x0000000005a63c25 (in kfence-#161):
[   34.605354]  test_double_free+0x1bc/0x238
[   34.605503]  kunit_try_run_case+0x170/0x3f0
[   34.605632]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.605766]  kthread+0x328/0x630
[   34.605883]  ret_from_fork+0x10/0x20
[   34.606003] 
[   34.606071] kfence-#161: 0x0000000005a63c25-0x00000000e681bd97, size=32, cache=kmalloc-32
[   34.606071] 
[   34.606228] allocated by task 305 on cpu 0 at 34.604288s (0.001930s ago):
[   34.606440]  test_alloc+0x29c/0x628
[   34.607641]  test_double_free+0xd4/0x238
[   34.608318]  kunit_try_run_case+0x170/0x3f0
[   34.608466]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.608592]  kthread+0x328/0x630
[   34.609608]  ret_from_fork+0x10/0x20
[   34.610348] 
[   34.610629] freed by task 305 on cpu 0 at 34.604429s (0.006183s ago):
[   34.611017]  test_double_free+0x1ac/0x238
[   34.611290]  kunit_try_run_case+0x170/0x3f0
[   34.611432]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.612409]  kthread+0x328/0x630
[   34.612988]  ret_from_fork+0x10/0x20
[   34.613609] 
[   34.614258] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT 
[   34.615072] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.615191] Hardware name: linux,dummy-virt (DT)
[   34.615684] ==================================================================
[   34.709919] ==================================================================
[   34.710087] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   34.710087] 
[   34.710302] Invalid free of 0x0000000076b1d661 (in kfence-#162):
[   34.710511]  test_double_free+0x100/0x238
[   34.710684]  kunit_try_run_case+0x170/0x3f0
[   34.710817]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.710945]  kthread+0x328/0x630
[   34.711064]  ret_from_fork+0x10/0x20
[   34.711180] 
[   34.711247] kfence-#162: 0x0000000076b1d661-0x000000006cb1212e, size=32, cache=test
[   34.711247] 
[   34.711417] allocated by task 307 on cpu 0 at 34.709378s (0.002028s ago):
[   34.711603]  test_alloc+0x230/0x628
[   34.711716]  test_double_free+0xd4/0x238
[   34.711828]  kunit_try_run_case+0x170/0x3f0
[   34.711958]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.712081]  kthread+0x328/0x630
[   34.712301]  ret_from_fork+0x10/0x20
[   34.712523] 
[   34.712626] freed by task 307 on cpu 0 at 34.709509s (0.003103s ago):
[   34.712852]  test_double_free+0xf0/0x238
[   34.712976]  kunit_try_run_case+0x170/0x3f0
[   34.713078]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.713183]  kthread+0x328/0x630
[   34.713297]  ret_from_fork+0x10/0x20
[   34.713465] 
[   34.713625] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT 
[   34.713936] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.714038] Hardware name: linux,dummy-virt (DT)
[   34.714128] ==================================================================

[   18.150462] ==================================================================
[   18.150889] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.150889] 
[   18.151307] Invalid free of 0x(____ptrval____) (in kfence-#72):
[   18.151658]  test_double_free+0x1d3/0x260
[   18.151833]  kunit_try_run_case+0x1a5/0x480
[   18.152055]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.152289]  kthread+0x337/0x6f0
[   18.152450]  ret_from_fork+0x41/0x80
[   18.153052]  ret_from_fork_asm+0x1a/0x30
[   18.153276] 
[   18.153374] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.153374] 
[   18.154152] allocated by task 322 on cpu 1 at 18.150235s (0.003914s ago):
[   18.154500]  test_alloc+0x364/0x10f0
[   18.154678]  test_double_free+0xdb/0x260
[   18.154865]  kunit_try_run_case+0x1a5/0x480
[   18.155054]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.155286]  kthread+0x337/0x6f0
[   18.155750]  ret_from_fork+0x41/0x80
[   18.155934]  ret_from_fork_asm+0x1a/0x30
[   18.156098] 
[   18.156280] freed by task 322 on cpu 1 at 18.150302s (0.005898s ago):
[   18.156741]  test_double_free+0x1e0/0x260
[   18.157015]  kunit_try_run_case+0x1a5/0x480
[   18.157283]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.157573]  kthread+0x337/0x6f0
[   18.157861]  ret_from_fork+0x41/0x80
[   18.158047]  ret_from_fork_asm+0x1a/0x30
[   18.158231] 
[   18.158368] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT(voluntary) 
[   18.159090] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.159382] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.159881] ==================================================================
[   18.254352] ==================================================================
[   18.254831] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.254831] 
[   18.255364] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   18.256061]  test_double_free+0x112/0x260
[   18.256304]  kunit_try_run_case+0x1a5/0x480
[   18.256810]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.257044]  kthread+0x337/0x6f0
[   18.257246]  ret_from_fork+0x41/0x80
[   18.257411]  ret_from_fork_asm+0x1a/0x30
[   18.257668] 
[   18.257881] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.257881] 
[   18.258323] allocated by task 324 on cpu 0 at 18.254157s (0.004164s ago):
[   18.258651]  test_alloc+0x2a6/0x10f0
[   18.258880]  test_double_free+0xdb/0x260
[   18.259095]  kunit_try_run_case+0x1a5/0x480
[   18.259327]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.259608]  kthread+0x337/0x6f0
[   18.259816]  ret_from_fork+0x41/0x80
[   18.260025]  ret_from_fork_asm+0x1a/0x30
[   18.260190] 
[   18.260289] freed by task 324 on cpu 0 at 18.254218s (0.006068s ago):
[   18.260571]  test_double_free+0xfa/0x260
[   18.260971]  kunit_try_run_case+0x1a5/0x480
[   18.261157]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.261344]  kthread+0x337/0x6f0
[   18.261579]  ret_from_fork+0x41/0x80
[   18.261832]  ret_from_fork_asm+0x1a/0x30
[   18.262085] 
[   18.262216] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT(voluntary) 
[   18.262652] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.263040] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.263432] ==================================================================