Hay
Date
Nov. 28, 2024, 2:36 a.m.

Environment
qemu-arm64
qemu-x86_64

[   44.754318] ==================================================================
[   44.755004] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   44.755004] 
[   44.755901] Out-of-bounds read at 0x00000000da7779b9 (105B right of kfence-#192):
[   44.756778]  test_kmalloc_aligned_oob_read+0x238/0x468
[   44.757374]  test_kmalloc_aligned_oob_read+0x100/0x468
[   44.758104]  kunit_try_run_case+0x14c/0x3d0
[   44.758758]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   44.759386]  kthread+0x24c/0x2d0
[   44.759945]  ret_from_fork+0x10/0x20
[   44.760554] 
[   44.760909] kfence-#192: 0x0000000075269528-0x0000000030143b88, size=73, cache=kmalloc-96
[   44.760909] 
[   44.761853] allocated by task 311 on cpu 0 at 44.753849s (0.007993s ago):
[   44.762655]  test_alloc+0x298/0x620
[   44.763228]  test_kmalloc_aligned_oob_read+0x100/0x468
[   44.763933]  kunit_try_run_case+0x14c/0x3d0
[   44.764531]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   44.765260]  kthread+0x24c/0x2d0
[   44.765697]  ret_from_fork+0x10/0x20
[   44.766269] 
[   44.766620] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   44.767698] Tainted: [B]=BAD_PAGE, [N]=TEST
[   44.768206] Hardware name: linux,dummy-virt (DT)
[   44.768707] ==================================================================

[   37.740007] ==================================================================
[   37.740671] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27f/0x570
[   37.740671] 
[   37.741938] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#176):
[   37.743230]  test_kmalloc_aligned_oob_read+0x27f/0x570
[   37.743735]  kunit_try_run_case+0x1b3/0x490
[   37.744147]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.744631]  kthread+0x257/0x310
[   37.744988]  ret_from_fork+0x41/0x80
[   37.745631]  ret_from_fork_asm+0x1a/0x30
[   37.746005] 
[   37.746245] kfence-#176: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   37.746245] 
[   37.747126] allocated by task 331 on cpu 0 at 37.739696s (0.007425s ago):
[   37.747723]  test_alloc+0x35f/0x10d0
[   37.748189]  test_kmalloc_aligned_oob_read+0x106/0x570
[   37.748551]  kunit_try_run_case+0x1b3/0x490
[   37.749136]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.749509]  kthread+0x257/0x310
[   37.749942]  ret_from_fork+0x41/0x80
[   37.750440]  ret_from_fork_asm+0x1a/0x30
[   37.750851] 
[   37.751174] CPU: 0 UID: 0 PID: 331 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   37.751843] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.752400] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.753181] ==================================================================