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

Environment
qemu-arm64
qemu-x86_64

[   41.313815] ==================================================================
[   41.314769] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   41.314769] 
[   41.315536] Invalid free of 0x000000004e75df0e (in kfence-#166):
[   41.316384]  test_invalid_addr_free+0xec/0x238
[   41.317119]  kunit_try_run_case+0x14c/0x3d0
[   41.317717]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.318622]  kthread+0x24c/0x2d0
[   41.319205]  ret_from_fork+0x10/0x20
[   41.319868] 
[   41.320251] kfence-#166: 0x00000000eea9b6c9-0x000000007e064a15, size=32, cache=test
[   41.320251] 
[   41.321308] allocated by task 298 on cpu 0 at 41.313608s (0.007690s ago):
[   41.322256]  test_alloc+0x22c/0x620
[   41.322814]  test_invalid_addr_free+0xd4/0x238
[   41.323416]  kunit_try_run_case+0x14c/0x3d0
[   41.323981]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.324938]  kthread+0x24c/0x2d0
[   41.325622]  ret_from_fork+0x10/0x20
[   41.326168] 
[   41.326522] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   41.328012] Tainted: [B]=BAD_PAGE, [N]=TEST
[   41.328634] Hardware name: linux,dummy-virt (DT)
[   41.329294] ==================================================================
[   41.209962] ==================================================================
[   41.210852] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   41.210852] 
[   41.211647] Invalid free of 0x000000004ad3130a (in kfence-#165):
[   41.212646]  test_invalid_addr_free+0x1ac/0x238
[   41.213245]  kunit_try_run_case+0x14c/0x3d0
[   41.214007]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.214899]  kthread+0x24c/0x2d0
[   41.215569]  ret_from_fork+0x10/0x20
[   41.216043] 
[   41.216546] kfence-#165: 0x000000007ec39f5a-0x00000000c264678e, size=32, cache=kmalloc-32
[   41.216546] 
[   41.217756] allocated by task 296 on cpu 1 at 41.209717s (0.008027s ago):
[   41.219069]  test_alloc+0x298/0x620
[   41.219719]  test_invalid_addr_free+0xd4/0x238
[   41.220236]  kunit_try_run_case+0x14c/0x3d0
[   41.221047]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.221947]  kthread+0x24c/0x2d0
[   41.222595]  ret_from_fork+0x10/0x20
[   41.223176] 
[   41.223695] CPU: 1 UID: 0 PID: 296 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   41.224965] Tainted: [B]=BAD_PAGE, [N]=TEST
[   41.225584] Hardware name: linux,dummy-virt (DT)
[   41.226244] ==================================================================

[   34.178628] ==================================================================
[   34.179324] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e3/0x260
[   34.179324] 
[   34.180226] Invalid free of 0x(____ptrval____) (in kfence-#113):
[   34.181283]  test_invalid_addr_free+0x1e3/0x260
[   34.181709]  kunit_try_run_case+0x1b3/0x490
[   34.182701]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.183412]  kthread+0x257/0x310
[   34.183953]  ret_from_fork+0x41/0x80
[   34.184895]  ret_from_fork_asm+0x1a/0x30
[   34.185250] 
[   34.185543] kfence-#113: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   34.185543] 
[   34.186800] allocated by task 315 on cpu 0 at 34.178441s (0.008356s ago):
[   34.187249]  test_alloc+0x35f/0x10d0
[   34.187870]  test_invalid_addr_free+0xdc/0x260
[   34.188635]  kunit_try_run_case+0x1b3/0x490
[   34.189090]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.189974]  kthread+0x257/0x310
[   34.190554]  ret_from_fork+0x41/0x80
[   34.191058]  ret_from_fork_asm+0x1a/0x30
[   34.191428] 
[   34.191665] CPU: 0 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   34.192389] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.192792] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.193284] ==================================================================
[   34.282701] ==================================================================
[   34.283296] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfc/0x260
[   34.283296] 
[   34.284142] Invalid free of 0x(____ptrval____) (in kfence-#114):
[   34.284772]  test_invalid_addr_free+0xfc/0x260
[   34.285150]  kunit_try_run_case+0x1b3/0x490
[   34.285576]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.286154]  kthread+0x257/0x310
[   34.286562]  ret_from_fork+0x41/0x80
[   34.286921]  ret_from_fork_asm+0x1a/0x30
[   34.287200] 
[   34.287361] kfence-#114: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   34.287361] 
[   34.288206] allocated by task 317 on cpu 1 at 34.282518s (0.005683s ago):
[   34.289273]  test_alloc+0x2a7/0x10d0
[   34.289630]  test_invalid_addr_free+0xdc/0x260
[   34.289963]  kunit_try_run_case+0x1b3/0x490
[   34.290245]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.290765]  kthread+0x257/0x310
[   34.291265]  ret_from_fork+0x41/0x80
[   34.291896]  ret_from_fork_asm+0x1a/0x30
[   34.292370] 
[   34.292629] CPU: 1 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   34.293285] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.293745] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.294216] ==================================================================