Hay
Date
Nov. 28, 2024, 2:36 a.m.

Environment
qemu-arm64
qemu-x86_64

[   39.553980] ==================================================================
[   39.554688] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   39.554688] 
[   39.555420] Invalid free of 0x00000000ad4e57f8 (in kfence-#142):
[   39.555964]  test_invalid_addr_free+0x1ac/0x238
[   39.556633]  kunit_try_run_case+0x14c/0x3d0
[   39.557240]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.557925]  kthread+0x24c/0x2d0
[   39.558479]  ret_from_fork+0x10/0x20
[   39.559051] 
[   39.559442] kfence-#142: 0x000000007d27eb8b-0x000000002e445926, size=32, cache=kmalloc-32
[   39.559442] 
[   39.560342] allocated by task 295 on cpu 1 at 39.553728s (0.006603s ago):
[   39.561179]  test_alloc+0x298/0x620
[   39.561701]  test_invalid_addr_free+0xd4/0x238
[   39.562361]  kunit_try_run_case+0x14c/0x3d0
[   39.562865]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.563601]  kthread+0x24c/0x2d0
[   39.564044]  ret_from_fork+0x10/0x20
[   39.564643] 
[   39.565038] CPU: 1 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   39.566055] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.566553] Hardware name: linux,dummy-virt (DT)
[   39.567191] ==================================================================
[   39.658001] ==================================================================
[   39.658815] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   39.658815] 
[   39.659614] Invalid free of 0x000000007eb2a3bb (in kfence-#143):
[   39.660400]  test_invalid_addr_free+0xec/0x238
[   39.661139]  kunit_try_run_case+0x14c/0x3d0
[   39.661789]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.662658]  kthread+0x24c/0x2d0
[   39.663331]  ret_from_fork+0x10/0x20
[   39.664013] 
[   39.664467] kfence-#143: 0x000000005054246f-0x00000000a8d711f6, size=32, cache=test
[   39.664467] 
[   39.665713] allocated by task 297 on cpu 0 at 39.657795s (0.007906s ago):
[   39.666726]  test_alloc+0x22c/0x620
[   39.667290]  test_invalid_addr_free+0xd4/0x238
[   39.667968]  kunit_try_run_case+0x14c/0x3d0
[   39.668587]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.669237]  kthread+0x24c/0x2d0
[   39.669693]  ret_from_fork+0x10/0x20
[   39.670248] 
[   39.670679] CPU: 0 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   39.671841] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.672510] Hardware name: linux,dummy-virt (DT)
[   39.673225] ==================================================================

[   31.603923] ==================================================================
[   31.604622] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfc/0x260
[   31.604622] 
[   31.605199] Invalid free of 0x(____ptrval____) (in kfence-#117):
[   31.605804]  test_invalid_addr_free+0xfc/0x260
[   31.606173]  kunit_try_run_case+0x1b3/0x490
[   31.606658]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.607375]  kthread+0x257/0x310
[   31.608021]  ret_from_fork+0x41/0x80
[   31.608727]  ret_from_fork_asm+0x1a/0x30
[   31.609513] 
[   31.609878] kfence-#117: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.609878] 
[   31.611213] allocated by task 317 on cpu 1 at 31.603753s (0.007456s ago):
[   31.612211]  test_alloc+0x2a7/0x10d0
[   31.612613]  test_invalid_addr_free+0xdc/0x260
[   31.613063]  kunit_try_run_case+0x1b3/0x490
[   31.614010]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.614562]  kthread+0x257/0x310
[   31.615154]  ret_from_fork+0x41/0x80
[   31.615775]  ret_from_fork_asm+0x1a/0x30
[   31.616466] 
[   31.616724] CPU: 1 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   31.617694] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.618185] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.619034] ==================================================================
[   31.499961] ==================================================================
[   31.500767] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e3/0x260
[   31.500767] 
[   31.502042] Invalid free of 0x(____ptrval____) (in kfence-#116):
[   31.502616]  test_invalid_addr_free+0x1e3/0x260
[   31.503065]  kunit_try_run_case+0x1b3/0x490
[   31.503932]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.504765]  kthread+0x257/0x310
[   31.505127]  ret_from_fork+0x41/0x80
[   31.505451]  ret_from_fork_asm+0x1a/0x30
[   31.505795] 
[   31.506068] kfence-#116: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.506068] 
[   31.507041] allocated by task 315 on cpu 0 at 31.499770s (0.007267s ago):
[   31.507845]  test_alloc+0x35f/0x10d0
[   31.508169]  test_invalid_addr_free+0xdc/0x260
[   31.508879]  kunit_try_run_case+0x1b3/0x490
[   31.509418]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.510191]  kthread+0x257/0x310
[   31.510474]  ret_from_fork+0x41/0x80
[   31.511000]  ret_from_fork_asm+0x1a/0x30
[   31.511436] 
[   31.511749] CPU: 0 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   31.512719] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.513241] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.514188] ==================================================================