Hay
Date
July 13, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.059855] ==================================================================
[   16.060177] BUG: KASAN: double-free in kfree_sensitive+0x3c/0xb0
[   16.060455] Free of addr fff00000c5809560 by task kunit_try_catch/193
[   16.060535] 
[   16.060575] CPU: 0 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   16.060974] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.061026] Hardware name: linux,dummy-virt (DT)
[   16.061194] Call trace:
[   16.061232]  show_stack+0x20/0x38 (C)
[   16.061939]  dump_stack_lvl+0x8c/0xd0
[   16.062142]  print_report+0x118/0x5d0
[   16.062862]  kasan_report_invalid_free+0xc0/0xe8
[   16.063401]  check_slab_allocation+0xd4/0x108
[   16.063547]  __kasan_slab_pre_free+0x2c/0x48
[   16.063625]  kfree+0xe8/0x3c8
[   16.063771]  kfree_sensitive+0x3c/0xb0
[   16.063835]  kmalloc_double_kzfree+0x168/0x308
[   16.063899]  kunit_try_run_case+0x170/0x3f0
[   16.064236]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.064429]  kthread+0x328/0x630
[   16.064535]  ret_from_fork+0x10/0x20
[   16.064688] 
[   16.064737] Allocated by task 193:
[   16.064913]  kasan_save_stack+0x3c/0x68
[   16.064958]  kasan_save_track+0x20/0x40
[   16.064994]  kasan_save_alloc_info+0x40/0x58
[   16.065056]  __kasan_kmalloc+0xd4/0xd8
[   16.065091]  __kmalloc_cache_noprof+0x16c/0x3c0
[   16.065413]  kmalloc_double_kzfree+0xb8/0x308
[   16.065549]  kunit_try_run_case+0x170/0x3f0
[   16.065625]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.065700]  kthread+0x328/0x630
[   16.065821]  ret_from_fork+0x10/0x20
[   16.065912] 
[   16.065974] Freed by task 193:
[   16.066067]  kasan_save_stack+0x3c/0x68
[   16.066108]  kasan_save_track+0x20/0x40
[   16.066145]  kasan_save_free_info+0x4c/0x78
[   16.066185]  __kasan_slab_free+0x6c/0x98
[   16.066243]  kfree+0x214/0x3c8
[   16.066315]  kfree_sensitive+0x80/0xb0
[   16.066365]  kmalloc_double_kzfree+0x11c/0x308
[   16.066413]  kunit_try_run_case+0x170/0x3f0
[   16.066451]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.066506]  kthread+0x328/0x630
[   16.066677]  ret_from_fork+0x10/0x20
[   16.066773] 
[   16.066792] The buggy address belongs to the object at fff00000c5809560
[   16.066792]  which belongs to the cache kmalloc-16 of size 16
[   16.066861] The buggy address is located 0 bytes inside of
[   16.066861]  16-byte region [fff00000c5809560, fff00000c5809570)
[   16.067265] 
[   16.067326] The buggy address belongs to the physical page:
[   16.067379] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105809
[   16.067505] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.067566] page_type: f5(slab)
[   16.067612] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   16.067957] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   16.068028] page dumped because: kasan: bad access detected
[   16.068322] 
[   16.068371] Memory state around the buggy address:
[   16.068437]  fff00000c5809400: 00 00 fc fc 00 00 fc fc 00 00 fc fc fa fb fc fc
[   16.068592]  fff00000c5809480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   16.068642] >fff00000c5809500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   16.068682]                                                        ^
[   16.068728]  fff00000c5809580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.069067]  fff00000c5809600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.069228] ==================================================================

