Hay
Date
Dec. 9, 2024, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.135721] ==================================================================
[   32.136555] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   32.136555] 
[   32.137485] Out-of-bounds write at 0x00000000714f7f92 (1B left of kfence-#114):
[   32.139064]  test_out_of_bounds_write+0x100/0x240
[   32.139746]  test_out_of_bounds_write+0xc8/0x240
[   32.140322]  kunit_try_run_case+0x14c/0x3d0
[   32.140901]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.141576]  kthread+0x24c/0x2d0
[   32.142148]  ret_from_fork+0x10/0x20
[   32.142731] 
[   32.143123] kfence-#114: 0x00000000f9071ec4-0x000000002bd30384, size=32, cache=test
[   32.143123] 
[   32.144106] allocated by task 281 on cpu 1 at 32.135558s (0.008536s ago):
[   32.144939]  test_alloc+0x22c/0x620
[   32.145497]  test_out_of_bounds_write+0xc8/0x240
[   32.146151]  kunit_try_run_case+0x14c/0x3d0
[   32.146792]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.147458]  kthread+0x24c/0x2d0
[   32.148037]  ret_from_fork+0x10/0x20
[   32.148631] 
[   32.149055] CPU: 1 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc2-next-20241209 #1
[   32.150160] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.150694] Hardware name: linux,dummy-virt (DT)
[   32.151268] ==================================================================
[   31.927794] ==================================================================
[   31.928511] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   31.928511] 
[   31.929434] Out-of-bounds write at 0x0000000018fa15c2 (1B left of kfence-#112):
[   31.930355]  test_out_of_bounds_write+0x100/0x240
[   31.931394]  test_out_of_bounds_write+0xc8/0x240
[   31.931998]  kunit_try_run_case+0x14c/0x3d0
[   31.932571]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.933184]  kthread+0x24c/0x2d0
[   31.933796]  ret_from_fork+0x10/0x20
[   31.934342] 
[   31.934634] kfence-#112: 0x000000008872257d-0x000000004920849b, size=32, cache=kmalloc-32
[   31.934634] 
[   31.935722] allocated by task 279 on cpu 1 at 31.927534s (0.008179s ago):
[   31.936620]  test_alloc+0x298/0x620
[   31.937179]  test_out_of_bounds_write+0xc8/0x240
[   31.937820]  kunit_try_run_case+0x14c/0x3d0
[   31.938358]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.939070]  kthread+0x24c/0x2d0
[   31.939508]  ret_from_fork+0x10/0x20
[   31.940105] 
[   31.940447] CPU: 1 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc2-next-20241209 #1
[   31.941573] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.942091] Hardware name: linux,dummy-virt (DT)
[   31.942709] ==================================================================

[   33.572870] ==================================================================
[   33.573564] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   33.573564] 
[   33.574356] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#107):
[   33.575309]  test_out_of_bounds_write+0x10e/0x260
[   33.575682]  kunit_try_run_case+0x1b3/0x490
[   33.576297]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.576770]  kthread+0x257/0x310
[   33.577227]  ret_from_fork+0x41/0x80
[   33.577680]  ret_from_fork_asm+0x1a/0x30
[   33.578273] 
[   33.578459] kfence-#107: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   33.578459] 
[   33.579565] allocated by task 300 on cpu 1 at 33.572775s (0.006786s ago):
[   33.580140]  test_alloc+0x2a7/0x10d0
[   33.580529]  test_out_of_bounds_write+0xd5/0x260
[   33.581311]  kunit_try_run_case+0x1b3/0x490
[   33.581734]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.582418]  kthread+0x257/0x310
[   33.582730]  ret_from_fork+0x41/0x80
[   33.583431]  ret_from_fork_asm+0x1a/0x30
[   33.584005] 
[   33.584339] CPU: 1 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc2-next-20241209 #1
[   33.585348] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.585807] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.586881] ==================================================================
[   33.365042] ==================================================================
[   33.365935] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   33.365935] 
[   33.366975] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#105):
[   33.367976]  test_out_of_bounds_write+0x10e/0x260
[   33.368367]  kunit_try_run_case+0x1b3/0x490
[   33.369648]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.370216]  kthread+0x257/0x310
[   33.370499]  ret_from_fork+0x41/0x80
[   33.370985]  ret_from_fork_asm+0x1a/0x30
[   33.371448] 
[   33.371618] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   33.371618] 
[   33.372862] allocated by task 298 on cpu 0 at 33.364803s (0.008055s ago):
[   33.373663]  test_alloc+0x35f/0x10d0
[   33.374350]  test_out_of_bounds_write+0xd5/0x260
[   33.375731]  kunit_try_run_case+0x1b3/0x490
[   33.376749]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.377301]  kthread+0x257/0x310
[   33.377636]  ret_from_fork+0x41/0x80
[   33.378038]  ret_from_fork_asm+0x1a/0x30
[   33.378850] 
[   33.379151] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc2-next-20241209 #1
[   33.380399] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.381386] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.382214] ==================================================================