Hay
Date
June 24, 2025, 11:37 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   79.475176] ==================================================================
[   79.482519] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   79.482519] 
[   79.491880] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#181):
[   79.499289]  test_out_of_bounds_write+0x100/0x240
[   79.504072]  kunit_try_run_case+0x170/0x3f0
[   79.508332]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   79.513902]  kthread+0x328/0x630
[   79.517190]  ret_from_fork+0x10/0x20
[   79.520827] 
[   79.522353] kfence-#181: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   79.522353] 
[   79.532123] allocated by task 389 on cpu 5 at 79.475151s (0.056969s ago):
[   79.539015]  test_alloc+0x29c/0x628
[   79.542565]  test_out_of_bounds_write+0xc8/0x240
[   79.547254]  kunit_try_run_case+0x170/0x3f0
[   79.551507]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   79.557073]  kthread+0x328/0x630
[   79.560359]  ret_from_fork+0x10/0x20
[   79.563993] 
[   79.565523] CPU: 5 UID: 0 PID: 389 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   79.576790] Tainted: [B]=BAD_PAGE, [N]=TEST
[   79.581039] Hardware name: Thundercomm Dragonboard 845c (DT)
[   79.586776] ==================================================================
[   80.007203] ==================================================================
[   80.014563] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   80.014563] 
[   80.023912] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#186):
[   80.031320]  test_out_of_bounds_write+0x100/0x240
[   80.036102]  kunit_try_run_case+0x170/0x3f0
[   80.040361]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   80.045929]  kthread+0x328/0x630
[   80.049217]  ret_from_fork+0x10/0x20
[   80.052856] 
[   80.054381] kfence-#186: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   80.054381] 
[   80.063619] allocated by task 391 on cpu 4 at 80.007178s (0.056440s ago):
[   80.070514]  test_alloc+0x230/0x628
[   80.074064]  test_out_of_bounds_write+0xc8/0x240
[   80.078754]  kunit_try_run_case+0x170/0x3f0
[   80.083006]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   80.088574]  kthread+0x328/0x630
[   80.091859]  ret_from_fork+0x10/0x20
[   80.095494] 
[   80.097024] CPU: 4 UID: 0 PID: 391 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   80.108291] Tainted: [B]=BAD_PAGE, [N]=TEST
[   80.112540] Hardware name: Thundercomm Dragonboard 845c (DT)
[   80.118279] ==================================================================

[   39.253302] ==================================================================
[   39.253491] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   39.253491] 
[   39.254553] Out-of-bounds write at 0x000000005e6c5e2e (1B left of kfence-#124):
[   39.254912]  test_out_of_bounds_write+0x100/0x240
[   39.255775]  kunit_try_run_case+0x170/0x3f0
[   39.256029]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.256808]  kthread+0x328/0x630
[   39.257287]  ret_from_fork+0x10/0x20
[   39.257440] 
[   39.257498] kfence-#124: 0x000000007041317f-0x0000000016c580f4, size=32, cache=kmalloc-32
[   39.257498] 
[   39.257877] allocated by task 302 on cpu 0 at 39.253049s (0.004817s ago):
[   39.258397]  test_alloc+0x29c/0x628
[   39.258977]  test_out_of_bounds_write+0xc8/0x240
[   39.259471]  kunit_try_run_case+0x170/0x3f0
[   39.259707]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.260130]  kthread+0x328/0x630
[   39.260300]  ret_from_fork+0x10/0x20
[   39.260608] 
[   39.260772] CPU: 0 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   39.261214] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.261609] Hardware name: linux,dummy-virt (DT)
[   39.262032] ==================================================================
[   39.568676] ==================================================================
[   39.569078] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   39.569078] 
[   39.569548] Out-of-bounds write at 0x00000000c6461809 (1B left of kfence-#127):
[   39.569684]  test_out_of_bounds_write+0x100/0x240
[   39.569796]  kunit_try_run_case+0x170/0x3f0
[   39.569918]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.570039]  kthread+0x328/0x630
[   39.570208]  ret_from_fork+0x10/0x20
[   39.570366] 
[   39.570435] kfence-#127: 0x00000000a5a5b29f-0x00000000599331bc, size=32, cache=test
[   39.570435] 
[   39.570575] allocated by task 304 on cpu 0 at 39.568452s (0.002113s ago):
[   39.570801]  test_alloc+0x230/0x628
[   39.570926]  test_out_of_bounds_write+0xc8/0x240
[   39.571033]  kunit_try_run_case+0x170/0x3f0
[   39.571176]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.571291]  kthread+0x328/0x630
[   39.571383]  ret_from_fork+0x10/0x20
[   39.571489] 
[   39.571602] CPU: 0 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   39.571855] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.571985] Hardware name: linux,dummy-virt (DT)
[   39.572122] ==================================================================

[   36.556895] ==================================================================
[   36.557273] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   36.557273] 
[   36.557726] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#109):
[   36.558217]  test_out_of_bounds_write+0x10d/0x260
[   36.558496]  kunit_try_run_case+0x1a5/0x480
[   36.558887]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.559322]  kthread+0x337/0x6f0
[   36.559700]  ret_from_fork+0x116/0x1d0
[   36.559968]  ret_from_fork_asm+0x1a/0x30
[   36.560223] 
[   36.560358] kfence-#109: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   36.560358] 
[   36.561249] allocated by task 321 on cpu 1 at 36.556696s (0.004546s ago):
[   36.562022]  test_alloc+0x364/0x10f0
[   36.562418]  test_out_of_bounds_write+0xd4/0x260
[   36.562849]  kunit_try_run_case+0x1a5/0x480
[   36.563203]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.563792]  kthread+0x337/0x6f0
[   36.564178]  ret_from_fork+0x116/0x1d0
[   36.564497]  ret_from_fork_asm+0x1a/0x30
[   36.564821] 
[   36.565007] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) 
[   36.566137] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.566564] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   36.567207] ==================================================================
[   36.764766] ==================================================================
[   36.765378] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   36.765378] 
[   36.766057] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#111):
[   36.766415]  test_out_of_bounds_write+0x10d/0x260
[   36.766935]  kunit_try_run_case+0x1a5/0x480
[   36.767274]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.767742]  kthread+0x337/0x6f0
[   36.768108]  ret_from_fork+0x116/0x1d0
[   36.768483]  ret_from_fork_asm+0x1a/0x30
[   36.768779] 
[   36.768970] kfence-#111: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   36.768970] 
[   36.769417] allocated by task 323 on cpu 1 at 36.764673s (0.004738s ago):
[   36.770082]  test_alloc+0x2a6/0x10f0
[   36.770451]  test_out_of_bounds_write+0xd4/0x260
[   36.770821]  kunit_try_run_case+0x1a5/0x480
[   36.771098]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.771609]  kthread+0x337/0x6f0
[   36.772071]  ret_from_fork+0x116/0x1d0
[   36.772380]  ret_from_fork_asm+0x1a/0x30
[   36.772792] 
[   36.772996] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) 
[   36.773651] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.774142] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   36.774912] ==================================================================