Hay
Date
July 23, 2025, 2:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.619158] ==================================================================
[   20.619247] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.619247] 
[   20.619312] Invalid free of 0x00000000f2bd3ae8 (in kfence-#93):
[   20.619369]  test_invalid_addr_free+0x1ac/0x238
[   20.619415]  kunit_try_run_case+0x170/0x3f0
[   20.619461]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.619508]  kthread+0x328/0x630
[   20.619547]  ret_from_fork+0x10/0x20
[   20.619586] 
[   20.619610] kfence-#93: 0x000000008fc943ca-0x00000000eca80bc9, size=32, cache=kmalloc-32
[   20.619610] 
[   20.619667] allocated by task 307 on cpu 1 at 20.619008s (0.000655s ago):
[   20.619731]  test_alloc+0x29c/0x628
[   20.619773]  test_invalid_addr_free+0xd4/0x238
[   20.619816]  kunit_try_run_case+0x170/0x3f0
[   20.619871]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.619916]  kthread+0x328/0x630
[   20.619952]  ret_from_fork+0x10/0x20
[   20.619992] 
[   20.620041] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   20.620123] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.620152] Hardware name: linux,dummy-virt (DT)
[   20.620188] ==================================================================
[   20.723028] ==================================================================
[   20.723120] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.723120] 
[   20.723183] Invalid free of 0x00000000e473f306 (in kfence-#94):
[   20.723240]  test_invalid_addr_free+0xec/0x238
[   20.723286]  kunit_try_run_case+0x170/0x3f0
[   20.723328]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.723373]  kthread+0x328/0x630
[   20.723409]  ret_from_fork+0x10/0x20
[   20.723448] 
[   20.723473] kfence-#94: 0x000000003c689fc0-0x000000005aa21727, size=32, cache=test
[   20.723473] 
[   20.723528] allocated by task 309 on cpu 1 at 20.722908s (0.000616s ago):
[   20.723589]  test_alloc+0x230/0x628
[   20.723633]  test_invalid_addr_free+0xd4/0x238
[   20.723675]  kunit_try_run_case+0x170/0x3f0
[   20.723716]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.723758]  kthread+0x328/0x630
[   20.723795]  ret_from_fork+0x10/0x20
[   20.723836] 
[   20.723889] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   20.723970] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.723999] Hardware name: linux,dummy-virt (DT)
[   20.724031] ==================================================================

[   19.356627] ==================================================================
[   19.357036] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   19.357036] 
[   19.357478] Invalid free of 0x(____ptrval____) (in kfence-#84):
[   19.358124]  test_invalid_addr_free+0x1e1/0x260
[   19.358602]  kunit_try_run_case+0x1a5/0x480
[   19.358833]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.359264]  kthread+0x337/0x6f0
[   19.359525]  ret_from_fork+0x116/0x1d0
[   19.359745]  ret_from_fork_asm+0x1a/0x30
[   19.360078] 
[   19.360307] kfence-#84: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.360307] 
[   19.360703] allocated by task 324 on cpu 0 at 19.356523s (0.004178s ago):
[   19.361250]  test_alloc+0x364/0x10f0
[   19.361530]  test_invalid_addr_free+0xdb/0x260
[   19.361804]  kunit_try_run_case+0x1a5/0x480
[   19.362109]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.362462]  kthread+0x337/0x6f0
[   19.362656]  ret_from_fork+0x116/0x1d0
[   19.362965]  ret_from_fork_asm+0x1a/0x30
[   19.363218] 
[   19.363453] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   19.363936] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.364380] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.364882] ==================================================================
[   19.564633] ==================================================================
[   19.565032] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   19.565032] 
[   19.565407] Invalid free of 0x(____ptrval____) (in kfence-#86):
[   19.565697]  test_invalid_addr_free+0xfb/0x260
[   19.565896]  kunit_try_run_case+0x1a5/0x480
[   19.566100]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.566372]  kthread+0x337/0x6f0
[   19.566540]  ret_from_fork+0x116/0x1d0
[   19.566718]  ret_from_fork_asm+0x1a/0x30
[   19.566922] 
[   19.567016] kfence-#86: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.567016] 
[   19.567431] allocated by task 326 on cpu 1 at 19.564538s (0.002890s ago):
[   19.567696]  test_alloc+0x2a6/0x10f0
[   19.567881]  test_invalid_addr_free+0xdb/0x260
[   19.568090]  kunit_try_run_case+0x1a5/0x480
[   19.568280]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.568515]  kthread+0x337/0x6f0
[   19.568694]  ret_from_fork+0x116/0x1d0
[   19.568872]  ret_from_fork_asm+0x1a/0x30
[   19.569018] 
[   19.569117] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   19.569446] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.569646] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.570071] ==================================================================