Date
July 14, 2025, 10:38 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 38.664971] ================================================================== [ 38.674414] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 38.679797] Free of addr ffff000804a78001 by task kunit_try_catch/234 [ 38.686220] [ 38.687704] CPU: 3 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 38.687762] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.687780] Hardware name: WinLink E850-96 board (DT) [ 38.687801] Call trace: [ 38.687813] show_stack+0x20/0x38 (C) [ 38.687848] dump_stack_lvl+0x8c/0xd0 [ 38.687878] print_report+0x118/0x5d0 [ 38.687907] kasan_report_invalid_free+0xc0/0xe8 [ 38.687939] __kasan_kfree_large+0x5c/0xa8 [ 38.687980] free_large_kmalloc+0x68/0x150 [ 38.688014] kfree+0x270/0x3c8 [ 38.688042] kmalloc_large_invalid_free+0x108/0x270 [ 38.688078] kunit_try_run_case+0x170/0x3f0 [ 38.688114] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.688148] kthread+0x328/0x630 [ 38.688179] ret_from_fork+0x10/0x20 [ 38.688211] [ 38.759917] The buggy address belongs to the physical page: [ 38.765476] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x884a78 [ 38.773457] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 38.781097] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 38.788041] page_type: f8(unknown) [ 38.791438] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 38.799157] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 38.806883] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 38.814695] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 38.822508] head: 0bfffe0000000002 fffffdffe0129e01 00000000ffffffff 00000000ffffffff [ 38.830320] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 38.838127] page dumped because: kasan: bad access detected [ 38.843681] [ 38.845157] Memory state around the buggy address: [ 38.849937] ffff000804a77f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.857140] ffff000804a77f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.864345] >ffff000804a78000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.871545] ^ [ 38.874762] ffff000804a78080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.881965] ffff000804a78100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.889168] ==================================================================
[ 29.370935] ================================================================== [ 29.371281] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 29.371370] Free of addr fff00000c9b00001 by task kunit_try_catch/181 [ 29.371506] [ 29.371579] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 29.371817] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.372026] Hardware name: linux,dummy-virt (DT) [ 29.372129] Call trace: [ 29.372156] show_stack+0x20/0x38 (C) [ 29.372329] dump_stack_lvl+0x8c/0xd0 [ 29.372528] print_report+0x118/0x5d0 [ 29.372579] kasan_report_invalid_free+0xc0/0xe8 [ 29.372649] __kasan_kfree_large+0x5c/0xa8 [ 29.372705] free_large_kmalloc+0x68/0x150 [ 29.372752] kfree+0x270/0x3c8 [ 29.372794] kmalloc_large_invalid_free+0x108/0x270 [ 29.373268] kunit_try_run_case+0x170/0x3f0 [ 29.373570] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.373995] kthread+0x328/0x630 [ 29.374319] ret_from_fork+0x10/0x20 [ 29.374573] [ 29.374596] The buggy address belongs to the physical page: [ 29.375366] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b00 [ 29.376281] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.376830] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.376905] page_type: f8(unknown) [ 29.376949] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.376998] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.377056] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.377104] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.377151] head: 0bfffe0000000002 ffffc1ffc326c001 00000000ffffffff 00000000ffffffff [ 29.377198] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 29.377236] page dumped because: kasan: bad access detected [ 29.377266] [ 29.377287] Memory state around the buggy address: [ 29.377318] fff00000c9afff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.377363] fff00000c9afff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.377404] >fff00000c9b00000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.377440] ^ [ 29.377467] fff00000c9b00080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.377508] fff00000c9b00100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.377560] ==================================================================
[ 23.769182] ================================================================== [ 23.770455] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 23.771141] Free of addr ffff888105878001 by task kunit_try_catch/199 [ 23.771653] [ 23.771999] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) [ 23.772057] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.772071] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.772117] Call Trace: [ 23.772130] <TASK> [ 23.772151] dump_stack_lvl+0x73/0xb0 [ 23.772186] print_report+0xd1/0x610 [ 23.772209] ? __virt_addr_valid+0x1db/0x2d0 [ 23.772233] ? kasan_addr_to_slab+0x11/0xa0 [ 23.772252] ? kfree+0x274/0x3f0 [ 23.772273] kasan_report_invalid_free+0x10a/0x130 [ 23.772295] ? kfree+0x274/0x3f0 [ 23.772317] ? kfree+0x274/0x3f0 [ 23.772337] __kasan_kfree_large+0x86/0xd0 [ 23.772357] free_large_kmalloc+0x52/0x110 [ 23.772378] kfree+0x274/0x3f0 [ 23.772402] kmalloc_large_invalid_free+0x120/0x2b0 [ 23.772423] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 23.772446] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 23.772471] kunit_try_run_case+0x1a5/0x480 [ 23.772493] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.772513] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.772536] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.772558] ? __kthread_parkme+0x82/0x180 [ 23.772578] ? preempt_count_sub+0x50/0x80 [ 23.772601] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.772622] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.772645] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.772681] kthread+0x337/0x6f0 [ 23.772700] ? trace_preempt_on+0x20/0xc0 [ 23.772723] ? __pfx_kthread+0x10/0x10 [ 23.772743] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.772776] ? calculate_sigpending+0x7b/0xa0 [ 23.772800] ? __pfx_kthread+0x10/0x10 [ 23.772820] ret_from_fork+0x116/0x1d0 [ 23.772839] ? __pfx_kthread+0x10/0x10 [ 23.772859] ret_from_fork_asm+0x1a/0x30 [ 23.772889] </TASK> [ 23.772900] [ 23.784145] The buggy address belongs to the physical page: [ 23.784626] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105878 [ 23.784918] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.785795] flags: 0x200000000000040(head|node=0|zone=2) [ 23.786063] page_type: f8(unknown) [ 23.786262] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.786488] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.786739] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.787066] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.787376] head: 0200000000000002 ffffea0004161e01 00000000ffffffff 00000000ffffffff [ 23.787730] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 23.788115] page dumped because: kasan: bad access detected [ 23.788356] [ 23.788445] Memory state around the buggy address: [ 23.788639] ffff888105877f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.788903] ffff888105877f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.789290] >ffff888105878000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.789576] ^ [ 23.789825] ffff888105878080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.790461] ffff888105878100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.790796] ==================================================================