Hay
Date
Dec. 6, 2024, 3:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   40.063231] ==================================================================
[   40.064072] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   40.064072] 
[   40.064771] Invalid free of 0x0000000069c1bae8 (in kfence-#155):
[   40.065569]  test_invalid_addr_free+0xec/0x238
[   40.066220]  kunit_try_run_case+0x14c/0x3d0
[   40.066907]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.067476]  kthread+0x24c/0x2d0
[   40.068089]  ret_from_fork+0x10/0x20
[   40.068722] 
[   40.069099] kfence-#155: 0x0000000001eb12f2-0x000000000b799322, size=32, cache=test
[   40.069099] 
[   40.070047] allocated by task 298 on cpu 0 at 40.063026s (0.007009s ago):
[   40.070900]  test_alloc+0x22c/0x620
[   40.071402]  test_invalid_addr_free+0xd4/0x238
[   40.072103]  kunit_try_run_case+0x14c/0x3d0
[   40.072767]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.073430]  kthread+0x24c/0x2d0
[   40.074011]  ret_from_fork+0x10/0x20
[   40.074632] 
[   40.074993] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   40.076253] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.076811] Hardware name: linux,dummy-virt (DT)
[   40.077455] ==================================================================
[   39.959243] ==================================================================
[   39.960118] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   39.960118] 
[   39.960875] Invalid free of 0x0000000008728172 (in kfence-#154):
[   39.961707]  test_invalid_addr_free+0x1ac/0x238
[   39.962794]  kunit_try_run_case+0x14c/0x3d0
[   39.963445]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.964232]  kthread+0x24c/0x2d0
[   39.964758]  ret_from_fork+0x10/0x20
[   39.965360] 
[   39.965762] kfence-#154: 0x00000000177c53c1-0x000000007b3f5005, size=32, cache=kmalloc-32
[   39.965762] 
[   39.966799] allocated by task 296 on cpu 1 at 39.958997s (0.007790s ago):
[   39.967754]  test_alloc+0x298/0x620
[   39.968223]  test_invalid_addr_free+0xd4/0x238
[   39.968944]  kunit_try_run_case+0x14c/0x3d0
[   39.969632]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.970315]  kthread+0x24c/0x2d0
[   39.970928]  ret_from_fork+0x10/0x20
[   39.971554] 
[   39.971967] CPU: 1 UID: 0 PID: 296 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   39.973116] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.973762] Hardware name: linux,dummy-virt (DT)
[   39.974300] ==================================================================

[   34.179385] ==================================================================
[   34.180365] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e3/0x260
[   34.180365] 
[   34.181804] Invalid free of 0x(____ptrval____) (in kfence-#119):
[   34.183022]  test_invalid_addr_free+0x1e3/0x260
[   34.183572]  kunit_try_run_case+0x1b3/0x490
[   34.184044]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.185280]  kthread+0x257/0x310
[   34.185852]  ret_from_fork+0x41/0x80
[   34.186311]  ret_from_fork_asm+0x1a/0x30
[   34.187004] 
[   34.187515] kfence-#119: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   34.187515] 
[   34.188312] allocated by task 315 on cpu 0 at 34.179190s (0.009117s ago):
[   34.189322]  test_alloc+0x35f/0x10d0
[   34.190249]  test_invalid_addr_free+0xdc/0x260
[   34.190486]  kunit_try_run_case+0x1b3/0x490
[   34.190679]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.190906]  kthread+0x257/0x310
[   34.191189]  ret_from_fork+0x41/0x80
[   34.191458]  ret_from_fork_asm+0x1a/0x30
[   34.192083] 
[   34.192373] CPU: 0 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   34.193290] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.193601] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.194566] ==================================================================
[   34.283369] ==================================================================
[   34.284201] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfc/0x260
[   34.284201] 
[   34.285520] Invalid free of 0x(____ptrval____) (in kfence-#120):
[   34.285842]  test_invalid_addr_free+0xfc/0x260
[   34.286165]  kunit_try_run_case+0x1b3/0x490
[   34.286801]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.287636]  kthread+0x257/0x310
[   34.288302]  ret_from_fork+0x41/0x80
[   34.289655]  ret_from_fork_asm+0x1a/0x30
[   34.290654] 
[   34.290905] kfence-#120: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   34.290905] 
[   34.291728] allocated by task 317 on cpu 0 at 34.283196s (0.008526s ago):
[   34.292514]  test_alloc+0x2a7/0x10d0
[   34.293373]  test_invalid_addr_free+0xdc/0x260
[   34.293828]  kunit_try_run_case+0x1b3/0x490
[   34.295335]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.295810]  kthread+0x257/0x310
[   34.296476]  ret_from_fork+0x41/0x80
[   34.297198]  ret_from_fork_asm+0x1a/0x30
[   34.297868] 
[   34.298186] CPU: 0 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   34.299784] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.300681] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.301951] ==================================================================