Hay
Date
June 26, 2025, 9:10 a.m.

Environment
dragonboard-845c
juno-r2
qemu-arm64
qemu-x86_64

[   83.727412] ==================================================================
[   83.734749] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   83.734749] 
[   83.743296] Invalid free of 0x(____ptrval____) (in kfence-#207):
[   83.749385]  test_invalid_addr_free+0x1ac/0x238
[   83.753990]  kunit_try_run_case+0x170/0x3f0
[   83.758245]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.763810]  kthread+0x328/0x630
[   83.767099]  ret_from_fork+0x10/0x20
[   83.770734] 
[   83.772268] kfence-#207: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   83.772268] 
[   83.782033] allocated by task 393 on cpu 7 at 83.727377s (0.054655s ago):
[   83.788918]  test_alloc+0x29c/0x628
[   83.792464]  test_invalid_addr_free+0xd4/0x238
[   83.796978]  kunit_try_run_case+0x170/0x3f0
[   83.801229]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.806793]  kthread+0x328/0x630
[   83.810076]  ret_from_fork+0x10/0x20
[   83.813708] 
[   83.815246] CPU: 7 UID: 0 PID: 393 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   83.826507] Tainted: [B]=BAD_PAGE, [N]=TEST
[   83.830753] Hardware name: Thundercomm Dragonboard 845c (DT)
[   83.836485] ==================================================================
[   83.947381] ==================================================================
[   83.954715] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   83.954715] 
[   83.963181] Invalid free of 0x(____ptrval____) (in kfence-#209):
[   83.969275]  test_invalid_addr_free+0xec/0x238
[   83.973796]  kunit_try_run_case+0x170/0x3f0
[   83.978055]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.983622]  kthread+0x328/0x630
[   83.986911]  ret_from_fork+0x10/0x20
[   83.990548] 
[   83.992074] kfence-#209: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   83.992074] 
[   84.001314] allocated by task 395 on cpu 4 at 83.947346s (0.053967s ago):
[   84.008204]  test_alloc+0x230/0x628
[   84.011754]  test_invalid_addr_free+0xd4/0x238
[   84.016270]  kunit_try_run_case+0x170/0x3f0
[   84.020522]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   84.026090]  kthread+0x328/0x630
[   84.029375]  ret_from_fork+0x10/0x20
[   84.033010] 
[   84.034541] CPU: 4 UID: 0 PID: 395 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   84.045809] Tainted: [B]=BAD_PAGE, [N]=TEST
[   84.050057] Hardware name: Thundercomm Dragonboard 845c (DT)
[   84.055796] ==================================================================

[ 1527.638983] ==================================================================
[ 1527.638998] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[ 1527.638998] 
[ 1527.639018] Invalid free of 0x000000007590cb6d (in kfence-#44):
[ 1527.639032]  test_invalid_addr_free+0xec/0x238
[ 1527.639048]  kunit_try_run_case+0x170/0x3f0
[ 1527.639064]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.639080]  kthread+0x328/0x630
[ 1527.639090]  ret_from_fork+0x10/0x20
[ 1527.639104] 
[ 1527.639110] kfence-#44: 0x000000007ad76db6-0x00000000a3a9f3ef, size=32, cache=test
[ 1527.639110] 
[ 1527.639126] allocated by task 380 on cpu 2 at 1527.638955s (0.000170s ago):
[ 1527.639149]  test_alloc+0x230/0x628
[ 1527.639163]  test_invalid_addr_free+0xd4/0x238
[ 1527.639177]  kunit_try_run_case+0x170/0x3f0
[ 1527.639190]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.639206]  kthread+0x328/0x630
[ 1527.639216]  ret_from_fork+0x10/0x20
[ 1527.639228] 
[ 1527.639237] CPU: 2 UID: 0 PID: 380 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[ 1527.639263] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[ 1527.639271] Hardware name: ARM Juno development board (r2) (DT)
[ 1527.639280] ==================================================================
[ 1527.532152] ==================================================================
[ 1527.532165] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[ 1527.532165] 
[ 1527.532184] Invalid free of 0x0000000012c7cbed (in kfence-#43):
[ 1527.532198]  test_invalid_addr_free+0x1ac/0x238
[ 1527.532214]  kunit_try_run_case+0x170/0x3f0
[ 1527.532229]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.532245]  kthread+0x328/0x630
[ 1527.532256]  ret_from_fork+0x10/0x20
[ 1527.532269] 
[ 1527.532275] kfence-#43: 0x000000003f7b4d01-0x0000000039e8cc35, size=32, cache=kmalloc-32
[ 1527.532275] 
[ 1527.532290] allocated by task 378 on cpu 2 at 1527.532129s (0.000160s ago):
[ 1527.532313]  test_alloc+0x29c/0x628
[ 1527.532327]  test_invalid_addr_free+0xd4/0x238
[ 1527.532341]  kunit_try_run_case+0x170/0x3f0
[ 1527.532354]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.532370]  kthread+0x328/0x630
[ 1527.532379]  ret_from_fork+0x10/0x20
[ 1527.532392] 
[ 1527.532400] CPU: 2 UID: 0 PID: 378 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[ 1527.532426] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[ 1527.532433] Hardware name: ARM Juno development board (r2) (DT)
[ 1527.532442] ==================================================================

