Hay
Date
July 11, 2025, 10:11 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   47.475274] ==================================================================
[   47.481976] BUG: KASAN: double-free in kfree_sensitive+0x3c/0xb0
[   47.487962] Free of addr ffff0008030dafc0 by task kunit_try_catch/276
[   47.494385] 
[   47.495870] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250711 #1 PREEMPT 
[   47.495925] Tainted: [B]=BAD_PAGE, [N]=TEST
[   47.495942] Hardware name: WinLink E850-96 board (DT)
[   47.495963] Call trace:
[   47.495977]  show_stack+0x20/0x38 (C)
[   47.496009]  dump_stack_lvl+0x8c/0xd0
[   47.496041]  print_report+0x118/0x5d0
[   47.496068]  kasan_report_invalid_free+0xc0/0xe8
[   47.496098]  check_slab_allocation+0xd4/0x108
[   47.496134]  __kasan_slab_pre_free+0x2c/0x48
[   47.496168]  kfree+0xe8/0x3c8
[   47.496200]  kfree_sensitive+0x3c/0xb0
[   47.496233]  kmalloc_double_kzfree+0x168/0x308
[   47.496268]  kunit_try_run_case+0x170/0x3f0
[   47.496303]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   47.496336]  kthread+0x328/0x630
[   47.496364]  ret_from_fork+0x10/0x20
[   47.496395] 
[   47.571729] Allocated by task 276:
[   47.575115]  kasan_save_stack+0x3c/0x68
[   47.578932]  kasan_save_track+0x20/0x40
[   47.582752]  kasan_save_alloc_info+0x40/0x58
[   47.587005]  __kasan_kmalloc+0xd4/0xd8
[   47.590738]  __kmalloc_cache_noprof+0x16c/0x3c0
[   47.595251]  kmalloc_double_kzfree+0xb8/0x308
[   47.599592]  kunit_try_run_case+0x170/0x3f0
[   47.603758]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   47.609227]  kthread+0x328/0x630
[   47.612439]  ret_from_fork+0x10/0x20
[   47.615998] 
[   47.617473] Freed by task 276:
[   47.620511]  kasan_save_stack+0x3c/0x68
[   47.624331]  kasan_save_track+0x20/0x40
[   47.628150]  kasan_save_free_info+0x4c/0x78
[   47.632317]  __kasan_slab_free+0x6c/0x98
[   47.636223]  kfree+0x214/0x3c8
[   47.639261]  kfree_sensitive+0x80/0xb0
[   47.642995]  kmalloc_double_kzfree+0x11c/0x308
[   47.647421]  kunit_try_run_case+0x170/0x3f0
[   47.651587]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   47.657056]  kthread+0x328/0x630
[   47.660268]  ret_from_fork+0x10/0x20
[   47.663827] 
[   47.665304] The buggy address belongs to the object at ffff0008030dafc0
[   47.665304]  which belongs to the cache kmalloc-16 of size 16
[   47.677630] The buggy address is located 0 bytes inside of
[   47.677630]  16-byte region [ffff0008030dafc0, ffff0008030dafd0)
[   47.689086] 
[   47.690566] The buggy address belongs to the physical page:
[   47.696121] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8830da
[   47.704106] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   47.710616] page_type: f5(slab)
[   47.713753] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000
[   47.721472] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   47.729192] page dumped because: kasan: bad access detected
[   47.734746] 
[   47.736221] Memory state around the buggy address:
[   47.741001]  ffff0008030dae80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   47.748204]  ffff0008030daf00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   47.755412] >ffff0008030daf80: fa fb fc fc fa fb fc fc fa fb fc fc fc fc fc fc
[   47.762610]                                            ^
[   47.767910]  ffff0008030db000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   47.775113]  ffff0008030db080: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00
[   47.782315] ==================================================================

