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

Environment
qemu-arm64
qemu-x86_64

[   40.481789] ==================================================================
[   40.482715] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   40.482715] 
[   40.483655] Out-of-bounds write at 0x000000009e07dec0 (1B left of kfence-#158):
[   40.484742]  test_out_of_bounds_write+0x100/0x240
[   40.485292]  test_out_of_bounds_write+0xc8/0x240
[   40.486161]  kunit_try_run_case+0x14c/0x3d0
[   40.486746]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.487751]  kthread+0x24c/0x2d0
[   40.488205]  ret_from_fork+0x10/0x20
[   40.488973] 
[   40.489422] kfence-#158: 0x000000002914c616-0x00000000ee9e414c, size=32, cache=test
[   40.489422] 
[   40.490578] allocated by task 282 on cpu 1 at 40.481622s (0.008946s ago):
[   40.491468]  test_alloc+0x22c/0x620
[   40.492167]  test_out_of_bounds_write+0xc8/0x240
[   40.493025]  kunit_try_run_case+0x14c/0x3d0
[   40.493645]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.494622]  kthread+0x24c/0x2d0
[   40.495145]  ret_from_fork+0x10/0x20
[   40.495646] 
[   40.495989] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   40.497461] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.498162] Hardware name: linux,dummy-virt (DT)
[   40.498952] ==================================================================
[   40.274065] ==================================================================
[   40.274818] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   40.274818] 
[   40.275347] Out-of-bounds write at 0x0000000060117f21 (1B left of kfence-#156):
[   40.276107]  test_out_of_bounds_write+0x100/0x240
[   40.276769]  test_out_of_bounds_write+0xc8/0x240
[   40.277721]  kunit_try_run_case+0x14c/0x3d0
[   40.278453]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.279498]  kthread+0x24c/0x2d0
[   40.280276]  ret_from_fork+0x10/0x20
[   40.281050] 
[   40.281525] kfence-#156: 0x000000003bc86581-0x00000000c58f7346, size=32, cache=kmalloc-32
[   40.281525] 
[   40.282771] allocated by task 280 on cpu 1 at 40.273810s (0.008950s ago):
[   40.283843]  test_alloc+0x298/0x620
[   40.284527]  test_out_of_bounds_write+0xc8/0x240
[   40.285392]  kunit_try_run_case+0x14c/0x3d0
[   40.286100]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.286897]  kthread+0x24c/0x2d0
[   40.287526]  ret_from_fork+0x10/0x20
[   40.288065] 
[   40.288594] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   40.289924] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.290605] Hardware name: linux,dummy-virt (DT)
[   40.291415] ==================================================================

[   33.346704] ==================================================================
[   33.347409] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   33.347409] 
[   33.348369] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#105):
[   33.349107]  test_out_of_bounds_write+0x10e/0x260
[   33.350449]  kunit_try_run_case+0x1b3/0x490
[   33.350986]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.352096]  kthread+0x257/0x310
[   33.352564]  ret_from_fork+0x41/0x80
[   33.352955]  ret_from_fork_asm+0x1a/0x30
[   33.353369] 
[   33.353565] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   33.353565] 
[   33.354142] allocated by task 299 on cpu 1 at 33.346507s (0.007630s ago):
[   33.354524]  test_alloc+0x35f/0x10d0
[   33.354708]  test_out_of_bounds_write+0xd5/0x260
[   33.355767]  kunit_try_run_case+0x1b3/0x490
[   33.356157]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.356743]  kthread+0x257/0x310
[   33.357016]  ret_from_fork+0x41/0x80
[   33.357394]  ret_from_fork_asm+0x1a/0x30
[   33.357999] 
[   33.358303] CPU: 1 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   33.359520] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.360511] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.361243] ==================================================================
[   33.450592] ==================================================================
[   33.451522] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   33.451522] 
[   33.452067] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#106):
[   33.452723]  test_out_of_bounds_write+0x10e/0x260
[   33.453032]  kunit_try_run_case+0x1b3/0x490
[   33.453558]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.454258]  kthread+0x257/0x310
[   33.454682]  ret_from_fork+0x41/0x80
[   33.455125]  ret_from_fork_asm+0x1a/0x30
[   33.455604] 
[   33.455847] kfence-#106: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   33.455847] 
[   33.456563] allocated by task 301 on cpu 1 at 33.450500s (0.006058s ago):
[   33.457145]  test_alloc+0x2a7/0x10d0
[   33.457409]  test_out_of_bounds_write+0xd5/0x260
[   33.457967]  kunit_try_run_case+0x1b3/0x490
[   33.458390]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.458703]  kthread+0x257/0x310
[   33.459259]  ret_from_fork+0x41/0x80
[   33.459841]  ret_from_fork_asm+0x1a/0x30
[   33.460277] 
[   33.460601] CPU: 1 UID: 0 PID: 301 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   33.461340] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.461653] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.462244] ==================================================================