[   16.819144] ==================================================================
[   16.819226] BUG: KASAN: double-free in kfree_sensitive+0x3c/0xb0
[   16.819290] Free of addr fff00000c44abac0 by task kunit_try_catch/193
[   16.819352] 
[   16.819448] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   16.819655] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.819700] Hardware name: linux,dummy-virt (DT)
[   16.819732] Call trace:
[   16.819753]  show_stack+0x20/0x38 (C)
[   16.819805]  dump_stack_lvl+0x8c/0xd0
[   16.819850]  print_report+0x118/0x5d0
[   16.819896]  kasan_report_invalid_free+0xc0/0xe8
[   16.820293]  check_slab_allocation+0xd4/0x108
[   16.820398]  __kasan_slab_pre_free+0x2c/0x48
[   16.820494]  kfree+0xe8/0x3c8
[   16.820553]  kfree_sensitive+0x3c/0xb0
[   16.820600]  kmalloc_double_kzfree+0x168/0x308
[   16.820647]  kunit_try_run_case+0x170/0x3f0
[   16.820694]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.820756]  kthread+0x328/0x630
[   16.820796]  ret_from_fork+0x10/0x20
[   16.820843] 
[   16.820870] Allocated by task 193:
[   16.820898]  kasan_save_stack+0x3c/0x68
[   16.820938]  kasan_save_track+0x20/0x40
[   16.820976]  kasan_save_alloc_info+0x40/0x58
[   16.821023]  __kasan_kmalloc+0xd4/0xd8
[   16.821060]  __kmalloc_cache_noprof+0x16c/0x3c0
[   16.821098]  kmalloc_double_kzfree+0xb8/0x308
[   16.821142]  kunit_try_run_case+0x170/0x3f0
[   16.821223]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.821277]  kthread+0x328/0x630
[   16.821313]  ret_from_fork+0x10/0x20
[   16.821356] 
[   16.821373] Freed by task 193:
[   16.821398]  kasan_save_stack+0x3c/0x68
[   16.821445]  kasan_save_track+0x20/0x40
[   16.821489]  kasan_save_free_info+0x4c/0x78
[   16.821527]  __kasan_slab_free+0x6c/0x98
[   16.821564]  kfree+0x214/0x3c8
[   16.821596]  kfree_sensitive+0x80/0xb0
[   16.821641]  kmalloc_double_kzfree+0x11c/0x308
[   16.821689]  kunit_try_run_case+0x170/0x3f0
[   16.821737]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.821790]  kthread+0x328/0x630
[   16.821823]  ret_from_fork+0x10/0x20
[   16.821866] 
[   16.821885] The buggy address belongs to the object at fff00000c44abac0
[   16.821885]  which belongs to the cache kmalloc-16 of size 16
[   16.821942] The buggy address is located 0 bytes inside of
[   16.821942]  16-byte region [fff00000c44abac0, fff00000c44abad0)
[   16.822005] 
[   16.822025] The buggy address belongs to the physical page:
[   16.822065] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1044ab
[   16.822119] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.822176] page_type: f5(slab)
[   16.822222] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   16.822273] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   16.822594] page dumped because: kasan: bad access detected
[   16.822686] 
[   16.822726] Memory state around the buggy address:
[   16.822797]  fff00000c44ab980: 00 00 fc fc 00 00 fc fc fa fb fc fc fa fb fc fc
[   16.822917]  fff00000c44aba00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   16.823060] >fff00000c44aba80: fa fb fc fc fa fb fc fc fa fb fc fc fc fc fc fc
[   16.823147]                                            ^
[   16.823195]  fff00000c44abb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.823237]  fff00000c44abb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.823310] ==================================================================

