Hay
Date
Dec. 6, 2024, 3:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   39.127484] ==================================================================
[   39.128310] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   39.128310] 
[   39.129088] Out-of-bounds write at 0x00000000f0d6522c (1B left of kfence-#146):
[   39.130029]  test_out_of_bounds_write+0x100/0x240
[   39.131471]  test_out_of_bounds_write+0xc8/0x240
[   39.132121]  kunit_try_run_case+0x14c/0x3d0
[   39.132754]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.133528]  kthread+0x24c/0x2d0
[   39.134021]  ret_from_fork+0x10/0x20
[   39.134655] 
[   39.134996] kfence-#146: 0x0000000003ea21d4-0x00000000d6efede0, size=32, cache=kmalloc-32
[   39.134996] 
[   39.136099] allocated by task 280 on cpu 1 at 39.127194s (0.008894s ago):
[   39.136947]  test_alloc+0x298/0x620
[   39.137461]  test_out_of_bounds_write+0xc8/0x240
[   39.138194]  kunit_try_run_case+0x14c/0x3d0
[   39.138772]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.139587]  kthread+0x24c/0x2d0
[   39.140179]  ret_from_fork+0x10/0x20
[   39.140787] 
[   39.141205] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   39.142356] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.142927] Hardware name: linux,dummy-virt (DT)
[   39.143543] ==================================================================
[   39.231353] ==================================================================
[   39.232122] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   39.232122] 
[   39.233054] Out-of-bounds write at 0x00000000c4b497c3 (1B left of kfence-#147):
[   39.234060]  test_out_of_bounds_write+0x100/0x240
[   39.234856]  test_out_of_bounds_write+0xc8/0x240
[   39.235609]  kunit_try_run_case+0x14c/0x3d0
[   39.236218]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.237040]  kthread+0x24c/0x2d0
[   39.237583]  ret_from_fork+0x10/0x20
[   39.238245] 
[   39.238678] kfence-#147: 0x00000000ed129c7f-0x00000000a24848fa, size=32, cache=test
[   39.238678] 
[   39.239576] allocated by task 282 on cpu 0 at 39.231166s (0.008397s ago):
[   39.240559]  test_alloc+0x22c/0x620
[   39.241200]  test_out_of_bounds_write+0xc8/0x240
[   39.241918]  kunit_try_run_case+0x14c/0x3d0
[   39.242545]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.243359]  kthread+0x24c/0x2d0
[   39.243876]  ret_from_fork+0x10/0x20
[   39.244539] 
[   39.244944] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   39.246067] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.246739] Hardware name: linux,dummy-virt (DT)
[   39.247303] ==================================================================

[   32.931354] ==================================================================
[   32.932165] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   32.932165] 
[   32.932962] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#107):
[   32.934164]  test_out_of_bounds_write+0x10e/0x260
[   32.935366]  kunit_try_run_case+0x1b3/0x490
[   32.936172]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.936692]  kthread+0x257/0x310
[   32.937717]  ret_from_fork+0x41/0x80
[   32.938119]  ret_from_fork_asm+0x1a/0x30
[   32.938953] 
[   32.939403] kfence-#107: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   32.939403] 
[   32.940249] allocated by task 299 on cpu 0 at 32.931167s (0.009076s ago):
[   32.941647]  test_alloc+0x35f/0x10d0
[   32.942073]  test_out_of_bounds_write+0xd5/0x260
[   32.942769]  kunit_try_run_case+0x1b3/0x490
[   32.943443]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.944232]  kthread+0x257/0x310
[   32.944839]  ret_from_fork+0x41/0x80
[   32.945619]  ret_from_fork_asm+0x1a/0x30
[   32.946374] 
[   32.946820] CPU: 0 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   32.948025] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.948998] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.950029] ==================================================================
[   33.451229] ==================================================================
[   33.451975] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   33.451975] 
[   33.452814] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#112):
[   33.453507]  test_out_of_bounds_write+0x10e/0x260
[   33.453965]  kunit_try_run_case+0x1b3/0x490
[   33.454435]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.455133]  kthread+0x257/0x310
[   33.455451]  ret_from_fork+0x41/0x80
[   33.455731]  ret_from_fork_asm+0x1a/0x30
[   33.456234] 
[   33.456556] kfence-#112: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   33.456556] 
[   33.457305] allocated by task 301 on cpu 0 at 33.451136s (0.006162s ago):
[   33.458258]  test_alloc+0x2a7/0x10d0
[   33.458566]  test_out_of_bounds_write+0xd5/0x260
[   33.458969]  kunit_try_run_case+0x1b3/0x490
[   33.459478]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.460123]  kthread+0x257/0x310
[   33.460405]  ret_from_fork+0x41/0x80
[   33.460676]  ret_from_fork_asm+0x1a/0x30
[   33.461024] 
[   33.461397] CPU: 0 UID: 0 PID: 301 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   33.462553] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.462847] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.465170] ==================================================================