Hay
Date
Feb. 5, 2025, 2:09 p.m.

Environment
qemu-x86_64

[   53.396415] ==================================================================
[   53.397158] BUG: KFENCE: use-after-free read in test_use_after_free_read+0xf7/0x1a0
[   53.397158] 
[   53.398555] Use-after-free read at 0x(____ptrval____) (in kfence-#153):
[   53.399357]  test_use_after_free_read+0xf7/0x1a0
[   53.400557]  kunit_try_run_case+0x126/0x290
[   53.401303]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.402158]  kthread+0x19e/0x1e0
[   53.403152]  ret_from_fork+0x41/0x70
[   53.403592]  ret_from_fork_asm+0x1b/0x30
[   53.404275] 
[   53.404544] kfence-#153: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   53.404544] 
[   53.405653] allocated by task 257 on cpu 0 at 53.395818s:
[   53.406699]  test_alloc+0x2a0/0x8d0
[   53.407208]  test_use_after_free_read+0xd0/0x1a0
[   53.407784]  kunit_try_run_case+0x126/0x290
[   53.408410]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.409250]  kthread+0x19e/0x1e0
[   53.409894]  ret_from_fork+0x41/0x70
[   53.410569]  ret_from_fork_asm+0x1b/0x30
[   53.411309] 
[   53.411917] freed by task 257 on cpu 0 at 53.396088s:
[   53.413046]  test_use_after_free_read+0x14b/0x1a0
[   53.413552]  kunit_try_run_case+0x126/0x290
[   53.414278]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.415078]  kthread+0x19e/0x1e0
[   53.415730]  ret_from_fork+0x41/0x70
[   53.416437]  ret_from_fork_asm+0x1b/0x30
[   53.417186] 
[   53.417695] CPU: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   53.418760] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   53.419811] ==================================================================
[   53.500160] ==================================================================
[   53.500864] BUG: KFENCE: use-after-free read in test_use_after_free_read+0xf7/0x1a0
[   53.500864] 
[   53.501862] Use-after-free read at 0x(____ptrval____) (in kfence-#154):
[   53.502513]  test_use_after_free_read+0xf7/0x1a0
[   53.503004]  kunit_try_run_case+0x126/0x290
[   53.503675]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.504430]  kthread+0x19e/0x1e0
[   53.504964]  ret_from_fork+0x41/0x70
[   53.505462]  ret_from_fork_asm+0x1b/0x30
[   53.505969] 
[   53.506189] kfence-#154: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   53.506189] 
[   53.506809] allocated by task 259 on cpu 1 at 53.499726s:
[   53.507556]  test_alloc+0x1e8/0x8d0
[   53.508152]  test_use_after_free_read+0xd0/0x1a0
[   53.508813]  kunit_try_run_case+0x126/0x290
[   53.509439]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.510198]  kthread+0x19e/0x1e0
[   53.510732]  ret_from_fork+0x41/0x70
[   53.511318]  ret_from_fork_asm+0x1b/0x30
[   53.511923] 
[   53.512149] freed by task 259 on cpu 1 at 53.499880s:
[   53.512956]  test_use_after_free_read+0xeb/0x1a0
[   53.513597]  kunit_try_run_case+0x126/0x290
[   53.514115]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.514911]  kthread+0x19e/0x1e0
[   53.515400]  ret_from_fork+0x41/0x70
[   53.516168]  ret_from_fork_asm+0x1b/0x30
[   53.516623] 
[   53.516899] CPU: 1 PID: 259 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   53.517331] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   53.517685] ==================================================================