Hay
Date
Nov. 28, 2024, 2:36 a.m.

Environment
qemu-arm64
qemu-x86_64

[   38.826060] ==================================================================
[   38.826898] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   38.826898] 
[   38.827627] Out-of-bounds write at 0x000000003151f4bb (1B left of kfence-#135):
[   38.828504]  test_out_of_bounds_write+0x100/0x240
[   38.829174]  test_out_of_bounds_write+0xc8/0x240
[   38.829825]  kunit_try_run_case+0x14c/0x3d0
[   38.830481]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.831159]  kthread+0x24c/0x2d0
[   38.831636]  ret_from_fork+0x10/0x20
[   38.832226] 
[   38.832577] kfence-#135: 0x0000000088e6d49b-0x0000000056e44f6e, size=32, cache=test
[   38.832577] 
[   38.833612] allocated by task 281 on cpu 0 at 38.825882s (0.007718s ago):
[   38.834405]  test_alloc+0x22c/0x620
[   38.834964]  test_out_of_bounds_write+0xc8/0x240
[   38.835648]  kunit_try_run_case+0x14c/0x3d0
[   38.836297]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.836877]  kthread+0x24c/0x2d0
[   38.837435]  ret_from_fork+0x10/0x20
[   38.837957] 
[   38.838366] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   38.839658] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.840324] Hardware name: linux,dummy-virt (DT)
[   38.841037] ==================================================================
[   38.618070] ==================================================================
[   38.618887] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   38.618887] 
[   38.619643] Out-of-bounds write at 0x00000000801e5335 (1B left of kfence-#133):
[   38.620431]  test_out_of_bounds_write+0x100/0x240
[   38.621062]  test_out_of_bounds_write+0xc8/0x240
[   38.621611]  kunit_try_run_case+0x14c/0x3d0
[   38.622259]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.622981]  kthread+0x24c/0x2d0
[   38.623550]  ret_from_fork+0x10/0x20
[   38.624075] 
[   38.624445] kfence-#133: 0x000000008a3e7939-0x000000007302ac63, size=32, cache=kmalloc-32
[   38.624445] 
[   38.625525] allocated by task 279 on cpu 1 at 38.617786s (0.007728s ago):
[   38.626313]  test_alloc+0x298/0x620
[   38.626834]  test_out_of_bounds_write+0xc8/0x240
[   38.627460]  kunit_try_run_case+0x14c/0x3d0
[   38.628032]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.628773]  kthread+0x24c/0x2d0
[   38.629338]  ret_from_fork+0x10/0x20
[   38.629871] 
[   38.630278] CPU: 1 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   38.631271] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.631776] Hardware name: linux,dummy-virt (DT)
[   38.632424] ==================================================================

[   30.563891] ==================================================================
[   30.564620] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   30.564620] 
[   30.565549] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#107):
[   30.566260]  test_out_of_bounds_write+0x10e/0x260
[   30.566590]  kunit_try_run_case+0x1b3/0x490
[   30.567548]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.568048]  kthread+0x257/0x310
[   30.568277]  ret_from_fork+0x41/0x80
[   30.568553]  ret_from_fork_asm+0x1a/0x30
[   30.569077] 
[   30.569259] kfence-#107: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.569259] 
[   30.570251] allocated by task 299 on cpu 0 at 30.563724s (0.006522s ago):
[   30.570925]  test_alloc+0x35f/0x10d0
[   30.571523]  test_out_of_bounds_write+0xd5/0x260
[   30.572203]  kunit_try_run_case+0x1b3/0x490
[   30.572724]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.573133]  kthread+0x257/0x310
[   30.573503]  ret_from_fork+0x41/0x80
[   30.574236]  ret_from_fork_asm+0x1a/0x30
[   30.574864] 
[   30.575420] CPU: 0 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   30.576432] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.576963] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.577800] ==================================================================
[   30.771841] ==================================================================
[   30.772564] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10e/0x260
[   30.772564] 
[   30.773479] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#109):
[   30.774660]  test_out_of_bounds_write+0x10e/0x260
[   30.775079]  kunit_try_run_case+0x1b3/0x490
[   30.775553]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.776349]  kthread+0x257/0x310
[   30.776940]  ret_from_fork+0x41/0x80
[   30.777401]  ret_from_fork_asm+0x1a/0x30
[   30.777975] 
[   30.778268] kfence-#109: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.778268] 
[   30.779157] allocated by task 301 on cpu 1 at 30.771752s (0.007402s ago):
[   30.780179]  test_alloc+0x2a7/0x10d0
[   30.780550]  test_out_of_bounds_write+0xd5/0x260
[   30.781260]  kunit_try_run_case+0x1b3/0x490
[   30.781764]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.782364]  kthread+0x257/0x310
[   30.782731]  ret_from_fork+0x41/0x80
[   30.783144]  ret_from_fork_asm+0x1a/0x30
[   30.783493] 
[   30.783685] CPU: 1 UID: 0 PID: 301 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   30.784808] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.785081] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.786148] ==================================================================