Hay
Date
Dec. 5, 2024, 2:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   38.332019] ==================================================================
[   38.332868] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   38.332868] 
[   38.333859] Out-of-bounds write at 0x000000004452669d (1B left of kfence-#140):
[   38.334928]  test_out_of_bounds_write+0x100/0x240
[   38.335625]  test_out_of_bounds_write+0xc8/0x240
[   38.336554]  kunit_try_run_case+0x14c/0x3d0
[   38.337299]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.338183]  kthread+0x24c/0x2d0
[   38.338827]  ret_from_fork+0x10/0x20
[   38.339474] 
[   38.339889] kfence-#140: 0x000000008f165d43-0x00000000abfd8761, size=32, cache=test
[   38.339889] 
[   38.341046] allocated by task 282 on cpu 1 at 38.331848s (0.009189s ago):
[   38.342087]  test_alloc+0x22c/0x620
[   38.342823]  test_out_of_bounds_write+0xc8/0x240
[   38.343445]  kunit_try_run_case+0x14c/0x3d0
[   38.344096]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.344866]  kthread+0x24c/0x2d0
[   38.345389]  ret_from_fork+0x10/0x20
[   38.346030] 
[   38.346363] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   38.347495] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.348122] Hardware name: linux,dummy-virt (DT)
[   38.348699] ==================================================================
[   38.020120] ==================================================================
[   38.021052] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   38.021052] 
[   38.022272] Out-of-bounds write at 0x0000000074f38218 (1B left of kfence-#137):
[   38.023204]  test_out_of_bounds_write+0x100/0x240
[   38.024377]  test_out_of_bounds_write+0xc8/0x240
[   38.025063]  kunit_try_run_case+0x14c/0x3d0
[   38.025850]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.026559]  kthread+0x24c/0x2d0
[   38.027209]  ret_from_fork+0x10/0x20
[   38.027754] 
[   38.028168] kfence-#137: 0x00000000bbdb1d19-0x000000005fd9b2d9, size=32, cache=kmalloc-32
[   38.028168] 
[   38.029313] allocated by task 280 on cpu 1 at 38.019904s (0.009400s ago):
[   38.030200]  test_alloc+0x298/0x620
[   38.030861]  test_out_of_bounds_write+0xc8/0x240
[   38.031484]  kunit_try_run_case+0x14c/0x3d0
[   38.032179]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.032910]  kthread+0x24c/0x2d0
[   38.033506]  ret_from_fork+0x10/0x20
[   38.034078] 
[   38.034415] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   38.035747] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.036446] Hardware name: linux,dummy-virt (DT)
[   38.037077] ==================================================================

[   36.517430] ==================================================================
[   36.518228] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   36.518228] 
[   36.518938] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#104):
[   36.519477]  test_out_of_bounds_write+0x10e/0x260
[   36.520228]  kunit_try_run_case+0x1b3/0x490
[   36.520638]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.521286]  kthread+0x257/0x310
[   36.521562]  ret_from_fork+0x41/0x80
[   36.522083]  ret_from_fork_asm+0x1a/0x30
[   36.522576] 
[   36.522872] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   36.522872] 
[   36.523574] allocated by task 300 on cpu 1 at 36.517349s (0.006221s ago):
[   36.524138]  test_alloc+0x2a7/0x10d0
[   36.524636]  test_out_of_bounds_write+0xd5/0x260
[   36.525164]  kunit_try_run_case+0x1b3/0x490
[   36.525476]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.526060]  kthread+0x257/0x310
[   36.526474]  ret_from_fork+0x41/0x80
[   36.526778]  ret_from_fork_asm+0x1a/0x30
[   36.527237] 
[   36.527436] CPU: 1 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   36.528441] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.528967] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   36.529533] ==================================================================
[   36.101540] ==================================================================
[   36.102163] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   36.102163] 
[   36.102847] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#100):
[   36.103660]  test_out_of_bounds_write+0x10e/0x260
[   36.104172]  kunit_try_run_case+0x1b3/0x490
[   36.104564]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.105037]  kthread+0x257/0x310
[   36.105442]  ret_from_fork+0x41/0x80
[   36.105821]  ret_from_fork_asm+0x1a/0x30
[   36.106242] 
[   36.106413] kfence-#100: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   36.106413] 
[   36.107342] allocated by task 298 on cpu 0 at 36.101402s (0.005935s ago):
[   36.108123]  test_alloc+0x35f/0x10d0
[   36.108453]  test_out_of_bounds_write+0xd5/0x260
[   36.108798]  kunit_try_run_case+0x1b3/0x490
[   36.109307]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.110050]  kthread+0x257/0x310
[   36.110379]  ret_from_fork+0x41/0x80
[   36.110738]  ret_from_fork_asm+0x1a/0x30
[   36.111088] 
[   36.111285] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   36.112178] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.112918] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   36.113582] ==================================================================