Hay
Date
April 20, 2025, 11:09 p.m.

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

[   36.148585] ==================================================================
[   36.148676] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   36.148676] 
[   36.148748] Corrupted memory at 0x000000009f79dbdf [ ! . . . . . . . . . . . . . . . ] (in kfence-#183):
[   36.149143]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   36.149206]  kunit_try_run_case+0x170/0x3f0
[   36.149260]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.149318]  kthread+0x328/0x630
[   36.149368]  ret_from_fork+0x10/0x20
[   36.149419] 
[   36.149448] kfence-#183: 0x000000005c232af4-0x00000000af4fe6dc, size=73, cache=kmalloc-96
[   36.149448] 
[   36.149511] allocated by task 327 on cpu 1 at 36.148107s (0.001399s ago):
[   36.149584]  test_alloc+0x29c/0x628
[   36.149634]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   36.149685]  kunit_try_run_case+0x170/0x3f0
[   36.149738]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.149796]  kthread+0x328/0x630
[   36.149845]  ret_from_fork+0x10/0x20
[   36.149895] 
[   36.149923] freed by task 327 on cpu 1 at 36.148465s (0.001454s ago):
[   36.150017]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   36.150071]  kunit_try_run_case+0x170/0x3f0
[   36.150119]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.150173]  kthread+0x328/0x630
[   36.150220]  ret_from_fork+0x10/0x20
[   36.150270] 
[   36.150317] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   36.150412] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.150450] Hardware name: linux,dummy-virt (DT)
[   36.150487] ==================================================================

[   21.888935] ==================================================================
[   21.889423] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.889423] 
[   21.889799] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#117):
[   21.890408]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.890625]  kunit_try_run_case+0x1a5/0x480
[   21.890840]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.891068]  kthread+0x337/0x6f0
[   21.891258]  ret_from_fork+0x41/0x80
[   21.891424]  ret_from_fork_asm+0x1a/0x30
[   21.891629] 
[   21.891727] kfence-#117: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   21.891727] 
[   21.892106] allocated by task 346 on cpu 1 at 21.888681s (0.003423s ago):
[   21.892394]  test_alloc+0x364/0x10f0
[   21.892529]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   21.892885]  kunit_try_run_case+0x1a5/0x480
[   21.893092]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.893298]  kthread+0x337/0x6f0
[   21.893429]  ret_from_fork+0x41/0x80
[   21.893583]  ret_from_fork_asm+0x1a/0x30
[   21.893783] 
[   21.893880] freed by task 346 on cpu 1 at 21.888821s (0.005057s ago):
[   21.894236]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.894493]  kunit_try_run_case+0x1a5/0x480
[   21.894650]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.894904]  kthread+0x337/0x6f0
[   21.895058]  ret_from_fork+0x41/0x80
[   21.895300]  ret_from_fork_asm+0x1a/0x30
[   21.895481] 
[   21.895591] CPU: 1 UID: 0 PID: 346 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   21.895918] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.896127] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.896505] ==================================================================

[   32.789981] ==================================================================
[   32.790651] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.790651] 
[   32.791498] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#150):
[   32.792398]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.792865]  kunit_try_run_case+0x170/0x3f0
[   32.793245]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.793735]  kthread+0x328/0x630
[   32.794032]  ret_from_fork+0x10/0x20
[   32.794356] 
[   32.794494] kfence-#150: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   32.794494] 
[   32.795344] allocated by task 379 on cpu 4 at 32.789927s (0.005417s ago):
[   32.795950]  test_alloc+0x29c/0x628
[   32.796264]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   32.796722]  kunit_try_run_case+0x170/0x3f0
[   32.797098]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.797588]  kthread+0x328/0x630
[   32.797881]  ret_from_fork+0x10/0x20
[   32.798202] 
[   32.798341] freed by task 379 on cpu 4 at 32.789937s (0.008403s ago):
[   32.798917]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.799382]  kunit_try_run_case+0x170/0x3f0
[   32.799759]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.800249]  kthread+0x328/0x630
[   32.800542]  ret_from_fork+0x10/0x20
[   32.800864] 
[   32.801009] CPU: 4 UID: 0 PID: 379 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   32.801887] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.802259] Hardware name: Radxa ROCK Pi 4B (DT)
[   32.802669] ==================================================================