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

Environment
qemu-arm64
qemu-x86_64

[   40.328041] ==================================================================
[   40.328886] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   40.328886] 
[   40.329650] Invalid free of 0x0000000042149234 (in kfence-#157):
[   40.330553]  test_invalid_addr_free+0x1ac/0x238
[   40.331173]  kunit_try_run_case+0x14c/0x3d0
[   40.331806]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.332518]  kthread+0x24c/0x2d0
[   40.332974]  ret_from_fork+0x10/0x20
[   40.333704] 
[   40.334093] kfence-#157: 0x000000009c249579-0x00000000dd24564c, size=32, cache=kmalloc-32
[   40.334093] 
[   40.335386] allocated by task 296 on cpu 0 at 40.327825s (0.007552s ago):
[   40.336351]  test_alloc+0x298/0x620
[   40.336919]  test_invalid_addr_free+0xd4/0x238
[   40.337594]  kunit_try_run_case+0x14c/0x3d0
[   40.338457]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.339295]  kthread+0x24c/0x2d0
[   40.339808]  ret_from_fork+0x10/0x20
[   40.340397] 
[   40.340845] CPU: 0 UID: 0 PID: 296 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   40.342077] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.342846] Hardware name: linux,dummy-virt (DT)
[   40.343413] ==================================================================
[   40.432005] ==================================================================
[   40.433099] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   40.433099] 
[   40.433922] Invalid free of 0x00000000b254b500 (in kfence-#158):
[   40.434866]  test_invalid_addr_free+0xec/0x238
[   40.435906]  kunit_try_run_case+0x14c/0x3d0
[   40.436436]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.437292]  kthread+0x24c/0x2d0
[   40.437755]  ret_from_fork+0x10/0x20
[   40.438428] 
[   40.438767] kfence-#158: 0x00000000725c4297-0x0000000045d2c217, size=32, cache=test
[   40.438767] 
[   40.439864] allocated by task 298 on cpu 1 at 40.431797s (0.008058s ago):
[   40.440804]  test_alloc+0x22c/0x620
[   40.441283]  test_invalid_addr_free+0xd4/0x238
[   40.442052]  kunit_try_run_case+0x14c/0x3d0
[   40.442627]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.443455]  kthread+0x24c/0x2d0
[   40.444055]  ret_from_fork+0x10/0x20
[   40.444617] 
[   40.444972] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   40.446230] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.446895] Hardware name: linux,dummy-virt (DT)
[   40.447505] ==================================================================

[   35.018369] ==================================================================
[   35.019108] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfc/0x260
[   35.019108] 
[   35.019663] Invalid free of 0x(____ptrval____) (in kfence-#142):
[   35.020395]  test_invalid_addr_free+0xfc/0x260
[   35.020878]  kunit_try_run_case+0x1b3/0x490
[   35.021330]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.021763]  kthread+0x257/0x310
[   35.022181]  ret_from_fork+0x41/0x80
[   35.022659]  ret_from_fork_asm+0x1a/0x30
[   35.023110] 
[   35.023344] kfence-#142: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   35.023344] 
[   35.024030] allocated by task 318 on cpu 0 at 35.018203s (0.005822s ago):
[   35.024471]  test_alloc+0x2a7/0x10d0
[   35.024959]  test_invalid_addr_free+0xdc/0x260
[   35.025477]  kunit_try_run_case+0x1b3/0x490
[   35.025939]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.026532]  kthread+0x257/0x310
[   35.026916]  ret_from_fork+0x41/0x80
[   35.027342]  ret_from_fork_asm+0x1a/0x30
[   35.027819] 
[   35.028096] CPU: 0 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   35.028775] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.029029] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.029707] ==================================================================
[   34.914417] ==================================================================
[   34.915438] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e3/0x260
[   34.915438] 
[   34.916077] Invalid free of 0x(____ptrval____) (in kfence-#141):
[   34.916580]  test_invalid_addr_free+0x1e3/0x260
[   34.917008]  kunit_try_run_case+0x1b3/0x490
[   34.917412]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.918527]  kthread+0x257/0x310
[   34.918953]  ret_from_fork+0x41/0x80
[   34.919487]  ret_from_fork_asm+0x1a/0x30
[   34.919970] 
[   34.920151] kfence-#141: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   34.920151] 
[   34.920780] allocated by task 316 on cpu 0 at 34.914214s (0.006561s ago):
[   34.921178]  test_alloc+0x35f/0x10d0
[   34.921508]  test_invalid_addr_free+0xdc/0x260
[   34.921840]  kunit_try_run_case+0x1b3/0x490
[   34.922264]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.922719]  kthread+0x257/0x310
[   34.922962]  ret_from_fork+0x41/0x80
[   34.923365]  ret_from_fork_asm+0x1a/0x30
[   34.923815] 
[   34.924078] CPU: 0 UID: 0 PID: 316 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   34.924694] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.924938] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.925739] ==================================================================