[   30.688877] ==================================================================
[   30.689133] BUG: KASAN: double-free in kfree_sensitive+0x3c/0xb0
[   30.689185] Free of addr fff00000c918c680 by task kunit_try_catch/223
[   30.689244] 
[   30.689276] CPU: 1 UID: 0 PID: 223 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250711 #1 PREEMPT 
[   30.689433] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.689489] Hardware name: linux,dummy-virt (DT)
[   30.689568] Call trace:
[   30.689669]  show_stack+0x20/0x38 (C)
[   30.689755]  dump_stack_lvl+0x8c/0xd0
[   30.689843]  print_report+0x118/0x5d0
[   30.689933]  kasan_report_invalid_free+0xc0/0xe8
[   30.690047]  check_slab_allocation+0xd4/0x108
[   30.690147]  __kasan_slab_pre_free+0x2c/0x48
[   30.690255]  kfree+0xe8/0x3c8
[   30.690342]  kfree_sensitive+0x3c/0xb0
[   30.690413]  kmalloc_double_kzfree+0x168/0x308
[   30.690481]  kunit_try_run_case+0x170/0x3f0
[   30.690529]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.690577]  kthread+0x328/0x630
[   30.690619]  ret_from_fork+0x10/0x20
[   30.690668] 
[   30.690976] Allocated by task 223:
[   30.691053]  kasan_save_stack+0x3c/0x68
[   30.691147]  kasan_save_track+0x20/0x40
[   30.691254]  kasan_save_alloc_info+0x40/0x58
[   30.691341]  __kasan_kmalloc+0xd4/0xd8
[   30.691438]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.691543]  kmalloc_double_kzfree+0xb8/0x308
[   30.691630]  kunit_try_run_case+0x170/0x3f0
[   30.691757]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.691826]  kthread+0x328/0x630
[   30.691861]  ret_from_fork+0x10/0x20
[   30.691905] 
[   30.691959] Freed by task 223:
[   30.692195]  kasan_save_stack+0x3c/0x68
[   30.692247]  kasan_save_track+0x20/0x40
[   30.692286]  kasan_save_free_info+0x4c/0x78
[   30.692558]  __kasan_slab_free+0x6c/0x98
[   30.692717]  kfree+0x214/0x3c8
[   30.692859]  kfree_sensitive+0x80/0xb0
[   30.692940]  kmalloc_double_kzfree+0x11c/0x308
[   30.692993]  kunit_try_run_case+0x170/0x3f0
[   30.693040]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.693082]  kthread+0x328/0x630
[   30.693114]  ret_from_fork+0x10/0x20
[   30.693159] 
[   30.693180] The buggy address belongs to the object at fff00000c918c680
[   30.693180]  which belongs to the cache kmalloc-16 of size 16
[   30.693244] The buggy address is located 0 bytes inside of
[   30.693244]  16-byte region [fff00000c918c680, fff00000c918c690)
[   30.693307] 
[   30.693341] The buggy address belongs to the physical page:
[   30.693372] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10918c
[   30.693426] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.693477] page_type: f5(slab)
[   30.693516] raw: 0bfffe0000000000 fff00000c0001640 dead000000000100 dead000000000122
[   30.693566] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   30.693606] page dumped because: kasan: bad access detected
[   30.693636] 
[   30.693654] Memory state around the buggy address:
[   30.693687]  fff00000c918c580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   30.693756]  fff00000c918c600: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   30.693852] >fff00000c918c680: fa fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.694001]                    ^
[   30.694082]  fff00000c918c700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.694135]  fff00000c918c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.694198] ==================================================================

