Hay
Date
Nov. 27, 2024, 3:37 a.m.

Environment
qemu-arm64
qemu-x86_64

[   56.861891] ==================================================================
[   56.862794] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   56.862794] 
[   56.863666] Out-of-bounds write at 0x00000000b8fd362d (1B left of kfence-#160):
[   56.864087]  test_out_of_bounds_write+0x100/0x240
[   56.864700]  test_out_of_bounds_write+0xc8/0x240
[   56.865599]  kunit_try_run_case+0x14c/0x3d0
[   56.866422]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   56.867050]  kthread+0x24c/0x2d0
[   56.867636]  ret_from_fork+0x10/0x20
[   56.868122] 
[   56.868441] kfence-#160: 0x00000000e07bf36e-0x000000005a55684e, size=32, cache=test
[   56.868441] 
[   56.869475] allocated by task 282 on cpu 0 at 56.861731s (0.007734s ago):
[   56.870443]  test_alloc+0x22c/0x620
[   56.870940]  test_out_of_bounds_write+0xc8/0x240
[   56.871657]  kunit_try_run_case+0x14c/0x3d0
[   56.872264]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   56.872956]  kthread+0x24c/0x2d0
[   56.873560]  ret_from_fork+0x10/0x20
[   56.874147] 
[   56.874567] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   56.875765] Tainted: [B]=BAD_PAGE, [N]=TEST
[   56.876310] Hardware name: linux,dummy-virt (DT)
[   56.876891] ==================================================================
[   56.446186] ==================================================================
[   56.447095] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   56.447095] 
[   56.448188] Out-of-bounds write at 0x000000007360a25c (1B left of kfence-#156):
[   56.449188]  test_out_of_bounds_write+0x100/0x240
[   56.450211]  test_out_of_bounds_write+0xc8/0x240
[   56.451039]  kunit_try_run_case+0x14c/0x3d0
[   56.451742]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   56.452601]  kthread+0x24c/0x2d0
[   56.453248]  ret_from_fork+0x10/0x20
[   56.453865] 
[   56.454212] kfence-#156: 0x00000000d3e03450-0x00000000b08e18b8, size=32, cache=kmalloc-32
[   56.454212] 
[   56.455432] allocated by task 280 on cpu 0 at 56.445942s (0.009481s ago):
[   56.456569]  test_alloc+0x298/0x620
[   56.457271]  test_out_of_bounds_write+0xc8/0x240
[   56.458043]  kunit_try_run_case+0x14c/0x3d0
[   56.458809]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   56.459625]  kthread+0x24c/0x2d0
[   56.460216]  ret_from_fork+0x10/0x20
[   56.460845] 
[   56.461340] CPU: 0 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   56.462610] Tainted: [B]=BAD_PAGE, [N]=TEST
[   56.463236] Hardware name: linux,dummy-virt (DT)
[   56.463847] ==================================================================

[   34.725380] ==================================================================
[   34.726001] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   34.726001] 
[   34.726607] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#104):
[   34.726897]  test_out_of_bounds_write+0x10e/0x260
[   34.727249]  kunit_try_run_case+0x1b3/0x490
[   34.727662]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.728826]  kthread+0x257/0x310
[   34.729424]  ret_from_fork+0x41/0x80
[   34.729924]  ret_from_fork_asm+0x1a/0x30
[   34.730422] 
[   34.730801] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   34.730801] 
[   34.731862] allocated by task 301 on cpu 0 at 34.725311s (0.006547s ago):
[   34.732959]  test_alloc+0x2a7/0x10d0
[   34.733345]  test_out_of_bounds_write+0xd5/0x260
[   34.733791]  kunit_try_run_case+0x1b3/0x490
[   34.734324]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.734718]  kthread+0x257/0x310
[   34.735233]  ret_from_fork+0x41/0x80
[   34.735726]  ret_from_fork_asm+0x1a/0x30
[   34.736337] 
[   34.736710] CPU: 0 UID: 0 PID: 301 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   34.737710] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.738161] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.739171] ==================================================================
[   34.621431] ==================================================================
[   34.622123] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   34.622123] 
[   34.623029] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#103):
[   34.623718]  test_out_of_bounds_write+0x10e/0x260
[   34.624214]  kunit_try_run_case+0x1b3/0x490
[   34.624933]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.625494]  kthread+0x257/0x310
[   34.626018]  ret_from_fork+0x41/0x80
[   34.626531]  ret_from_fork_asm+0x1a/0x30
[   34.626925] 
[   34.627386] kfence-#103: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   34.627386] 
[   34.628320] allocated by task 299 on cpu 1 at 34.621304s (0.007011s ago):
[   34.629050]  test_alloc+0x35f/0x10d0
[   34.629393]  test_out_of_bounds_write+0xd5/0x260
[   34.629849]  kunit_try_run_case+0x1b3/0x490
[   34.630411]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.630864]  kthread+0x257/0x310
[   34.631446]  ret_from_fork+0x41/0x80
[   34.631910]  ret_from_fork_asm+0x1a/0x30
[   34.632253] 
[   34.632442] CPU: 1 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   34.633698] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.634286] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.635119] ==================================================================