Hay
Date
June 26, 2025, 9:10 a.m.

Environment
dragonboard-845c
juno-r2
qemu-arm64
qemu-x86_64

[   89.492014] ==================================================================
[   89.499332] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   89.499332] 
[   89.509034] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#26):
[   89.516530]  test_kmalloc_aligned_oob_read+0x238/0x468
[   89.521746]  kunit_try_run_case+0x170/0x3f0
[   89.526004]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   89.531574]  kthread+0x328/0x630
[   89.534863]  ret_from_fork+0x10/0x20
[   89.538500] 
[   89.540026] kfence-#26: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   89.540026] 
[   89.549710] allocated by task 409 on cpu 6 at 89.491992s (0.057717s ago):
[   89.556594]  test_alloc+0x29c/0x628
[   89.560145]  test_kmalloc_aligned_oob_read+0x100/0x468
[   89.565356]  kunit_try_run_case+0x170/0x3f0
[   89.569610]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   89.575178]  kthread+0x328/0x630
[   89.578463]  ret_from_fork+0x10/0x20
[   89.582097] 
[   89.583627] CPU: 6 UID: 0 PID: 409 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   89.594895] Tainted: [B]=BAD_PAGE, [N]=TEST
[   89.599143] Hardware name: Thundercomm Dragonboard 845c (DT)
[   89.604882] ==================================================================

[ 1532.368327] ==================================================================
[ 1532.368344] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[ 1532.368344] 
[ 1532.368378] Out-of-bounds read at 0x00000000d36c7839 (105B right of kfence-#87):
[ 1532.368395]  test_kmalloc_aligned_oob_read+0x238/0x468
[ 1532.368414]  kunit_try_run_case+0x170/0x3f0
[ 1532.368430]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1532.368447]  kthread+0x328/0x630
[ 1532.368458]  ret_from_fork+0x10/0x20
[ 1532.368472] 
[ 1532.368477] kfence-#87: 0x000000001e74634e-0x00000000849107ed, size=73, cache=kmalloc-96
[ 1532.368477] 
[ 1532.368494] allocated by task 394 on cpu 2 at 1532.368305s (0.000188s ago):
[ 1532.368519]  test_alloc+0x29c/0x628
[ 1532.368533]  test_kmalloc_aligned_oob_read+0x100/0x468
[ 1532.368548]  kunit_try_run_case+0x170/0x3f0
[ 1532.368562]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1532.368577]  kthread+0x328/0x630
[ 1532.368586]  ret_from_fork+0x10/0x20
[ 1532.368599] 
[ 1532.368609] CPU: 2 UID: 0 PID: 394 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[ 1532.368635] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[ 1532.368644] Hardware name: ARM Juno development board (r2) (DT)
[ 1532.368653] ==================================================================

[   38.328359] ==================================================================
[   38.328424] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   38.328424] 
[   38.328514] Out-of-bounds read at 0x000000004f555c9f (105B right of kfence-#156):
[   38.328572]  test_kmalloc_aligned_oob_read+0x238/0x468
[   38.328624]  kunit_try_run_case+0x170/0x3f0
[   38.328671]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.328718]  kthread+0x328/0x630
[   38.328756]  ret_from_fork+0x10/0x20
[   38.328795] 
[   38.328819] kfence-#156: 0x000000008bee5ba7-0x00000000e3476c33, size=73, cache=kmalloc-96
[   38.328819] 
[   38.328871] allocated by task 335 on cpu 1 at 38.328131s (0.000736s ago):
[   38.328942]  test_alloc+0x29c/0x628
[   38.328981]  test_kmalloc_aligned_oob_read+0x100/0x468
[   38.329025]  kunit_try_run_case+0x170/0x3f0
[   38.329078]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.329123]  kthread+0x328/0x630
[   38.329159]  ret_from_fork+0x10/0x20
[   38.329199] 
[   38.329243] CPU: 1 UID: 0 PID: 335 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   38.329326] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.329355] Hardware name: linux,dummy-virt (DT)
[   38.329391] ==================================================================

[   32.915406] ==================================================================
[   32.915842] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   32.915842] 
[   32.916306] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#130):
[   32.916906]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   32.917142]  kunit_try_run_case+0x1a5/0x480
[   32.917320]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.917574]  kthread+0x337/0x6f0
[   32.917750]  ret_from_fork+0x116/0x1d0
[   32.917913]  ret_from_fork_asm+0x1a/0x30
[   32.918068] 
[   32.918167] kfence-#130: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   32.918167] 
[   32.918509] allocated by task 352 on cpu 0 at 32.915153s (0.003353s ago):
[   32.918855]  test_alloc+0x364/0x10f0
[   32.919069]  test_kmalloc_aligned_oob_read+0x105/0x560
[   32.919269]  kunit_try_run_case+0x1a5/0x480
[   32.919480]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.919706]  kthread+0x337/0x6f0
[   32.919862]  ret_from_fork+0x116/0x1d0
[   32.920020]  ret_from_fork_asm+0x1a/0x30
[   32.920196] 
[   32.920336] CPU: 0 UID: 0 PID: 352 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   32.920767] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.920972] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.921371] ==================================================================