Hay
Date
April 20, 2025, 11:09 p.m.

Environment
x86

[   81.067696] ==================================================================
[   81.074943] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   81.074943] 
[   81.084165] Use-after-free read at 0x0000000066065150 (in kfence-#204):
[   81.090778]  test_use_after_free_read+0x129/0x270
[   81.095493]  kunit_try_run_case+0x1a2/0x480
[   81.099685]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.105086]  kthread+0x334/0x6f0
[   81.108325]  ret_from_fork+0x3e/0x80
[   81.111905]  ret_from_fork_asm+0x1a/0x30
[   81.115831] 
[   81.117332] kfence-#204: 0x0000000066065150-0x00000000846f7376, size=32, cache=kmalloc-32
[   81.117332] 
[   81.126984] allocated by task 338 on cpu 2 at 81.067691s (0.059293s ago):
[   81.133771]  test_alloc+0x364/0x10f0
[   81.137350]  test_use_after_free_read+0xdc/0x270
[   81.141977]  kunit_try_run_case+0x1a2/0x480
[   81.146163]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.151561]  kthread+0x334/0x6f0
[   81.154794]  ret_from_fork+0x3e/0x80
[   81.158374]  ret_from_fork_asm+0x1a/0x30
[   81.162300] 
[   81.163799] freed by task 338 on cpu 2 at 81.067693s (0.096105s ago):
[   81.170239]  test_use_after_free_read+0x1e7/0x270
[   81.174954]  kunit_try_run_case+0x1a2/0x480
[   81.179146]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.184547]  kthread+0x334/0x6f0
[   81.187787]  ret_from_fork+0x3e/0x80
[   81.191367]  ret_from_fork_asm+0x1a/0x30
[   81.195292] 
[   81.196792] CPU: 2 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   81.207668] Tainted: [B]=BAD_PAGE, [N]=TEST
[   81.211853] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021
[   81.219247] ==================================================================
[   81.331694] ==================================================================
[   81.338934] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   81.338934] 
[   81.348156] Use-after-free read at 0x0000000089d510cd (in kfence-#206):
[   81.354767]  test_use_after_free_read+0x129/0x270
[   81.359473]  kunit_try_run_case+0x1a2/0x480
[   81.363662]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.369059]  kthread+0x334/0x6f0
[   81.372291]  ret_from_fork+0x3e/0x80
[   81.375870]  ret_from_fork_asm+0x1a/0x30
[   81.379796] 
[   81.381297] kfence-#206: 0x0000000089d510cd-0x00000000633daf41, size=32, cache=test
[   81.381297] 
[   81.390432] allocated by task 340 on cpu 2 at 81.331689s (0.058743s ago):
[   81.397228]  test_alloc+0x2a6/0x10f0
[   81.400813]  test_use_after_free_read+0xdc/0x270
[   81.405432]  kunit_try_run_case+0x1a2/0x480
[   81.409618]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.415015]  kthread+0x334/0x6f0
[   81.418248]  ret_from_fork+0x3e/0x80
[   81.421827]  ret_from_fork_asm+0x1a/0x30
[   81.425753] 
[   81.427254] freed by task 340 on cpu 2 at 81.331691s (0.095563s ago):
[   81.433704]  test_use_after_free_read+0xfb/0x270
[   81.438329]  kunit_try_run_case+0x1a2/0x480
[   81.442515]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.447914]  kthread+0x334/0x6f0
[   81.451147]  ret_from_fork+0x3e/0x80
[   81.454733]  ret_from_fork_asm+0x1a/0x30
[   81.458659] 
[   81.460159] CPU: 2 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   81.471029] Tainted: [B]=BAD_PAGE, [N]=TEST
[   81.475220] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021
[   81.482612] ==================================================================