Hay
Date
Nov. 20, 2024, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   52.375068] ==================================================================
[   52.375938] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   52.375938] 
[   52.376984] Out-of-bounds read at 0x00000000f4831405 (105B right of kfence-#236):
[   52.377834]  test_kmalloc_aligned_oob_read+0x238/0x468
[   52.378418]  test_kmalloc_aligned_oob_read+0x100/0x468
[   52.379142]  kunit_try_run_case+0x14c/0x3d0
[   52.379805]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   52.380578]  kthread+0x24c/0x2d0
[   52.381109]  ret_from_fork+0x10/0x20
[   52.381766] 
[   52.382080] kfence-#236: 0x0000000078055937-0x000000000f266a86, size=73, cache=kmalloc-96
[   52.382080] 
[   52.383123] allocated by task 312 on cpu 1 at 52.374562s (0.008550s ago):
[   52.384054]  test_alloc+0x298/0x620
[   52.384666]  test_kmalloc_aligned_oob_read+0x100/0x468
[   52.385438]  kunit_try_run_case+0x14c/0x3d0
[   52.386015]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   52.386766]  kthread+0x24c/0x2d0
[   52.387263]  ret_from_fork+0x10/0x20
[   52.387851] 
[   52.388285] CPU: 1 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   52.389358] Tainted: [B]=BAD_PAGE, [N]=TEST
[   52.389933] Hardware name: linux,dummy-virt (DT)
[   52.390546] ==================================================================

[   43.616757] ==================================================================
[   43.617337] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27f/0x570
[   43.617337] 
[   43.618266] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#166):
[   43.618915]  test_kmalloc_aligned_oob_read+0x27f/0x570
[   43.619391]  kunit_try_run_case+0x1b3/0x490
[   43.619928]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   43.620410]  kthread+0x257/0x310
[   43.620830]  ret_from_fork+0x41/0x80
[   43.621262]  ret_from_fork_asm+0x1a/0x30
[   43.621613] 
[   43.621819] kfence-#166: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   43.621819] 
[   43.622877] allocated by task 330 on cpu 0 at 43.616452s (0.006421s ago):
[   43.623303]  test_alloc+0x35f/0x10d0
[   43.623786]  test_kmalloc_aligned_oob_read+0x106/0x570
[   43.624393]  kunit_try_run_case+0x1b3/0x490
[   43.624752]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   43.625355]  kthread+0x257/0x310
[   43.625668]  ret_from_fork+0x41/0x80
[   43.625971]  ret_from_fork_asm+0x1a/0x30
[   43.626490] 
[   43.626777] CPU: 0 UID: 0 PID: 330 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   43.627793] Tainted: [B]=BAD_PAGE, [N]=TEST
[   43.628097] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   43.628917] ==================================================================