[   13.009340] ==================================================================
[   13.009990] BUG: KASAN: double-free in kfree_sensitive+0x2e/0x90
[   13.010495] Free of addr ffff888101aa5dc0 by task kunit_try_catch/209
[   13.010870] 
[   13.011057] CPU: 1 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.011101] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.011112] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.011132] Call Trace:
[   13.011145]  <TASK>
[   13.011159]  dump_stack_lvl+0x73/0xb0
[   13.011188]  print_report+0xd1/0x610
[   13.011210]  ? __virt_addr_valid+0x1db/0x2d0
[   13.011234]  ? kasan_complete_mode_report_info+0x64/0x200
[   13.011257]  ? kfree_sensitive+0x2e/0x90
[   13.011278]  kasan_report_invalid_free+0x10a/0x130
[   13.011303]  ? kfree_sensitive+0x2e/0x90
[   13.011324]  ? kfree_sensitive+0x2e/0x90
[   13.011344]  check_slab_allocation+0x101/0x130
[   13.011365]  __kasan_slab_pre_free+0x28/0x40
[   13.011387]  kfree+0xf0/0x3f0
[   13.011407]  ? kfree_sensitive+0x2e/0x90
[   13.011429]  kfree_sensitive+0x2e/0x90
[   13.011462]  kmalloc_double_kzfree+0x19c/0x350
[   13.011487]  ? __pfx_kmalloc_double_kzfree+0x10/0x10
[   13.011512]  ? __schedule+0x10cc/0x2b60
[   13.011533]  ? __pfx_read_tsc+0x10/0x10
[   13.011555]  ? ktime_get_ts64+0x86/0x230
[   13.011579]  kunit_try_run_case+0x1a5/0x480
[   13.011603]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.011638]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.011662]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.011686]  ? __kthread_parkme+0x82/0x180
[   13.011706]  ? preempt_count_sub+0x50/0x80
[   13.011731]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.011755]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.011779]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.011805]  kthread+0x337/0x6f0
[   13.011825]  ? trace_preempt_on+0x20/0xc0
[   13.011847]  ? __pfx_kthread+0x10/0x10
[   13.011868]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.011889]  ? calculate_sigpending+0x7b/0xa0
[   13.011913]  ? __pfx_kthread+0x10/0x10
[   13.011934]  ret_from_fork+0x116/0x1d0
[   13.011954]  ? __pfx_kthread+0x10/0x10
[   13.011974]  ret_from_fork_asm+0x1a/0x30
[   13.012005]  </TASK>
[   13.012014] 
[   13.024848] Allocated by task 209:
[   13.025034]  kasan_save_stack+0x45/0x70
[   13.025236]  kasan_save_track+0x18/0x40
[   13.025430]  kasan_save_alloc_info+0x3b/0x50
[   13.025740]  __kasan_kmalloc+0xb7/0xc0
[   13.025881]  __kmalloc_cache_noprof+0x189/0x420
[   13.026102]  kmalloc_double_kzfree+0xa9/0x350
[   13.026317]  kunit_try_run_case+0x1a5/0x480
[   13.026717]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.026956]  kthread+0x337/0x6f0
[   13.027082]  ret_from_fork+0x116/0x1d0
[   13.027214]  ret_from_fork_asm+0x1a/0x30
[   13.027367] 
[   13.027470] Freed by task 209:
[   13.027622]  kasan_save_stack+0x45/0x70
[   13.027813]  kasan_save_track+0x18/0x40
[   13.028068]  kasan_save_free_info+0x3f/0x60
[   13.028324]  __kasan_slab_free+0x56/0x70
[   13.028635]  kfree+0x222/0x3f0
[   13.028787]  kfree_sensitive+0x67/0x90
[   13.028956]  kmalloc_double_kzfree+0x12b/0x350
[   13.029111]  kunit_try_run_case+0x1a5/0x480
[   13.029314]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.029665]  kthread+0x337/0x6f0
[   13.029825]  ret_from_fork+0x116/0x1d0
[   13.029985]  ret_from_fork_asm+0x1a/0x30
[   13.030142] 
[   13.030214] The buggy address belongs to the object at ffff888101aa5dc0
[   13.030214]  which belongs to the cache kmalloc-16 of size 16
[   13.030940] The buggy address is located 0 bytes inside of
[   13.030940]  16-byte region [ffff888101aa5dc0, ffff888101aa5dd0)
[   13.031363] 
[   13.031442] The buggy address belongs to the physical page:
[   13.031699] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101aa5
[   13.031987] flags: 0x200000000000000(node=0|zone=2)
[   13.032147] page_type: f5(slab)
[   13.032321] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   13.032648] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   13.032943] page dumped because: kasan: bad access detected
[   13.033113] 
[   13.033181] Memory state around the buggy address:
[   13.033333]  ffff888101aa5c80: 00 02 fc fc 00 05 fc fc 00 02 fc fc 00 02 fc fc
[   13.034046]  ffff888101aa5d00: 00 02 fc fc 00 02 fc fc fa fb fc fc fa fb fc fc
[   13.034372] >ffff888101aa5d80: fa fb fc fc fa fb fc fc fa fb fc fc fc fc fc fc
[   13.034884]                                            ^
[   13.035085]  ffff888101aa5e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.035298]  ffff888101aa5e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.035608] ==================================================================

