Hay
Date
July 3, 2025, 11:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   24.992306] ==================================================================
[   24.992913] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   24.992913] 
[   24.993380] Use-after-free read at 0x000000005b3eac46 (in kfence-#106):
[   24.993907]  test_use_after_free_read+0x114/0x248
[   24.994109]  kunit_try_run_case+0x170/0x3f0
[   24.994498]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.994696]  kthread+0x328/0x630
[   24.994773]  ret_from_fork+0x10/0x20
[   24.994853] 
[   24.994907] kfence-#106: 0x000000005b3eac46-0x00000000de4f4352, size=32, cache=kmalloc-32
[   24.994907] 
[   24.995115] allocated by task 295 on cpu 1 at 24.991158s (0.003943s ago):
[   24.995568]  test_alloc+0x29c/0x628
[   24.995797]  test_use_after_free_read+0xd0/0x248
[   24.996183]  kunit_try_run_case+0x170/0x3f0
[   24.996450]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.996714]  kthread+0x328/0x630
[   24.996797]  ret_from_fork+0x10/0x20
[   24.997141] 
[   24.997769] freed by task 295 on cpu 1 at 24.991448s (0.005856s ago):
[   24.998110]  test_use_after_free_read+0x1c0/0x248
[   24.998203]  kunit_try_run_case+0x170/0x3f0
[   24.998768]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.998954]  kthread+0x328/0x630
[   24.999227]  ret_from_fork+0x10/0x20
[   24.999604] 
[   24.999820] CPU: 1 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.000229] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.000504] Hardware name: linux,dummy-virt (DT)
[   25.000600] ==================================================================
[   25.096354] ==================================================================
[   25.096921] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   25.096921] 
[   25.097344] Use-after-free read at 0x00000000d4643401 (in kfence-#107):
[   25.097749]  test_use_after_free_read+0x114/0x248
[   25.098183]  kunit_try_run_case+0x170/0x3f0
[   25.098290]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.098391]  kthread+0x328/0x630
[   25.098476]  ret_from_fork+0x10/0x20
[   25.098559] 
[   25.098616] kfence-#107: 0x00000000d4643401-0x00000000e6b90f94, size=32, cache=test
[   25.098616] 
[   25.098730] allocated by task 297 on cpu 1 at 25.095243s (0.003479s ago):
[   25.099223]  test_alloc+0x230/0x628
[   25.099452]  test_use_after_free_read+0xd0/0x248
[   25.099536]  kunit_try_run_case+0x170/0x3f0
[   25.099609]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.099693]  kthread+0x328/0x630
[   25.099761]  ret_from_fork+0x10/0x20
[   25.099833] 
[   25.099884] freed by task 297 on cpu 1 at 25.095348s (0.004529s ago):
[   25.100195]  test_use_after_free_read+0xf0/0x248
[   25.100455]  kunit_try_run_case+0x170/0x3f0
[   25.100707]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.101287]  kthread+0x328/0x630
[   25.101541]  ret_from_fork+0x10/0x20
[   25.101738] 
[   25.102169] CPU: 1 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.102350] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.102702] Hardware name: linux,dummy-virt (DT)
[   25.102784] ==================================================================

[   16.857882] ==================================================================
[   16.858369] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   16.858369] 
[   16.858812] Use-after-free read at 0x(____ptrval____) (in kfence-#71):
[   16.859414]  test_use_after_free_read+0x129/0x270
[   16.859692]  kunit_try_run_case+0x1a5/0x480
[   16.859904]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.860472]  kthread+0x337/0x6f0
[   16.860659]  ret_from_fork+0x116/0x1d0
[   16.860817]  ret_from_fork_asm+0x1a/0x30
[   16.861099] 
[   16.861278] kfence-#71: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.861278] 
[   16.861679] allocated by task 313 on cpu 1 at 16.857677s (0.004000s ago):
[   16.861977]  test_alloc+0x364/0x10f0
[   16.862450]  test_use_after_free_read+0xdc/0x270
[   16.862750]  kunit_try_run_case+0x1a5/0x480
[   16.863034]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.863367]  kthread+0x337/0x6f0
[   16.863602]  ret_from_fork+0x116/0x1d0
[   16.863761]  ret_from_fork_asm+0x1a/0x30
[   16.864105] 
[   16.864476] freed by task 313 on cpu 1 at 16.857727s (0.006543s ago):
[   16.864823]  test_use_after_free_read+0x1e7/0x270
[   16.865173]  kunit_try_run_case+0x1a5/0x480
[   16.865384]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.865616]  kthread+0x337/0x6f0
[   16.865784]  ret_from_fork+0x116/0x1d0
[   16.865959]  ret_from_fork_asm+0x1a/0x30
[   16.866436] 
[   16.866573] CPU: 1 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.867093] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.867363] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.867890] ==================================================================
[   16.961739] ==================================================================
[   16.962152] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   16.962152] 
[   16.962559] Use-after-free read at 0x(____ptrval____) (in kfence-#72):
[   16.963251]  test_use_after_free_read+0x129/0x270
[   16.963470]  kunit_try_run_case+0x1a5/0x480
[   16.963681]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.963910]  kthread+0x337/0x6f0
[   16.964087]  ret_from_fork+0x116/0x1d0
[   16.964293]  ret_from_fork_asm+0x1a/0x30
[   16.964915] 
[   16.964999] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.964999] 
[   16.965703] allocated by task 315 on cpu 1 at 16.961614s (0.004086s ago):
[   16.966155]  test_alloc+0x2a6/0x10f0
[   16.966436]  test_use_after_free_read+0xdc/0x270
[   16.966628]  kunit_try_run_case+0x1a5/0x480
[   16.966949]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.967347]  kthread+0x337/0x6f0
[   16.967510]  ret_from_fork+0x116/0x1d0
[   16.967680]  ret_from_fork_asm+0x1a/0x30
[   16.967864] 
[   16.967948] freed by task 315 on cpu 1 at 16.961672s (0.006274s ago):
[   16.968541]  test_use_after_free_read+0xfb/0x270
[   16.968753]  kunit_try_run_case+0x1a5/0x480
[   16.969018]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.969275]  kthread+0x337/0x6f0
[   16.969574]  ret_from_fork+0x116/0x1d0
[   16.969735]  ret_from_fork_asm+0x1a/0x30
[   16.970091] 
[   16.970325] CPU: 1 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.970883] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.971173] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.971532] ==================================================================