Hay
Date
April 22, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64
rk3399-rock-pi-4b

[   23.093999] ==================================================================
[   23.094255] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   23.094255] 
[   23.094427] Out-of-bounds write at 0x0000000036c836c3 (1B left of kfence-#110):
[   23.094564]  test_out_of_bounds_write+0x100/0x240
[   23.094665]  kunit_try_run_case+0x170/0x3f0
[   23.094776]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.094892]  kthread+0x328/0x630
[   23.095078]  ret_from_fork+0x10/0x20
[   23.095209] 
[   23.095327] kfence-#110: 0x0000000042ea4e51-0x0000000094daf49b, size=32, cache=test
[   23.095327] 
[   23.095440] allocated by task 295 on cpu 0 at 23.093829s (0.001602s ago):
[   23.095652]  test_alloc+0x230/0x628
[   23.095741]  test_out_of_bounds_write+0xc8/0x240
[   23.095925]  kunit_try_run_case+0x170/0x3f0
[   23.096273]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.096422]  kthread+0x328/0x630
[   23.096510]  ret_from_fork+0x10/0x20
[   23.097120] 
[   23.097731] CPU: 0 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   23.098055] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.098163] Hardware name: linux,dummy-virt (DT)
[   23.098439] ==================================================================
[   22.988859] ==================================================================
[   22.989015] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   22.989015] 
[   22.989206] Out-of-bounds write at 0x00000000986c305b (1B left of kfence-#109):
[   22.989641]  test_out_of_bounds_write+0x100/0x240
[   22.989902]  kunit_try_run_case+0x170/0x3f0
[   22.990022]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.990179]  kthread+0x328/0x630
[   22.990284]  ret_from_fork+0x10/0x20
[   22.990381] 
[   22.990449] kfence-#109: 0x000000009b4c1765-0x000000001346d2dc, size=32, cache=kmalloc-32
[   22.990449] 
[   22.990605] allocated by task 293 on cpu 0 at 22.988543s (0.002053s ago):
[   22.990805]  test_alloc+0x29c/0x628
[   22.990897]  test_out_of_bounds_write+0xc8/0x240
[   22.990990]  kunit_try_run_case+0x170/0x3f0
[   22.991090]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.991192]  kthread+0x328/0x630
[   22.991275]  ret_from_fork+0x10/0x20
[   22.991400] 
[   22.991502] CPU: 0 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   22.992051] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.992147] Hardware name: linux,dummy-virt (DT)
[   22.992386] ==================================================================

[   26.810045] ==================================================================
[   26.810815] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   26.810815] 
[   26.811572] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#101):
[   26.812210]  test_out_of_bounds_write+0x10d/0x260
[   26.812591]  kunit_try_run_case+0x1a5/0x480
[   26.813165]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.813782]  kthread+0x337/0x6f0
[   26.814268]  ret_from_fork+0x41/0x80
[   26.814871]  ret_from_fork_asm+0x1a/0x30
[   26.815212] 
[   26.815422] kfence-#101: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   26.815422] 
[   26.816300] allocated by task 311 on cpu 1 at 26.809906s (0.006387s ago):
[   26.817068]  test_alloc+0x364/0x10f0
[   26.817520]  test_out_of_bounds_write+0xd4/0x260
[   26.818012]  kunit_try_run_case+0x1a5/0x480
[   26.818342]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.818916]  kthread+0x337/0x6f0
[   26.819370]  ret_from_fork+0x41/0x80
[   26.819877]  ret_from_fork_asm+0x1a/0x30
[   26.820238] 
[   26.820548] CPU: 1 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   26.821847] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.822156] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.823283] ==================================================================
[   27.018143] ==================================================================
[   27.018867] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   27.018867] 
[   27.019726] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#103):
[   27.020377]  test_out_of_bounds_write+0x10d/0x260
[   27.020889]  kunit_try_run_case+0x1a5/0x480
[   27.021358]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.022007]  kthread+0x337/0x6f0
[   27.022445]  ret_from_fork+0x41/0x80
[   27.022881]  ret_from_fork_asm+0x1a/0x30
[   27.023437] 
[   27.023722] kfence-#103: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   27.023722] 
[   27.024611] allocated by task 313 on cpu 1 at 27.018042s (0.006564s ago):
[   27.025184]  test_alloc+0x2a6/0x10f0
[   27.025681]  test_out_of_bounds_write+0xd4/0x260
[   27.026145]  kunit_try_run_case+0x1a5/0x480
[   27.026690]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.027184]  kthread+0x337/0x6f0
[   27.027630]  ret_from_fork+0x41/0x80
[   27.028045]  ret_from_fork_asm+0x1a/0x30
[   27.028681] 
[   27.028944] CPU: 1 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   27.030079] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.030554] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.031281] ==================================================================

[   25.897705] ==================================================================
[   25.898381] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   25.898381] 
[   25.899210] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#104):
[   25.899859]  test_out_of_bounds_write+0x100/0x240
[   25.900282]  kunit_try_run_case+0x170/0x3f0
[   25.900664]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.901155]  kthread+0x328/0x630
[   25.901452]  ret_from_fork+0x10/0x20
[   25.901777] 
[   25.901915] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   25.901915] 
[   25.902720] allocated by task 351 on cpu 4 at 25.897674s (0.005044s ago):
[   25.903328]  test_alloc+0x230/0x628
[   25.903643]  test_out_of_bounds_write+0xc8/0x240
[   25.904056]  kunit_try_run_case+0x170/0x3f0
[   25.904432]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.904923]  kthread+0x328/0x630
[   25.905216]  ret_from_fork+0x10/0x20
[   25.905539] 
[   25.905682] CPU: 4 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   25.906560] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.906931] Hardware name: Radxa ROCK Pi 4B (DT)
[   25.907341] ==================================================================
[   25.689706] ==================================================================
[   25.690381] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   25.690381] 
[   25.691208] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#102):
[   25.691857]  test_out_of_bounds_write+0x100/0x240
[   25.692280]  kunit_try_run_case+0x170/0x3f0
[   25.692661]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.693154]  kthread+0x328/0x630
[   25.693451]  ret_from_fork+0x10/0x20
[   25.693776] 
[   25.693915] kfence-#102: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   25.693915] 
[   25.694765] allocated by task 349 on cpu 4 at 25.689678s (0.005086s ago):
[   25.695372]  test_alloc+0x29c/0x628
[   25.695686]  test_out_of_bounds_write+0xc8/0x240
[   25.696098]  kunit_try_run_case+0x170/0x3f0
[   25.696474]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.696964]  kthread+0x328/0x630
[   25.697257]  ret_from_fork+0x10/0x20
[   25.697579] 
[   25.697723] CPU: 4 UID: 0 PID: 349 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   25.698602] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.698973] Hardware name: Radxa ROCK Pi 4B (DT)
[   25.699383] ==================================================================