[   32.920288] ==================================================================
[   32.920380] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   32.920380] 
[   32.920440] Invalid free of 0x0000000064b0d3d9 (in kfence-#104):
[   32.920493]  test_invalid_addr_free+0xec/0x238
[   32.920538]  kunit_try_run_case+0x170/0x3f0
[   32.920582]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.920627]  kthread+0x328/0x630
[   32.920666]  ret_from_fork+0x10/0x20
[   32.920707] 
[   32.920730] kfence-#104: 0x000000009ab57773-0x000000008a2d4367, size=32, cache=test
[   32.920730] 
[   32.920784] allocated by task 321 on cpu 0 at 32.920164s (0.000617s ago):
[   32.920846]  test_alloc+0x230/0x628
[   32.920888]  test_invalid_addr_free+0xd4/0x238
[   32.920930]  kunit_try_run_case+0x170/0x3f0
[   32.920971]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.921014]  kthread+0x328/0x630
[   32.921051]  ret_from_fork+0x10/0x20
[   32.921102] 
[   32.921144] CPU: 0 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   32.921226] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.921256] Hardware name: linux,dummy-virt (DT)
[   32.921290] ==================================================================
[   32.816320] ==================================================================
[   32.816410] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   32.816410] 
[   32.816471] Invalid free of 0x00000000ad389971 (in kfence-#103):
[   32.816525]  test_invalid_addr_free+0x1ac/0x238
[   32.816573]  kunit_try_run_case+0x170/0x3f0
[   32.816618]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.816664]  kthread+0x328/0x630
[   32.816702]  ret_from_fork+0x10/0x20
[   32.816743] 
[   32.816768] kfence-#103: 0x00000000453b4d46-0x00000000c193db95, size=32, cache=kmalloc-32
[   32.816768] 
[   32.816823] allocated by task 319 on cpu 0 at 32.816182s (0.000637s ago):
[   32.816886]  test_alloc+0x29c/0x628
[   32.816927]  test_invalid_addr_free+0xd4/0x238
[   32.816969]  kunit_try_run_case+0x170/0x3f0
[   32.817011]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.817067]  kthread+0x328/0x630
[   32.817103]  ret_from_fork+0x10/0x20
[   32.817143] 
[   32.817185] CPU: 0 UID: 0 PID: 319 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   32.817267] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.817297] Hardware name: linux,dummy-virt (DT)
[   32.817330] ==================================================================

[   28.027408] ==================================================================
[   28.027818] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   28.027818] 
[   28.028171] Invalid free of 0x(____ptrval____) (in kfence-#83):
[   28.028569]  test_invalid_addr_free+0x1e1/0x260
[   28.028786]  kunit_try_run_case+0x1a5/0x480
[   28.028954]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.029332]  kthread+0x337/0x6f0
[   28.029464]  ret_from_fork+0x116/0x1d0
[   28.029595]  ret_from_fork_asm+0x1a/0x30
[   28.029731] 
[   28.029799] kfence-#83: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.029799] 
[   28.030566] allocated by task 336 on cpu 0 at 28.027248s (0.003304s ago):
[   28.030859]  test_alloc+0x364/0x10f0
[   28.030987]  test_invalid_addr_free+0xdb/0x260
[   28.031134]  kunit_try_run_case+0x1a5/0x480
[   28.031285]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.031451]  kthread+0x337/0x6f0
[   28.031562]  ret_from_fork+0x116/0x1d0
[   28.031685]  ret_from_fork_asm+0x1a/0x30
[   28.031814] 
[   28.031905] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   28.032249] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.032404] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.032710] ==================================================================
[   28.131326] ==================================================================
[   28.131717] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   28.131717] 
[   28.132268] Invalid free of 0x(____ptrval____) (in kfence-#84):
[   28.132479]  test_invalid_addr_free+0xfb/0x260
[   28.132714]  kunit_try_run_case+0x1a5/0x480
[   28.132909]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.133135]  kthread+0x337/0x6f0
[   28.133269]  ret_from_fork+0x116/0x1d0
[   28.133401]  ret_from_fork_asm+0x1a/0x30
[   28.133600] 
[   28.133694] kfence-#84: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.133694] 
[   28.134089] allocated by task 338 on cpu 1 at 28.131176s (0.002911s ago):
[   28.134450]  test_alloc+0x2a6/0x10f0
[   28.134613]  test_invalid_addr_free+0xdb/0x260
[   28.134758]  kunit_try_run_case+0x1a5/0x480
[   28.134930]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.135359]  kthread+0x337/0x6f0
[   28.135527]  ret_from_fork+0x116/0x1d0
[   28.135693]  ret_from_fork_asm+0x1a/0x30
[   28.135862] 
[   28.135982] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   28.136456] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.136638] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.136971] ==================================================================