[   24.135998] ==================================================================
[   24.136466] BUG: KASAN: double-free in kfree_sensitive+0x2e/0x90
[   24.136742] Free of addr ffff888104c83b60 by task kunit_try_catch/242
[   24.136965] 
[   24.137049] CPU: 0 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) 
[   24.137098] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.137111] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.137132] Call Trace:
[   24.137146]  <TASK>
[   24.137161]  dump_stack_lvl+0x73/0xb0
[   24.137190]  print_report+0xd1/0x610
[   24.137212]  ? __virt_addr_valid+0x1db/0x2d0
[   24.137237]  ? kasan_complete_mode_report_info+0x64/0x200
[   24.137338]  ? kfree_sensitive+0x2e/0x90
[   24.137368]  kasan_report_invalid_free+0x10a/0x130
[   24.137392]  ? kfree_sensitive+0x2e/0x90
[   24.137417]  ? kfree_sensitive+0x2e/0x90
[   24.137457]  check_slab_allocation+0x101/0x130
[   24.137478]  __kasan_slab_pre_free+0x28/0x40
[   24.137498]  kfree+0xf0/0x3f0
[   24.137520]  ? kfree_sensitive+0x2e/0x90
[   24.137545]  kfree_sensitive+0x2e/0x90
[   24.137568]  kmalloc_double_kzfree+0x19c/0x350
[   24.137590]  ? __pfx_kmalloc_double_kzfree+0x10/0x10
[   24.137613]  ? __schedule+0x10cc/0x2b60
[   24.137637]  ? __pfx_read_tsc+0x10/0x10
[   24.137658]  ? ktime_get_ts64+0x86/0x230
[   24.137683]  kunit_try_run_case+0x1a5/0x480
[   24.137705]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.137725]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.137757]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.137780]  ? __kthread_parkme+0x82/0x180
[   24.137801]  ? preempt_count_sub+0x50/0x80
[   24.137824]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.137845]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.137869]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.137894]  kthread+0x337/0x6f0
[   24.137913]  ? trace_preempt_on+0x20/0xc0
[   24.137936]  ? __pfx_kthread+0x10/0x10
[   24.137957]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.137978]  ? calculate_sigpending+0x7b/0xa0
[   24.138002]  ? __pfx_kthread+0x10/0x10
[   24.138024]  ret_from_fork+0x116/0x1d0
[   24.138043]  ? __pfx_kthread+0x10/0x10
[   24.138063]  ret_from_fork_asm+0x1a/0x30
[   24.138093]  </TASK>
[   24.138103] 
[   24.145627] Allocated by task 242:
[   24.145820]  kasan_save_stack+0x45/0x70
[   24.146026]  kasan_save_track+0x18/0x40
[   24.146212]  kasan_save_alloc_info+0x3b/0x50
[   24.146652]  __kasan_kmalloc+0xb7/0xc0
[   24.146859]  __kmalloc_cache_noprof+0x189/0x420
[   24.147080]  kmalloc_double_kzfree+0xa9/0x350
[   24.147360]  kunit_try_run_case+0x1a5/0x480
[   24.147558]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.147809]  kthread+0x337/0x6f0
[   24.147974]  ret_from_fork+0x116/0x1d0
[   24.148151]  ret_from_fork_asm+0x1a/0x30
[   24.148419] 
[   24.148520] Freed by task 242:
[   24.148662]  kasan_save_stack+0x45/0x70
[   24.148837]  kasan_save_track+0x18/0x40
[   24.148997]  kasan_save_free_info+0x3f/0x60
[   24.149184]  __kasan_slab_free+0x56/0x70
[   24.149422]  kfree+0x222/0x3f0
[   24.149607]  kfree_sensitive+0x67/0x90
[   24.149781]  kmalloc_double_kzfree+0x12b/0x350
[   24.149966]  kunit_try_run_case+0x1a5/0x480
[   24.150151]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.150552]  kthread+0x337/0x6f0
[   24.150730]  ret_from_fork+0x116/0x1d0
[   24.150933]  ret_from_fork_asm+0x1a/0x30
[   24.151084] 
[   24.151175] The buggy address belongs to the object at ffff888104c83b60
[   24.151175]  which belongs to the cache kmalloc-16 of size 16
[   24.151800] The buggy address is located 0 bytes inside of
[   24.151800]  16-byte region [ffff888104c83b60, ffff888104c83b70)
[   24.152145] 
[   24.152217] The buggy address belongs to the physical page:
[   24.152483] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104c83
[   24.152724] flags: 0x200000000000000(node=0|zone=2)
[   24.152931] page_type: f5(slab)
[   24.153092] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   24.153515] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   24.153856] page dumped because: kasan: bad access detected
[   24.154098] 
[   24.154184] Memory state around the buggy address:
[   24.154657]  ffff888104c83a00: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc
[   24.154947]  ffff888104c83a80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.155199] >ffff888104c83b00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.155497]                                                        ^
[   24.155688]  ffff888104c83b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.156014]  ffff888104c83c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.156389] ==================================================================