Hay
Date
July 8, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.866794] ==================================================================
[   23.866870] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.866870] 
[   23.866931] Invalid free of 0x00000000c05b39f5 (in kfence-#90):
[   23.866982]  test_invalid_addr_free+0x1ac/0x238
[   23.867031]  kunit_try_run_case+0x170/0x3f0
[   23.867074]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.867118]  kthread+0x328/0x630
[   23.867175]  ret_from_fork+0x10/0x20
[   23.867217] 
[   23.867240] kfence-#90: 0x00000000fbf160db-0x0000000085ffd3eb, size=32, cache=kmalloc-32
[   23.867240] 
[   23.867296] allocated by task 307 on cpu 0 at 23.866655s (0.000637s ago):
[   23.867358]  test_alloc+0x29c/0x628
[   23.867399]  test_invalid_addr_free+0xd4/0x238
[   23.867441]  kunit_try_run_case+0x170/0x3f0
[   23.867481]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.867556]  kthread+0x328/0x630
[   23.867846]  ret_from_fork+0x10/0x20
[   23.867924] 
[   23.868325] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   23.868608] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.868756] Hardware name: linux,dummy-virt (DT)
[   23.868948] ==================================================================
[   23.969285] ==================================================================
[   23.969359] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.969359] 
[   23.969413] Invalid free of 0x000000002482c12f (in kfence-#91):
[   23.969464]  test_invalid_addr_free+0xec/0x238
[   23.969509]  kunit_try_run_case+0x170/0x3f0
[   23.969551]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.969596]  kthread+0x328/0x630
[   23.969633]  ret_from_fork+0x10/0x20
[   23.969687] 
[   23.969710] kfence-#91: 0x000000002d98e22f-0x00000000f269189e, size=32, cache=test
[   23.969710] 
[   23.969773] allocated by task 309 on cpu 0 at 23.969145s (0.000615s ago):
[   23.969837]  test_alloc+0x230/0x628
[   23.969876]  test_invalid_addr_free+0xd4/0x238
[   23.969917]  kunit_try_run_case+0x170/0x3f0
[   23.969955]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.970008]  kthread+0x328/0x630
[   23.970057]  ret_from_fork+0x10/0x20
[   23.970098] 
[   23.970139] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   23.970231] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.970259] Hardware name: linux,dummy-virt (DT)
[   23.970304] ==================================================================

[   18.417359] ==================================================================
[   18.417897] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.417897] 
[   18.418230] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.418574]  test_invalid_addr_free+0xfb/0x260
[   18.418815]  kunit_try_run_case+0x1a5/0x480
[   18.418965]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.419138]  kthread+0x337/0x6f0
[   18.419300]  ret_from_fork+0x116/0x1d0
[   18.419495]  ret_from_fork_asm+0x1a/0x30
[   18.419759] 
[   18.419870] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.419870] 
[   18.420299] allocated by task 327 on cpu 1 at 18.417259s (0.003037s ago):
[   18.421382]  test_alloc+0x2a6/0x10f0
[   18.421656]  test_invalid_addr_free+0xdb/0x260
[   18.421867]  kunit_try_run_case+0x1a5/0x480
[   18.422066]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.422304]  kthread+0x337/0x6f0
[   18.422472]  ret_from_fork+0x116/0x1d0
[   18.422682]  ret_from_fork_asm+0x1a/0x30
[   18.422822] 
[   18.422916] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.423427] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.423660] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.424088] ==================================================================
[   18.313356] ==================================================================
[   18.313801] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.313801] 
[   18.314131] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   18.314445]  test_invalid_addr_free+0x1e1/0x260
[   18.314629]  kunit_try_run_case+0x1a5/0x480
[   18.314868]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.315071]  kthread+0x337/0x6f0
[   18.315248]  ret_from_fork+0x116/0x1d0
[   18.315421]  ret_from_fork_asm+0x1a/0x30
[   18.315680] 
[   18.315761] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.315761] 
[   18.316126] allocated by task 325 on cpu 0 at 18.313220s (0.002904s ago):
[   18.316449]  test_alloc+0x364/0x10f0
[   18.316681]  test_invalid_addr_free+0xdb/0x260
[   18.316865]  kunit_try_run_case+0x1a5/0x480
[   18.317036]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.317282]  kthread+0x337/0x6f0
[   18.317442]  ret_from_fork+0x116/0x1d0
[   18.317574]  ret_from_fork_asm+0x1a/0x30
[   18.317727] 
[   18.317955] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.318437] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.318645] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.319021] ==================================================================