Hay
Date
Nov. 27, 2024, 3:37 a.m.

Environment
qemu-arm64
qemu-x86_64

[   57.382250] ==================================================================
[   57.383163] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   57.383163] 
[   57.383929] Invalid free of 0x000000002c0ba8a6 (in kfence-#165):
[   57.384592]  test_double_free+0x1bc/0x238
[   57.385346]  kunit_try_run_case+0x14c/0x3d0
[   57.386022]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.386762]  kthread+0x24c/0x2d0
[   57.387262]  ret_from_fork+0x10/0x20
[   57.387919] 
[   57.388202] kfence-#165: 0x000000002c0ba8a6-0x0000000079dbae02, size=32, cache=kmalloc-32
[   57.388202] 
[   57.389439] allocated by task 292 on cpu 0 at 57.381764s (0.007665s ago):
[   57.390312]  test_alloc+0x298/0x620
[   57.390953]  test_double_free+0xd4/0x238
[   57.391592]  kunit_try_run_case+0x14c/0x3d0
[   57.392159]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.393016]  kthread+0x24c/0x2d0
[   57.393510]  ret_from_fork+0x10/0x20
[   57.394125] 
[   57.394517] freed by task 292 on cpu 0 at 57.381882s (0.012624s ago):
[   57.395370]  test_double_free+0x1ac/0x238
[   57.395960]  kunit_try_run_case+0x14c/0x3d0
[   57.396468]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.397318]  kthread+0x24c/0x2d0
[   57.397833]  ret_from_fork+0x10/0x20
[   57.398308] 
[   57.398716] CPU: 0 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   57.399938] Tainted: [B]=BAD_PAGE, [N]=TEST
[   57.400538] Hardware name: linux,dummy-virt (DT)
[   57.401170] ==================================================================
[   57.486109] ==================================================================
[   57.486910] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   57.486910] 
[   57.487711] Invalid free of 0x0000000017d3286d (in kfence-#166):
[   57.488471]  test_double_free+0x100/0x238
[   57.489191]  kunit_try_run_case+0x14c/0x3d0
[   57.489721]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.490501]  kthread+0x24c/0x2d0
[   57.491019]  ret_from_fork+0x10/0x20
[   57.491530] 
[   57.491983] kfence-#166: 0x0000000017d3286d-0x00000000c77d9e40, size=32, cache=test
[   57.491983] 
[   57.492915] allocated by task 294 on cpu 1 at 57.485750s (0.007155s ago):
[   57.493887]  test_alloc+0x22c/0x620
[   57.494502]  test_double_free+0xd4/0x238
[   57.495267]  kunit_try_run_case+0x14c/0x3d0
[   57.495856]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.496686]  kthread+0x24c/0x2d0
[   57.497264]  ret_from_fork+0x10/0x20
[   57.497737] 
[   57.498105] freed by task 294 on cpu 1 at 57.485842s (0.012254s ago):
[   57.498889]  test_double_free+0xf0/0x238
[   57.499603]  kunit_try_run_case+0x14c/0x3d0
[   57.500246]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.500977]  kthread+0x24c/0x2d0
[   57.501484]  ret_from_fork+0x10/0x20
[   57.502105] 
[   57.502499] CPU: 1 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   57.503718] Tainted: [B]=BAD_PAGE, [N]=TEST
[   57.504370] Hardware name: linux,dummy-virt (DT)
[   57.504949] ==================================================================

[   35.245618] ==================================================================
[   35.246322] BUG: KFENCE: invalid free in test_double_free+0x1d5/0x260
[   35.246322] 
[   35.247000] Invalid free of 0x(____ptrval____) (in kfence-#109):
[   35.247612]  test_double_free+0x1d5/0x260
[   35.247956]  kunit_try_run_case+0x1b3/0x490
[   35.248348]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.248897]  kthread+0x257/0x310
[   35.249291]  ret_from_fork+0x41/0x80
[   35.249618]  ret_from_fork_asm+0x1a/0x30
[   35.250117] 
[   35.250336] kfence-#109: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   35.250336] 
[   35.251003] allocated by task 311 on cpu 0 at 35.245315s (0.005683s ago):
[   35.251804]  test_alloc+0x35f/0x10d0
[   35.252224]  test_double_free+0xdc/0x260
[   35.252642]  kunit_try_run_case+0x1b3/0x490
[   35.252939]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.253609]  kthread+0x257/0x310
[   35.254060]  ret_from_fork+0x41/0x80
[   35.254335]  ret_from_fork_asm+0x1a/0x30
[   35.254801] 
[   35.255080] freed by task 311 on cpu 0 at 35.245399s (0.009677s ago):
[   35.255513]  test_double_free+0x1e2/0x260
[   35.255961]  kunit_try_run_case+0x1b3/0x490
[   35.256515]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.256903]  kthread+0x257/0x310
[   35.257546]  ret_from_fork+0x41/0x80
[   35.257836]  ret_from_fork_asm+0x1a/0x30
[   35.258146] 
[   35.258336] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   35.259406] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.259684] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.261270] ==================================================================
[   35.349543] ==================================================================
[   35.350270] BUG: KFENCE: invalid free in test_double_free+0x113/0x260
[   35.350270] 
[   35.350821] Invalid free of 0x(____ptrval____) (in kfence-#110):
[   35.351406]  test_double_free+0x113/0x260
[   35.351887]  kunit_try_run_case+0x1b3/0x490
[   35.352216]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.352948]  kthread+0x257/0x310
[   35.353362]  ret_from_fork+0x41/0x80
[   35.353715]  ret_from_fork_asm+0x1a/0x30
[   35.354061] 
[   35.354322] kfence-#110: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   35.354322] 
[   35.354910] allocated by task 313 on cpu 1 at 35.349291s (0.005615s ago):
[   35.355833]  test_alloc+0x2a7/0x10d0
[   35.356150]  test_double_free+0xdc/0x260
[   35.356646]  kunit_try_run_case+0x1b3/0x490
[   35.357025]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.357583]  kthread+0x257/0x310
[   35.357838]  ret_from_fork+0x41/0x80
[   35.358398]  ret_from_fork_asm+0x1a/0x30
[   35.358774] 
[   35.358970] freed by task 313 on cpu 1 at 35.349350s (0.009617s ago):
[   35.359518]  test_double_free+0xfb/0x260
[   35.359905]  kunit_try_run_case+0x1b3/0x490
[   35.360469]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.360818]  kthread+0x257/0x310
[   35.361185]  ret_from_fork+0x41/0x80
[   35.361666]  ret_from_fork_asm+0x1a/0x30
[   35.362153] 
[   35.362433] CPU: 1 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   35.363023] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.363512] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.364412] ==================================================================