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

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   88.807235] ==================================================================
[   88.814585] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   88.814585] 
[   88.824279] Corrupted memory at 0x00000000872b9ec7 [ ! . . . . . . . . . . . . . . . ] (in kfence-#41):
[   88.833914]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   88.839218]  kunit_try_run_case+0x170/0x3f0
[   88.843477]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   88.849046]  kthread+0x328/0x630
[   88.852334]  ret_from_fork+0x10/0x20
[   88.855972] 
[   88.857498] kfence-#41: 0x00000000ef1c4856-0x000000001879bfaf, size=73, cache=kmalloc-96
[   88.857498] 
[   88.867180] allocated by task 423 on cpu 5 at 88.807186s (0.059991s ago):
[   88.874070]  test_alloc+0x29c/0x628
[   88.877621]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   88.882832]  kunit_try_run_case+0x170/0x3f0
[   88.887086]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   88.892653]  kthread+0x328/0x630
[   88.895939]  ret_from_fork+0x10/0x20
[   88.899573] 
[   88.901096] freed by task 423 on cpu 5 at 88.807195s (0.093899s ago):
[   88.907627]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   88.912925]  kunit_try_run_case+0x170/0x3f0
[   88.917177]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   88.922745]  kthread+0x328/0x630
[   88.926031]  ret_from_fork+0x10/0x20
[   88.929666] 
[   88.931197] CPU: 5 UID: 0 PID: 423 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   88.942464] Tainted: [B]=BAD_PAGE, [N]=TEST
[   88.946712] Hardware name: Thundercomm Dragonboard 845c (DT)
[   88.952450] ==================================================================

[   46.908923] ==================================================================
[   46.909032] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   46.909032] 
[   46.909114] Corrupted memory at 0x00000000de3a8a92 [ ! . . . . . . . . . . . . . . . ] (in kfence-#197):
[   46.909484]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   46.909547]  kunit_try_run_case+0x170/0x3f0
[   46.909603]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.909658]  kthread+0x328/0x630
[   46.909705]  ret_from_fork+0x10/0x20
[   46.909756] 
[   46.909785] kfence-#197: 0x00000000e4ade892-0x00000000d2aa3706, size=73, cache=kmalloc-96
[   46.909785] 
[   46.909850] allocated by task 336 on cpu 0 at 46.908527s (0.001318s ago):
[   46.909945]  test_alloc+0x29c/0x628
[   46.910000]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   46.910054]  kunit_try_run_case+0x170/0x3f0
[   46.910107]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.910161]  kthread+0x328/0x630
[   46.910206]  ret_from_fork+0x10/0x20
[   46.910255] 
[   46.910283] freed by task 336 on cpu 0 at 46.908747s (0.001531s ago):
[   46.910359]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   46.910429]  kunit_try_run_case+0x170/0x3f0
[   46.910481]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.910535]  kthread+0x328/0x630
[   46.910580]  ret_from_fork+0x10/0x20
[   46.910629] 
[   46.910679] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   46.910777] Tainted: [B]=BAD_PAGE, [N]=TEST
[   46.910813] Hardware name: linux,dummy-virt (DT)
[   46.910854] ==================================================================

[   41.861102] ==================================================================
[   41.861601] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   41.861601] 
[   41.862263] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#160):
[   41.863194]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   41.863755]  kunit_try_run_case+0x1a5/0x480
[   41.864200]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   41.864745]  kthread+0x337/0x6f0
[   41.865027]  ret_from_fork+0x116/0x1d0
[   41.865403]  ret_from_fork_asm+0x1a/0x30
[   41.865682] 
[   41.865877] kfence-#160: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   41.865877] 
[   41.866645] allocated by task 355 on cpu 1 at 41.860691s (0.005933s ago):
[   41.867062]  test_alloc+0x364/0x10f0
[   41.867430]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   41.867973]  kunit_try_run_case+0x1a5/0x480
[   41.868352]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   41.868670]  kthread+0x337/0x6f0
[   41.869015]  ret_from_fork+0x116/0x1d0
[   41.869421]  ret_from_fork_asm+0x1a/0x30
[   41.869866] 
[   41.870079] freed by task 355 on cpu 1 at 41.860918s (0.009155s ago):
[   41.870522]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   41.870837]  kunit_try_run_case+0x1a5/0x480
[   41.871251]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   41.871783]  kthread+0x337/0x6f0
[   41.872154]  ret_from_fork+0x116/0x1d0
[   41.872552]  ret_from_fork_asm+0x1a/0x30
[   41.872916] 
[   41.873120] CPU: 1 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) 
[   41.874060] Tainted: [B]=BAD_PAGE, [N]=TEST
[   41.874546] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   41.875155] ==================================================================