Hay
Date
June 17, 2025, 3:39 p.m.

Environment
qemu-arm64
qemu-i386
qemu-x86_64

[  104.092572] ==================================================================
[  104.093444] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x118/0x270
[  104.093444] 
[  104.094594] Out-of-bounds read at 0x00000000a9e99974 (81B right of kfence-#219):
[  104.095625]  test_kmalloc_aligned_oob_read+0x118/0x270
[  104.096756]  kunit_try_run_case+0x114/0x298
[  104.097199]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  104.098010]  kthread+0x18c/0x1a8
[  104.098782]  ret_from_fork+0x10/0x20
[  104.099546] 
[  104.099929] kfence-#219: 0x00000000b747b313-0x00000000be610134, size=73, cache=kmalloc-96
[  104.099929] 
[  104.100649] allocated by task 264 on cpu 1 at 104.092177s:
[  104.101889]  test_alloc+0x228/0x3e8
[  104.102550]  test_kmalloc_aligned_oob_read+0xd4/0x270
[  104.103484]  kunit_try_run_case+0x114/0x298
[  104.104373]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  104.105407]  kthread+0x18c/0x1a8
[  104.106118]  ret_from_fork+0x10/0x20
[  104.106855] 
[  104.107262] CPU: 1 PID: 264 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[  104.107984] Hardware name: linux,dummy-virt (DT)
[  104.108340] ==================================================================


[   21.072447] ==================================================================
[   21.072703] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x82/0x1b0
[   21.072703] 
[   21.073112] Out-of-bounds read at 0x(ptrval) (81B right of kfence-#84):
[   21.073249]  test_kmalloc_aligned_oob_read+0x82/0x1b0
[   21.073363]  kunit_try_run_case+0x8a/0x1c4
[   21.073652]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   21.074333]  kthread+0xe0/0x108
[   21.074552]  ret_from_fork+0x40/0x4c
[   21.074719]  ret_from_fork_asm+0x12/0x18
[   21.074828]  restore_all_switch_stack+0x0/0xc3
[   21.074955] 
[   21.075013] kfence-#84: 0x(ptrval)-0x(ptrval), size=73, cache=kmalloc-96
[   21.075013] 
[   21.075369] allocated by task 164 on cpu 0 at 21.072327s:
[   21.075728]  test_alloc+0x153/0x2d4
[   21.075988]  test_kmalloc_aligned_oob_read+0x55/0x1b0
[   21.076292]  kunit_try_run_case+0x8a/0x1c4
[   21.076406]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   21.076550]  kthread+0xe0/0x108
[   21.076802]  ret_from_fork+0x40/0x4c
[   21.077036]  ret_from_fork_asm+0x12/0x18
[   21.077253]  restore_all_switch_stack+0x0/0xc3
[   21.077383] 
[   21.077507] CPU: 0 PID: 164 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   21.077919] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.078143] ==================================================================


[   42.393046] ==================================================================
[   42.393602] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x12a/0x250
[   42.393602] 
[   42.394382] Out-of-bounds read at 0x(____ptrval____) (81B right of kfence-#138):
[   42.395209]  test_kmalloc_aligned_oob_read+0x12a/0x250
[   42.395791]  kunit_try_run_case+0x120/0x290
[   42.396197]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   42.396504]  kthread+0x19e/0x1e0
[   42.396708]  ret_from_fork+0x41/0x70
[   42.397180]  ret_from_fork_asm+0x1b/0x30
[   42.397532] 
[   42.397746] kfence-#138: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   42.397746] 
[   42.398369] allocated by task 279 on cpu 1 at 42.392881s:
[   42.398758]  test_alloc+0x2ad/0x8e0
[   42.399018]  test_kmalloc_aligned_oob_read+0xda/0x250
[   42.399346]  kunit_try_run_case+0x120/0x290
[   42.399611]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   42.400279]  kthread+0x19e/0x1e0
[   42.400622]  ret_from_fork+0x41/0x70
[   42.400974]  ret_from_fork_asm+0x1b/0x30
[   42.401322] 
[   42.401537] CPU: 1 PID: 279 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   42.402115] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   42.402711] ==================================================================