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

Environment
qemu-arm64
qemu-i386

[  185.815105] ==================================================================
[  185.816446] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0xd8/0x1b0
[  185.816446] 
[  185.818617] Out-of-bounds write at 0x00000000b087a6d0 (1B left of kfence-#38):
[  185.820382]  test_out_of_bounds_write+0xd8/0x1b0
[  185.821838]  kunit_try_run_case+0xf8/0x260
[  185.823058]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  185.824523]  kthread+0x18c/0x1a8
[  185.825550]  ret_from_fork+0x10/0x20
[  185.826701] 
[  185.827339] kfence-#38: 0x000000002e5b3ef9-0x000000002ef5bbc4, size=32, cache=kmalloc-32
[  185.827339] 
[  185.829263] allocated by task 235 on cpu 1 at 185.814707s:
[  185.831077]  test_alloc+0x224/0x3d8
[  185.832051]  test_out_of_bounds_write+0xc0/0x1b0
[  185.833359]  kunit_try_run_case+0xf8/0x260
[  185.834547]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  185.835995]  kthread+0x18c/0x1a8
[  185.836968]  ret_from_fork+0x10/0x20
[  185.838048] 
[  185.838631] CPU: 1 PID: 235 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  185.840353] Hardware name: linux,dummy-virt (DT)
[  185.841455] ==================================================================
[  185.918545] ==================================================================
[  185.920009] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0xd8/0x1b0
[  185.920009] 
[  185.922143] Out-of-bounds write at 0x000000005a946824 (1B left of kfence-#42):
[  185.923983]  test_out_of_bounds_write+0xd8/0x1b0
[  185.925269]  kunit_try_run_case+0xf8/0x260
[  185.926453]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  185.927874]  kthread+0x18c/0x1a8
[  185.928826]  ret_from_fork+0x10/0x20
[  185.929898] 
[  185.930481] kfence-#42: 0x000000008c598ba0-0x000000008646926f, size=32, cache=test
[  185.930481] 
[  185.932227] allocated by task 237 on cpu 0 at 185.918178s:
[  185.933794]  test_alloc+0x1b8/0x3d8
[  185.934799]  test_out_of_bounds_write+0xc0/0x1b0
[  185.936086]  kunit_try_run_case+0xf8/0x260
[  185.937302]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  185.938719]  kthread+0x18c/0x1a8
[  185.939670]  ret_from_fork+0x10/0x20
[  185.940743] 
[  185.941275] CPU: 0 PID: 237 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  185.943100] Hardware name: linux,dummy-virt (DT)
[  185.944196] ==================================================================


[   38.050562] ==================================================================
[   38.050897] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x59/0x108
[   38.050897] 
[   38.051276] Out-of-bounds write at 0x(ptrval) (1B left of kfence-#23):
[   38.051611]  test_out_of_bounds_write+0x59/0x108
[   38.051829]  kunit_try_run_case+0x8a/0x1c4
[   38.051969]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.052364]  kthread+0xe0/0x108
[   38.052595]  ret_from_fork+0x40/0x4c
[   38.052744]  ret_from_fork_asm+0x12/0x18
[   38.052961]  restore_all_switch_stack+0x0/0xc3
[   38.053301] 
[   38.053410] kfence-#23: 0x(ptrval)-0x(ptrval), size=32, cache=test
[   38.053410] 
[   38.053829] allocated by task 139 on cpu 0 at 38.050527s:
[   38.054083]  test_alloc+0xed/0x2d4
[   38.054231]  test_out_of_bounds_write+0x57/0x108
[   38.054406]  kunit_try_run_case+0x8a/0x1c4
[   38.054559]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.054743]  kthread+0xe0/0x108
[   38.054940]  ret_from_fork+0x40/0x4c
[   38.055227]  ret_from_fork_asm+0x12/0x18
[   38.055528]  restore_all_switch_stack+0x0/0xc3
[   38.055862] 
[   38.056009] CPU: 0 PID: 139 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   38.056611] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.057082] ==================================================================
[   37.842578] ==================================================================
[   37.843006] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x59/0x108
[   37.843006] 
[   37.843660] Out-of-bounds write at 0x(ptrval) (1B left of kfence-#21):
[   37.843869]  test_out_of_bounds_write+0x59/0x108
[   37.844026]  kunit_try_run_case+0x8a/0x1c4
[   37.844191]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   37.844358]  kthread+0xe0/0x108
[   37.844490]  ret_from_fork+0x40/0x4c
[   37.844645]  ret_from_fork_asm+0x12/0x18
[   37.844919]  restore_all_switch_stack+0x0/0xc3
[   37.845272] 
[   37.845413] kfence-#21: 0x(ptrval)-0x(ptrval), size=32, cache=kmalloc-32
[   37.845413] 
[   37.845884] allocated by task 137 on cpu 1 at 37.842503s:
[   37.846182]  test_alloc+0x153/0x2d4
[   37.846455]  test_out_of_bounds_write+0x57/0x108
[   37.846722]  kunit_try_run_case+0x8a/0x1c4
[   37.847001]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   37.847299]  kthread+0xe0/0x108
[   37.847526]  ret_from_fork+0x40/0x4c
[   37.847664]  ret_from_fork_asm+0x12/0x18
[   37.847921]  restore_all_switch_stack+0x0/0xc3
[   37.848206] 
[   37.848290] CPU: 1 PID: 137 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   37.848770] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.849263] ==================================================================