Hay
Date
Feb. 5, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-i386

[  191.122846] ==================================================================
[  191.124303] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x118/0x270
[  191.124303] 
[  191.126481] Out-of-bounds read at 0x0000000013f36877 (81B right of kfence-#227):
[  191.128355]  test_kmalloc_aligned_oob_read+0x118/0x270
[  191.129833]  kunit_try_run_case+0xf8/0x260
[  191.131059]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  191.132520]  kthread+0x18c/0x1a8
[  191.133520]  ret_from_fork+0x10/0x20
[  191.134638] 
[  191.135166] kfence-#227: 0x0000000042fcad1a-0x000000000a21949d, size=73, cache=kmalloc-96
[  191.135166] 
[  191.137060] allocated by task 263 on cpu 1 at 191.122382s:
[  191.138745]  test_alloc+0x224/0x3d8
[  191.139701]  test_kmalloc_aligned_oob_read+0xd4/0x270
[  191.141061]  kunit_try_run_case+0xf8/0x260
[  191.142260]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  191.143695]  kthread+0x18c/0x1a8
[  191.144660]  ret_from_fork+0x10/0x20
[  191.145747] 
[  191.146313] CPU: 1 PID: 263 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  191.148122] Hardware name: linux,dummy-virt (DT)
[  191.149217] ==================================================================


[   43.562637] ==================================================================
[   43.563095] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x82/0x1b0
[   43.563095] 
[   43.563819] Out-of-bounds read at 0x(ptrval) (81B right of kfence-#76):
[   43.564166]  test_kmalloc_aligned_oob_read+0x82/0x1b0
[   43.564343]  kunit_try_run_case+0x8a/0x1c4
[   43.564496]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   43.564656]  kthread+0xe0/0x108
[   43.564731]  ret_from_fork+0x40/0x4c
[   43.564802]  ret_from_fork_asm+0x12/0x18
[   43.564875]  restore_all_switch_stack+0x0/0xc3
[   43.565153] 
[   43.565726] kfence-#76: 0x(ptrval)-0x(ptrval), size=73, cache=kmalloc-96
[   43.565726] 
[   43.566741] allocated by task 165 on cpu 0 at 43.562527s:
[   43.566996]  test_alloc+0x153/0x2d4
[   43.567132]  test_kmalloc_aligned_oob_read+0x55/0x1b0
[   43.567520]  kunit_try_run_case+0x8a/0x1c4
[   43.567689]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   43.567870]  kthread+0xe0/0x108
[   43.568102]  ret_from_fork+0x40/0x4c
[   43.568385]  ret_from_fork_asm+0x12/0x18
[   43.568683]  restore_all_switch_stack+0x0/0xc3
[   43.569048] 
[   43.569197] CPU: 0 PID: 165 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   43.569480] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   43.569763] ==================================================================