Hay
Date
Nov. 20, 2024, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   45.510398] ==================================================================
[   45.511298] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   45.511298] 
[   45.512262] Out-of-bounds write at 0x00000000f35d4dd0 (1B left of kfence-#170):
[   45.513217]  test_out_of_bounds_write+0x100/0x240
[   45.513844]  test_out_of_bounds_write+0xc8/0x240
[   45.514541]  kunit_try_run_case+0x14c/0x3d0
[   45.515206]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.515973]  kthread+0x24c/0x2d0
[   45.516542]  ret_from_fork+0x10/0x20
[   45.517122] 
[   45.517548] kfence-#170: 0x00000000100c786e-0x00000000ff793896, size=32, cache=test
[   45.517548] 
[   45.518478] allocated by task 282 on cpu 0 at 45.510195s (0.008271s ago):
[   45.519458]  test_alloc+0x22c/0x620
[   45.519970]  test_out_of_bounds_write+0xc8/0x240
[   45.520614]  kunit_try_run_case+0x14c/0x3d0
[   45.521305]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.521920]  kthread+0x24c/0x2d0
[   45.522500]  ret_from_fork+0x10/0x20
[   45.523119] 
[   45.523560] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   45.524638] Tainted: [B]=BAD_PAGE, [N]=TEST
[   45.525246] Hardware name: linux,dummy-virt (DT)
[   45.525811] ==================================================================
[   45.406489] ==================================================================
[   45.407333] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   45.407333] 
[   45.408243] Out-of-bounds write at 0x0000000070cc7112 (1B left of kfence-#169):
[   45.409153]  test_out_of_bounds_write+0x100/0x240
[   45.409813]  test_out_of_bounds_write+0xc8/0x240
[   45.410519]  kunit_try_run_case+0x14c/0x3d0
[   45.411184]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.411917]  kthread+0x24c/0x2d0
[   45.412436]  ret_from_fork+0x10/0x20
[   45.413036] 
[   45.413393] kfence-#169: 0x00000000680c45b2-0x00000000ab7c676f, size=32, cache=kmalloc-32
[   45.413393] 
[   45.414345] allocated by task 280 on cpu 1 at 45.406169s (0.008166s ago):
[   45.415274]  test_alloc+0x298/0x620
[   45.415880]  test_out_of_bounds_write+0xc8/0x240
[   45.416587]  kunit_try_run_case+0x14c/0x3d0
[   45.417199]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.417846]  kthread+0x24c/0x2d0
[   45.418421]  ret_from_fork+0x10/0x20
[   45.418991] 
[   45.419399] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   45.420465] Tainted: [B]=BAD_PAGE, [N]=TEST
[   45.421041] Hardware name: linux,dummy-virt (DT)
[   45.421583] ==================================================================

[   37.273410] ==================================================================
[   37.273869] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   37.273869] 
[   37.274526] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#105):
[   37.275139]  test_out_of_bounds_write+0x10e/0x260
[   37.275425]  kunit_try_run_case+0x1b3/0x490
[   37.275691]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.276091]  kthread+0x257/0x310
[   37.276493]  ret_from_fork+0x41/0x80
[   37.276785]  ret_from_fork_asm+0x1a/0x30
[   37.277293] 
[   37.277638] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   37.277638] 
[   37.278254] allocated by task 300 on cpu 0 at 37.273341s (0.004909s ago):
[   37.278639]  test_alloc+0x2a7/0x10d0
[   37.279016]  test_out_of_bounds_write+0xd5/0x260
[   37.279550]  kunit_try_run_case+0x1b3/0x490
[   37.280088]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.280460]  kthread+0x257/0x310
[   37.280684]  ret_from_fork+0x41/0x80
[   37.280969]  ret_from_fork_asm+0x1a/0x30
[   37.281219] 
[   37.281387] CPU: 0 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   37.282285] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.282764] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.283350] ==================================================================
[   37.168586] ==================================================================
[   37.169351] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   37.169351] 
[   37.170327] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#104):
[   37.171292]  test_out_of_bounds_write+0x10e/0x260
[   37.172405]  kunit_try_run_case+0x1b3/0x490
[   37.173202]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.173861]  kthread+0x257/0x310
[   37.174195]  ret_from_fork+0x41/0x80
[   37.174567]  ret_from_fork_asm+0x1a/0x30
[   37.175320] 
[   37.175518] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   37.175518] 
[   37.176516] allocated by task 298 on cpu 1 at 37.168465s (0.008047s ago):
[   37.177697]  test_alloc+0x35f/0x10d0
[   37.178112]  test_out_of_bounds_write+0xd5/0x260
[   37.178554]  kunit_try_run_case+0x1b3/0x490
[   37.179373]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.180041]  kthread+0x257/0x310
[   37.180351]  ret_from_fork+0x41/0x80
[   37.180747]  ret_from_fork_asm+0x1a/0x30
[   37.181166] 
[   37.181394] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   37.182705] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.183467] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.184663] ==================================================================