[   13.217453] ==================================================================
[   13.218239] BUG: KASAN: double-free in kfree_sensitive+0x2e/0x90
[   13.218560] Free of addr ffff888102b01280 by task kunit_try_catch/210
[   13.219531] 
[   13.219736] CPU: 1 UID: 0 PID: 210 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.219780] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.219792] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.219813] Call Trace:
[   13.219824]  <TASK>
[   13.219838]  dump_stack_lvl+0x73/0xb0
[   13.219869]  print_report+0xd1/0x610
[   13.219892]  ? __virt_addr_valid+0x1db/0x2d0
[   13.219935]  ? kasan_complete_mode_report_info+0x64/0x200
[   13.219966]  ? kfree_sensitive+0x2e/0x90
[   13.219988]  kasan_report_invalid_free+0x10a/0x130
[   13.220013]  ? kfree_sensitive+0x2e/0x90
[   13.220035]  ? kfree_sensitive+0x2e/0x90
[   13.220066]  check_slab_allocation+0x101/0x130
[   13.220089]  __kasan_slab_pre_free+0x28/0x40
[   13.220110]  kfree+0xf0/0x3f0
[   13.220132]  ? kfree_sensitive+0x2e/0x90
[   13.220154]  kfree_sensitive+0x2e/0x90
[   13.220174]  kmalloc_double_kzfree+0x19c/0x350
[   13.220197]  ? __pfx_kmalloc_double_kzfree+0x10/0x10
[   13.220221]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.220246]  ? trace_hardirqs_on+0x37/0xe0
[   13.220268]  ? __pfx_read_tsc+0x10/0x10
[   13.220289]  ? ktime_get_ts64+0x86/0x230
[   13.220313]  kunit_try_run_case+0x1a5/0x480
[   13.220337]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.220362]  ? queued_spin_lock_slowpath+0x116/0xb40
[   13.220386]  ? __kthread_parkme+0x82/0x180
[   13.220406]  ? preempt_count_sub+0x50/0x80
[   13.220430]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.220454]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.220479]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.220504]  kthread+0x337/0x6f0
[   13.220523]  ? trace_preempt_on+0x20/0xc0
[   13.220544]  ? __pfx_kthread+0x10/0x10
[   13.220565]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.220587]  ? calculate_sigpending+0x7b/0xa0
[   13.220613]  ? __pfx_kthread+0x10/0x10
[   13.220634]  ret_from_fork+0x116/0x1d0
[   13.220653]  ? __pfx_kthread+0x10/0x10
[   13.220673]  ret_from_fork_asm+0x1a/0x30
[   13.220703]  </TASK>
[   13.220712] 
[   13.233826] Allocated by task 210:
[   13.233960]  kasan_save_stack+0x45/0x70
[   13.234116]  kasan_save_track+0x18/0x40
[   13.234253]  kasan_save_alloc_info+0x3b/0x50
[   13.234402]  __kasan_kmalloc+0xb7/0xc0
[   13.234535]  __kmalloc_cache_noprof+0x189/0x420
[   13.234692]  kmalloc_double_kzfree+0xa9/0x350
[   13.234848]  kunit_try_run_case+0x1a5/0x480
[   13.235001]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.235660]  kthread+0x337/0x6f0
[   13.235954]  ret_from_fork+0x116/0x1d0
[   13.236318]  ret_from_fork_asm+0x1a/0x30
[   13.236852] 
[   13.237075] Freed by task 210:
[   13.237381]  kasan_save_stack+0x45/0x70
[   13.237822]  kasan_save_track+0x18/0x40
[   13.238341]  kasan_save_free_info+0x3f/0x60
[   13.238814]  __kasan_slab_free+0x56/0x70
[   13.239216]  kfree+0x222/0x3f0
[   13.239516]  kfree_sensitive+0x67/0x90
[   13.239918]  kmalloc_double_kzfree+0x12b/0x350
[   13.240433]  kunit_try_run_case+0x1a5/0x480
[   13.240889]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.241460]  kthread+0x337/0x6f0
[   13.241834]  ret_from_fork+0x116/0x1d0
[   13.242228]  ret_from_fork_asm+0x1a/0x30
[   13.242597] 
[   13.242802] The buggy address belongs to the object at ffff888102b01280
[   13.242802]  which belongs to the cache kmalloc-16 of size 16
[   13.244108] The buggy address is located 0 bytes inside of
[   13.244108]  16-byte region [ffff888102b01280, ffff888102b01290)
[   13.245320] 
[   13.245535] The buggy address belongs to the physical page:
[   13.246116] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b01
[   13.246676] flags: 0x200000000000000(node=0|zone=2)
[   13.247263] page_type: f5(slab)
[   13.247469] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   13.247783] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   13.248483] page dumped because: kasan: bad access detected
[   13.249063] 
[   13.249298] Memory state around the buggy address:
[   13.249640]  ffff888102b01180: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   13.250089]  ffff888102b01200: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   13.250305] >ffff888102b01280: fa fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.250514]                    ^
[   13.250628]  ffff888102b01300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.250844]  ffff888102b01380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.251062] ==================================================================