Date
May 30, 2025, 4:14 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 30.457547] ================================================================== [ 30.464520] BUG: KASAN: double-free in kfree_sensitive+0x3c/0xb0 [ 30.470506] Free of addr ffff00080147da00 by task kunit_try_catch/236 [ 30.476929] [ 30.478412] CPU: 0 UID: 0 PID: 236 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 30.478462] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.478476] Hardware name: WinLink E850-96 board (DT) [ 30.478498] Call trace: [ 30.478510] show_stack+0x20/0x38 (C) [ 30.478546] dump_stack_lvl+0x8c/0xd0 [ 30.478584] print_report+0x118/0x608 [ 30.478617] kasan_report_invalid_free+0xc0/0xe8 [ 30.478650] check_slab_allocation+0xd4/0x108 [ 30.478684] __kasan_slab_pre_free+0x2c/0x48 [ 30.478715] kfree+0xe8/0x3c8 [ 30.478746] kfree_sensitive+0x3c/0xb0 [ 30.478776] kmalloc_double_kzfree+0x168/0x308 [ 30.478807] kunit_try_run_case+0x170/0x3f0 [ 30.478843] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.478884] kthread+0x328/0x630 [ 30.478911] ret_from_fork+0x10/0x20 [ 30.478946] [ 30.553924] Allocated by task 236: [ 30.557313] kasan_save_stack+0x3c/0x68 [ 30.561129] kasan_save_track+0x20/0x40 [ 30.564948] kasan_save_alloc_info+0x40/0x58 [ 30.569202] __kasan_kmalloc+0xd4/0xd8 [ 30.572935] __kmalloc_cache_noprof+0x15c/0x3c0 [ 30.577448] kmalloc_double_kzfree+0xb8/0x308 [ 30.581788] kunit_try_run_case+0x170/0x3f0 [ 30.585955] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.591424] kthread+0x328/0x630 [ 30.594636] ret_from_fork+0x10/0x20 [ 30.598195] [ 30.599670] Freed by task 236: [ 30.602708] kasan_save_stack+0x3c/0x68 [ 30.606528] kasan_save_track+0x20/0x40 [ 30.610347] kasan_save_free_info+0x4c/0x78 [ 30.614514] __kasan_slab_free+0x6c/0x98 [ 30.618421] kfree+0x214/0x3c8 [ 30.621458] kfree_sensitive+0x80/0xb0 [ 30.625191] kmalloc_double_kzfree+0x11c/0x308 [ 30.629617] kunit_try_run_case+0x170/0x3f0 [ 30.633784] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.639253] kthread+0x328/0x630 [ 30.642465] ret_from_fork+0x10/0x20 [ 30.646024] [ 30.647501] The buggy address belongs to the object at ffff00080147da00 [ 30.647501] which belongs to the cache kmalloc-16 of size 16 [ 30.659829] The buggy address is located 0 bytes inside of [ 30.659829] 16-byte region [ffff00080147da00, ffff00080147da10) [ 30.671283] [ 30.672761] The buggy address belongs to the physical page: [ 30.678319] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88147d [ 30.686304] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.692811] page_type: f5(slab) [ 30.695947] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000 [ 30.703668] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 30.711387] page dumped because: kasan: bad access detected [ 30.716944] [ 30.718418] Memory state around the buggy address: [ 30.723200] ffff00080147d900: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.730401] ffff00080147d980: 00 05 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.737607] >ffff00080147da00: fa fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.744807] ^ [ 30.748022] ffff00080147da80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.755227] ffff00080147db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.762428] ==================================================================
[ 25.182331] ================================================================== [ 25.182472] BUG: KASAN: double-free in kfree_sensitive+0x3c/0xb0 [ 25.182585] Free of addr fff00000c5ed4d40 by task kunit_try_catch/193 [ 25.185547] [ 25.185632] CPU: 0 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 25.185844] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.185907] Hardware name: linux,dummy-virt (DT) [ 25.185977] Call trace: [ 25.186037] show_stack+0x20/0x38 (C) [ 25.186145] dump_stack_lvl+0x8c/0xd0 [ 25.186255] print_report+0x118/0x608 [ 25.186374] kasan_report_invalid_free+0xc0/0xe8 [ 25.186487] check_slab_allocation+0xd4/0x108 [ 25.186605] __kasan_slab_pre_free+0x2c/0x48 [ 25.189143] kfree+0xe8/0x3c8 [ 25.189671] kfree_sensitive+0x3c/0xb0 [ 25.190547] kmalloc_double_kzfree+0x168/0x308 [ 25.190817] kunit_try_run_case+0x170/0x3f0 [ 25.190929] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.191051] kthread+0x328/0x630 [ 25.191162] ret_from_fork+0x10/0x20 [ 25.191485] [ 25.191540] Allocated by task 193: [ 25.191923] kasan_save_stack+0x3c/0x68 [ 25.192249] kasan_save_track+0x20/0x40 [ 25.193261] kasan_save_alloc_info+0x40/0x58 [ 25.193377] __kasan_kmalloc+0xd4/0xd8 [ 25.193467] __kmalloc_cache_noprof+0x15c/0x3c0 [ 25.193565] kmalloc_double_kzfree+0xb8/0x308 [ 25.193658] kunit_try_run_case+0x170/0x3f0 [ 25.193771] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.193872] kthread+0x328/0x630 [ 25.193954] ret_from_fork+0x10/0x20 [ 25.194037] [ 25.194084] Freed by task 193: [ 25.194143] kasan_save_stack+0x3c/0x68 [ 25.194243] kasan_save_track+0x20/0x40 [ 25.194339] kasan_save_free_info+0x4c/0x78 [ 25.194450] __kasan_slab_free+0x6c/0x98 [ 25.194570] kfree+0x214/0x3c8 [ 25.195501] kfree_sensitive+0x80/0xb0 [ 25.195619] kmalloc_double_kzfree+0x11c/0x308 [ 25.195814] kunit_try_run_case+0x170/0x3f0 [ 25.195964] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.196081] kthread+0x328/0x630 [ 25.196167] ret_from_fork+0x10/0x20 [ 25.196274] [ 25.196382] The buggy address belongs to the object at fff00000c5ed4d40 [ 25.196382] which belongs to the cache kmalloc-16 of size 16 [ 25.196656] The buggy address is located 0 bytes inside of [ 25.196656] 16-byte region [fff00000c5ed4d40, fff00000c5ed4d50) [ 25.197097] [ 25.197312] The buggy address belongs to the physical page: [ 25.197661] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ed4 [ 25.197806] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.197923] page_type: f5(slab) [ 25.198215] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 25.199652] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 25.199787] page dumped because: kasan: bad access detected [ 25.199898] [ 25.200023] Memory state around the buggy address: [ 25.200256] fff00000c5ed4c00: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 25.200867] fff00000c5ed4c80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 25.201007] >fff00000c5ed4d00: fa fb fc fc fa fb fc fc fa fb fc fc fc fc fc fc [ 25.201113] ^ [ 25.201856] fff00000c5ed4d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.202182] fff00000c5ed4e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.202734] ==================================================================
[ 18.797535] ================================================================== [ 18.799308] BUG: KASAN: double-free in kfree_sensitive+0x2e/0x90 [ 18.799773] Free of addr ffff888102b0a0e0 by task kunit_try_catch/209 [ 18.801143] [ 18.801434] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT(voluntary) [ 18.801561] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.801662] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.801700] Call Trace: [ 18.801730] <TASK> [ 18.801794] dump_stack_lvl+0x73/0xb0 [ 18.801847] print_report+0xd1/0x650 [ 18.801881] ? __virt_addr_valid+0x1db/0x2d0 [ 18.801915] ? kasan_complete_mode_report_info+0x64/0x200 [ 18.801946] ? kfree_sensitive+0x2e/0x90 [ 18.801975] kasan_report_invalid_free+0x10a/0x130 [ 18.802034] ? kfree_sensitive+0x2e/0x90 [ 18.802069] ? kfree_sensitive+0x2e/0x90 [ 18.802097] check_slab_allocation+0x101/0x130 [ 18.802128] __kasan_slab_pre_free+0x28/0x40 [ 18.802158] kfree+0xf0/0x3f0 [ 18.802183] ? kfree_sensitive+0x2e/0x90 [ 18.802213] kfree_sensitive+0x2e/0x90 [ 18.802241] kmalloc_double_kzfree+0x19c/0x350 [ 18.802273] ? __pfx_kmalloc_double_kzfree+0x10/0x10 [ 18.802318] ? __schedule+0x10cc/0x2b60 [ 18.802352] ? __pfx_read_tsc+0x10/0x10 [ 18.802382] ? ktime_get_ts64+0x86/0x230 [ 18.802415] kunit_try_run_case+0x1a5/0x480 [ 18.802444] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.802470] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.802505] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.802745] ? __kthread_parkme+0x82/0x180 [ 18.802800] ? preempt_count_sub+0x50/0x80 [ 18.802835] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.802864] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.802901] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.802936] kthread+0x337/0x6f0 [ 18.802964] ? trace_preempt_on+0x20/0xc0 [ 18.802996] ? __pfx_kthread+0x10/0x10 [ 18.803051] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.803084] ? calculate_sigpending+0x7b/0xa0 [ 18.803119] ? __pfx_kthread+0x10/0x10 [ 18.803148] ret_from_fork+0x116/0x1d0 [ 18.803261] ? __pfx_kthread+0x10/0x10 [ 18.803299] ret_from_fork_asm+0x1a/0x30 [ 18.803343] </TASK> [ 18.803357] [ 18.828961] Allocated by task 209: [ 18.829314] kasan_save_stack+0x45/0x70 [ 18.829701] kasan_save_track+0x18/0x40 [ 18.830543] kasan_save_alloc_info+0x3b/0x50 [ 18.831039] __kasan_kmalloc+0xb7/0xc0 [ 18.831974] __kmalloc_cache_noprof+0x189/0x420 [ 18.832674] kmalloc_double_kzfree+0xa9/0x350 [ 18.833322] kunit_try_run_case+0x1a5/0x480 [ 18.833753] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.834669] kthread+0x337/0x6f0 [ 18.835301] ret_from_fork+0x116/0x1d0 [ 18.835669] ret_from_fork_asm+0x1a/0x30 [ 18.836094] [ 18.836407] Freed by task 209: [ 18.837502] kasan_save_stack+0x45/0x70 [ 18.838118] kasan_save_track+0x18/0x40 [ 18.838694] kasan_save_free_info+0x3f/0x60 [ 18.839746] __kasan_slab_free+0x56/0x70 [ 18.840218] kfree+0x222/0x3f0 [ 18.840611] kfree_sensitive+0x67/0x90 [ 18.841561] kmalloc_double_kzfree+0x12b/0x350 [ 18.842191] kunit_try_run_case+0x1a5/0x480 [ 18.842525] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.843336] kthread+0x337/0x6f0 [ 18.844126] ret_from_fork+0x116/0x1d0 [ 18.844626] ret_from_fork_asm+0x1a/0x30 [ 18.845488] [ 18.845906] The buggy address belongs to the object at ffff888102b0a0e0 [ 18.845906] which belongs to the cache kmalloc-16 of size 16 [ 18.847709] The buggy address is located 0 bytes inside of [ 18.847709] 16-byte region [ffff888102b0a0e0, ffff888102b0a0f0) [ 18.848584] [ 18.848826] The buggy address belongs to the physical page: [ 18.849858] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b0a [ 18.850650] flags: 0x200000000000000(node=0|zone=2) [ 18.851496] page_type: f5(slab) [ 18.851868] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 18.853038] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.853943] page dumped because: kasan: bad access detected [ 18.854541] [ 18.855487] Memory state around the buggy address: [ 18.855866] ffff888102b09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.856545] ffff888102b0a000: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 18.857211] >ffff888102b0a080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 18.857713] ^ [ 18.859695] ffff888102b0a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.860223] ffff888102b0a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.861052] ==================================================================