Hay
Date
May 12, 2025, 6:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   24.559642] ==================================================================
[   24.560199] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   24.560199] 
[   24.560828] Invalid free of 0x000000009c98e922 (in kfence-#109):
[   24.561250]  test_double_free+0x100/0x238
[   24.561714]  kunit_try_run_case+0x170/0x3f0
[   24.562227]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.562761]  kthread+0x318/0x620
[   24.563241]  ret_from_fork+0x10/0x20
[   24.563761] 
[   24.564053] kfence-#109: 0x000000009c98e922-0x00000000b73b636d, size=32, cache=test
[   24.564053] 
[   24.564767] allocated by task 294 on cpu 0 at 24.559285s (0.005470s ago):
[   24.565408]  test_alloc+0x230/0x628
[   24.565807]  test_double_free+0xd4/0x238
[   24.566313]  kunit_try_run_case+0x170/0x3f0
[   24.566680]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.567297]  kthread+0x318/0x620
[   24.567623]  ret_from_fork+0x10/0x20
[   24.568094] 
[   24.568369] freed by task 294 on cpu 0 at 24.559379s (0.008980s ago):
[   24.568946]  test_double_free+0xf0/0x238
[   24.569400]  kunit_try_run_case+0x170/0x3f0
[   24.569852]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.570373]  kthread+0x318/0x620
[   24.570779]  ret_from_fork+0x10/0x20
[   24.571192] 
[   24.571533] CPU: 0 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   24.572256] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.572726] Hardware name: linux,dummy-virt (DT)
[   24.573206] ==================================================================
[   24.455883] ==================================================================
[   24.456468] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   24.456468] 
[   24.457105] Invalid free of 0x00000000f5ee14be (in kfence-#108):
[   24.457639]  test_double_free+0x1bc/0x238
[   24.458102]  kunit_try_run_case+0x170/0x3f0
[   24.458642]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.459170]  kthread+0x318/0x620
[   24.459634]  ret_from_fork+0x10/0x20
[   24.460082] 
[   24.460363] kfence-#108: 0x00000000f5ee14be-0x000000001d4ad8a4, size=32, cache=kmalloc-32
[   24.460363] 
[   24.461200] allocated by task 292 on cpu 0 at 24.455335s (0.005853s ago):
[   24.461804]  test_alloc+0x29c/0x628
[   24.462279]  test_double_free+0xd4/0x238
[   24.462728]  kunit_try_run_case+0x170/0x3f0
[   24.463248]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.463658]  kthread+0x318/0x620
[   24.464124]  ret_from_fork+0x10/0x20
[   24.464571] 
[   24.464841] freed by task 292 on cpu 0 at 24.455478s (0.009350s ago):
[   24.465478]  test_double_free+0x1ac/0x238
[   24.465963]  kunit_try_run_case+0x170/0x3f0
[   24.466389]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.466881]  kthread+0x318/0x620
[   24.467275]  ret_from_fork+0x10/0x20
[   24.467633] 
[   24.467969] CPU: 0 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   24.468634] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.469125] Hardware name: linux,dummy-virt (DT)
[   24.469535] ==================================================================

[   18.717666] ==================================================================
[   18.718206] BUG: KFENCE: invalid free in test_double_free+0x1d5/0x260
[   18.718206] 
[   18.718531] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.718828]  test_double_free+0x1d5/0x260
[   18.719053]  kunit_try_run_case+0x1a6/0x480
[   18.719276]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.719507]  kthread+0x324/0x6e0
[   18.719687]  ret_from_fork+0x41/0x80
[   18.719885]  ret_from_fork_asm+0x1a/0x30
[   18.720086] 
[   18.720169] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.720169] 
[   18.720550] allocated by task 311 on cpu 0 at 18.717458s (0.003089s ago):
[   18.721458]  test_alloc+0x365/0x10f0
[   18.721767]  test_double_free+0xdc/0x260
[   18.721925]  kunit_try_run_case+0x1a6/0x480
[   18.722312]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.722790]  kthread+0x324/0x6e0
[   18.723034]  ret_from_fork+0x41/0x80
[   18.723316]  ret_from_fork_asm+0x1a/0x30
[   18.723606] 
[   18.723683] freed by task 311 on cpu 0 at 18.717517s (0.006163s ago):
[   18.723919]  test_double_free+0x1e2/0x260
[   18.724102]  kunit_try_run_case+0x1a6/0x480
[   18.724522]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.724912]  kthread+0x324/0x6e0
[   18.725047]  ret_from_fork+0x41/0x80
[   18.725305]  ret_from_fork_asm+0x1a/0x30
[   18.725549] 
[   18.725648] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   18.726052] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.726266] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.726618] ==================================================================
[   18.821567] ==================================================================
[   18.821988] BUG: KFENCE: invalid free in test_double_free+0x113/0x260
[   18.821988] 
[   18.822341] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.822677]  test_double_free+0x113/0x260
[   18.822876]  kunit_try_run_case+0x1a6/0x480
[   18.823030]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.823325]  kthread+0x324/0x6e0
[   18.823528]  ret_from_fork+0x41/0x80
[   18.823738]  ret_from_fork_asm+0x1a/0x30
[   18.823976] 
[   18.824097] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.824097] 
[   18.824508] allocated by task 313 on cpu 1 at 18.821391s (0.003114s ago):
[   18.824787]  test_alloc+0x2a7/0x10f0
[   18.825065]  test_double_free+0xdc/0x260
[   18.825199]  kunit_try_run_case+0x1a6/0x480
[   18.825430]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.825682]  kthread+0x324/0x6e0
[   18.825881]  ret_from_fork+0x41/0x80
[   18.826024]  ret_from_fork_asm+0x1a/0x30
[   18.826162] 
[   18.826243] freed by task 313 on cpu 1 at 18.821451s (0.004781s ago):
[   18.826591]  test_double_free+0xfb/0x260
[   18.826803]  kunit_try_run_case+0x1a6/0x480
[   18.827006]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.827291]  kthread+0x324/0x6e0
[   18.827461]  ret_from_fork+0x41/0x80
[   18.827653]  ret_from_fork_asm+0x1a/0x30
[   18.827863] 
[   18.827978] CPU: 1 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   18.828427] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.828660] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.829075] ==================================================================