Hay
Date
Nov. 26, 2024, 6:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   45.989659] ==================================================================
[   45.990481] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   45.990481] 
[   45.991357] Out-of-bounds read at 0x00000000ffab6a2b (105B right of kfence-#216):
[   45.992423]  test_kmalloc_aligned_oob_read+0x238/0x468
[   45.993041]  test_kmalloc_aligned_oob_read+0x100/0x468
[   45.993787]  kunit_try_run_case+0x14c/0x3d0
[   45.994559]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.995356]  kthread+0x24c/0x2d0
[   45.996044]  ret_from_fork+0x10/0x20
[   45.996616] 
[   45.997052] kfence-#216: 0x00000000af998c6c-0x00000000fd1564a5, size=73, cache=kmalloc-96
[   45.997052] 
[   45.998111] allocated by task 312 on cpu 0 at 45.989186s (0.008913s ago):
[   45.999093]  test_alloc+0x298/0x620
[   45.999758]  test_kmalloc_aligned_oob_read+0x100/0x468
[   46.000408]  kunit_try_run_case+0x14c/0x3d0
[   46.001122]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.001779]  kthread+0x24c/0x2d0
[   46.002400]  ret_from_fork+0x10/0x20
[   46.003064] 
[   46.003465] CPU: 0 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   46.004666] Tainted: [B]=BAD_PAGE, [N]=TEST
[   46.005313] Hardware name: linux,dummy-virt (DT)
[   46.006032] ==================================================================

[   46.562983] ==================================================================
[   46.563873] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   46.563873] 
[   46.564901] Out-of-bounds read at 0x000000007336a263 (105B right of kfence-#206):
[   46.565805]  test_kmalloc_aligned_oob_read+0x238/0x468
[   46.566461]  test_kmalloc_aligned_oob_read+0x100/0x468
[   46.567276]  kunit_try_run_case+0x14c/0x3d0
[   46.567957]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.568786]  kthread+0x24c/0x2d0
[   46.569372]  ret_from_fork+0x10/0x20
[   46.569921] 
[   46.570301] kfence-#206: 0x00000000a31be06a-0x00000000e3cc76c4, size=73, cache=kmalloc-96
[   46.570301] 
[   46.571279] allocated by task 312 on cpu 1 at 46.562481s (0.008787s ago):
[   46.572496]  test_alloc+0x298/0x620
[   46.573097]  test_kmalloc_aligned_oob_read+0x100/0x468
[   46.573818]  kunit_try_run_case+0x14c/0x3d0
[   46.574488]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.575611]  kthread+0x24c/0x2d0
[   46.576189]  ret_from_fork+0x10/0x20
[   46.576923] 
[   46.577351] CPU: 1 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   46.578397] Tainted: [B]=BAD_PAGE, [N]=TEST
[   46.578905] Hardware name: linux,dummy-virt (DT)
[   46.579574] ==================================================================

[   40.577125] ==================================================================
[   40.577125] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27f/0x570
[   40.577125] 
[   40.577125] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#170):
[   40.577125]  test_kmalloc_aligned_oob_read+0x27f/0x570
[   40.577125]  kunit_try_run_case+0x1b3/0x490
[   40.577125]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   40.577125]  kthread+0x257/0x310
[   40.577125]  ret_from_fork+0x41/0x80
[   40.577125]  ret_from_fork_asm+0x1a/0x30
[   40.577125] 
[   40.577125] kfence-#170: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   40.577125] 
[   40.577125] allocated by task 332 on cpu 0 at 40.576763s (0.000361s ago):
[   40.577125]  test_alloc+0x35f/0x10d0
[   40.577125]  test_kmalloc_aligned_oob_read+0x106/0x570
[   40.577125]  kunit_try_run_case+0x1b3/0x490
[   40.577125]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   40.577125]  kthread+0x257/0x310
[   40.577125]  ret_from_fork+0x41/0x80
[   40.577125]  ret_from_fork_asm+0x1a/0x30
[   40.577125] 
[   40.577125] CPU: 0 UID: 0 PID: 332 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   40.577125] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.577125] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   40.577125] ==================================================================

[   36.325734] ==================================================================
[   36.326239] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27f/0x570
[   36.326239] 
[   36.326935] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#181):
[   36.327565]  test_kmalloc_aligned_oob_read+0x27f/0x570
[   36.328087]  kunit_try_run_case+0x1b3/0x490
[   36.328461]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.328845]  kthread+0x257/0x310
[   36.329121]  ret_from_fork+0x41/0x80
[   36.329555]  ret_from_fork_asm+0x1a/0x30
[   36.330146] 
[   36.330316] kfence-#181: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   36.330316] 
[   36.331074] allocated by task 330 on cpu 0 at 36.325405s (0.005663s ago):
[   36.331648]  test_alloc+0x35f/0x10d0
[   36.332041]  test_kmalloc_aligned_oob_read+0x106/0x570
[   36.332573]  kunit_try_run_case+0x1b3/0x490
[   36.332938]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.333431]  kthread+0x257/0x310
[   36.333715]  ret_from_fork+0x41/0x80
[   36.333990]  ret_from_fork_asm+0x1a/0x30
[   36.334283] 
[   36.334577] CPU: 0 UID: 0 PID: 330 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   36.335472] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.336059] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   36.336964] ==================================================================