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

Environment
qemu-arm64
qemu-x86_64

[   46.342434] ==================================================================
[   46.343224] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   46.343224] 
[   46.343776] Invalid free of 0x00000000d2b65336 (in kfence-#178):
[   46.344633]  test_invalid_addr_free+0xec/0x238
[   46.345872]  kunit_try_run_case+0x14c/0x3d0
[   46.346489]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.347330]  kthread+0x24c/0x2d0
[   46.348013]  ret_from_fork+0x10/0x20
[   46.348571] 
[   46.348893] kfence-#178: 0x000000006451f5b7-0x000000006b1b4f92, size=32, cache=test
[   46.348893] 
[   46.350162] allocated by task 298 on cpu 1 at 46.342196s (0.007954s ago):
[   46.351267]  test_alloc+0x22c/0x620
[   46.351880]  test_invalid_addr_free+0xd4/0x238
[   46.352416]  kunit_try_run_case+0x14c/0x3d0
[   46.352966]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.353968]  kthread+0x24c/0x2d0
[   46.354579]  ret_from_fork+0x10/0x20
[   46.355100] 
[   46.355627] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   46.356875] Tainted: [B]=BAD_PAGE, [N]=TEST
[   46.357600] Hardware name: linux,dummy-virt (DT)
[   46.358344] ==================================================================
[   46.238395] ==================================================================
[   46.239242] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   46.239242] 
[   46.240053] Invalid free of 0x000000001f7b1fa4 (in kfence-#177):
[   46.240805]  test_invalid_addr_free+0x1ac/0x238
[   46.241386]  kunit_try_run_case+0x14c/0x3d0
[   46.241891]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.242507]  kthread+0x24c/0x2d0
[   46.243008]  ret_from_fork+0x10/0x20
[   46.243628] 
[   46.244011] kfence-#177: 0x00000000d9f96522-0x000000007715870b, size=32, cache=kmalloc-32
[   46.244011] 
[   46.244962] allocated by task 296 on cpu 0 at 46.238141s (0.006810s ago):
[   46.245836]  test_alloc+0x298/0x620
[   46.246388]  test_invalid_addr_free+0xd4/0x238
[   46.246930]  kunit_try_run_case+0x14c/0x3d0
[   46.247407]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.248212]  kthread+0x24c/0x2d0
[   46.248811]  ret_from_fork+0x10/0x20
[   46.249403] 
[   46.249815] CPU: 0 UID: 0 PID: 296 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   46.251025] Tainted: [B]=BAD_PAGE, [N]=TEST
[   46.251585] Hardware name: linux,dummy-virt (DT)
[   46.252255] ==================================================================

[   38.104662] ==================================================================
[   38.105456] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfc/0x260
[   38.105456] 
[   38.106304] Invalid free of 0x(____ptrval____) (in kfence-#113):
[   38.107510]  test_invalid_addr_free+0xfc/0x260
[   38.108051]  kunit_try_run_case+0x1b3/0x490
[   38.108517]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   38.109026]  kthread+0x257/0x310
[   38.109515]  ret_from_fork+0x41/0x80
[   38.109973]  ret_from_fork_asm+0x1a/0x30
[   38.110285] 
[   38.110525] kfence-#113: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   38.110525] 
[   38.111365] allocated by task 316 on cpu 0 at 38.104536s (0.006824s ago):
[   38.112119]  test_alloc+0x2a7/0x10d0
[   38.112540]  test_invalid_addr_free+0xdc/0x260
[   38.113097]  kunit_try_run_case+0x1b3/0x490
[   38.113530]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   38.114131]  kthread+0x257/0x310
[   38.114541]  ret_from_fork+0x41/0x80
[   38.115076]  ret_from_fork_asm+0x1a/0x30
[   38.115444] 
[   38.115827] CPU: 0 UID: 0 PID: 316 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   38.116739] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.117065] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.118065] ==================================================================
[   38.000591] ==================================================================
[   38.001265] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e3/0x260
[   38.001265] 
[   38.001895] Invalid free of 0x(____ptrval____) (in kfence-#112):
[   38.002428]  test_invalid_addr_free+0x1e3/0x260
[   38.002961]  kunit_try_run_case+0x1b3/0x490
[   38.003449]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   38.003971]  kthread+0x257/0x310
[   38.004356]  ret_from_fork+0x41/0x80
[   38.004850]  ret_from_fork_asm+0x1a/0x30
[   38.005180] 
[   38.005342] kfence-#112: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   38.005342] 
[   38.006327] allocated by task 314 on cpu 1 at 38.000452s (0.005872s ago):
[   38.007101]  test_alloc+0x35f/0x10d0
[   38.007370]  test_invalid_addr_free+0xdc/0x260
[   38.007895]  kunit_try_run_case+0x1b3/0x490
[   38.008504]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   38.009038]  kthread+0x257/0x310
[   38.009426]  ret_from_fork+0x41/0x80
[   38.009867]  ret_from_fork_asm+0x1a/0x30
[   38.010284] 
[   38.010474] CPU: 1 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241120 #1
[   38.011409] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.011686] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.012605] ==================================================================