Date
July 11, 2025, 10:11 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 38.707386] ================================================================== [ 38.716742] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 38.722124] Free of addr ffff000805b3c001 by task kunit_try_catch/234 [ 38.728546] [ 38.730033] CPU: 3 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 38.730092] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.730109] Hardware name: WinLink E850-96 board (DT) [ 38.730132] Call trace: [ 38.730148] show_stack+0x20/0x38 (C) [ 38.730184] dump_stack_lvl+0x8c/0xd0 [ 38.730216] print_report+0x118/0x5d0 [ 38.730245] kasan_report_invalid_free+0xc0/0xe8 [ 38.730276] __kasan_kfree_large+0x5c/0xa8 [ 38.730313] free_large_kmalloc+0x68/0x150 [ 38.730347] kfree+0x270/0x3c8 [ 38.730376] kmalloc_large_invalid_free+0x108/0x270 [ 38.730412] kunit_try_run_case+0x170/0x3f0 [ 38.730451] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.730483] kthread+0x328/0x630 [ 38.730512] ret_from_fork+0x10/0x20 [ 38.730547] [ 38.802245] The buggy address belongs to the physical page: [ 38.807801] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x885b3c [ 38.815784] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 38.823424] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 38.830368] page_type: f8(unknown) [ 38.833766] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 38.841483] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 38.849212] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 38.857021] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 38.864836] head: 0bfffe0000000002 fffffdffe016cf01 00000000ffffffff 00000000ffffffff [ 38.872646] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 38.880452] page dumped because: kasan: bad access detected [ 38.886007] [ 38.887483] Memory state around the buggy address: [ 38.892266] ffff000805b3bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.899467] ffff000805b3bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.906674] >ffff000805b3c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.913871] ^ [ 38.917086] ffff000805b3c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.924293] ffff000805b3c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.931493] ==================================================================
[ 30.137282] ================================================================== [ 30.137395] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 30.137551] Free of addr fff00000c91b4001 by task kunit_try_catch/181 [ 30.137650] [ 30.137688] CPU: 1 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 30.137772] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.137798] Hardware name: linux,dummy-virt (DT) [ 30.137829] Call trace: [ 30.137852] show_stack+0x20/0x38 (C) [ 30.137903] dump_stack_lvl+0x8c/0xd0 [ 30.137971] print_report+0x118/0x5d0 [ 30.138016] kasan_report_invalid_free+0xc0/0xe8 [ 30.138062] __kasan_kfree_large+0x5c/0xa8 [ 30.138110] free_large_kmalloc+0x68/0x150 [ 30.138157] kfree+0x270/0x3c8 [ 30.138199] kmalloc_large_invalid_free+0x108/0x270 [ 30.138247] kunit_try_run_case+0x170/0x3f0 [ 30.138296] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.138370] kthread+0x328/0x630 [ 30.138447] ret_from_fork+0x10/0x20 [ 30.138575] [ 30.138630] The buggy address belongs to the physical page: [ 30.138678] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1091b4 [ 30.138779] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.138897] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.139013] page_type: f8(unknown) [ 30.139131] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.139183] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.139495] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.139610] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.139739] head: 0bfffe0000000002 ffffc1ffc3246d01 00000000ffffffff 00000000ffffffff [ 30.139837] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 30.139966] page dumped because: kasan: bad access detected [ 30.139997] [ 30.140015] Memory state around the buggy address: [ 30.140046] fff00000c91b3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.140129] fff00000c91b3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.140338] >fff00000c91b4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.140549] ^ [ 30.140606] fff00000c91b4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.140646] fff00000c91b4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.140762] ==================================================================
[ 23.290477] ================================================================== [ 23.291024] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 23.291346] Free of addr ffff888102b94001 by task kunit_try_catch/200 [ 23.291659] [ 23.292067] CPU: 1 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) [ 23.292126] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.292138] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.292160] Call Trace: [ 23.292173] <TASK> [ 23.292190] dump_stack_lvl+0x73/0xb0 [ 23.292221] print_report+0xd1/0x610 [ 23.292243] ? __virt_addr_valid+0x1db/0x2d0 [ 23.292311] ? kasan_addr_to_slab+0x11/0xa0 [ 23.292337] ? kfree+0x274/0x3f0 [ 23.292358] kasan_report_invalid_free+0x10a/0x130 [ 23.292394] ? kfree+0x274/0x3f0 [ 23.292416] ? kfree+0x274/0x3f0 [ 23.292436] __kasan_kfree_large+0x86/0xd0 [ 23.292457] free_large_kmalloc+0x52/0x110 [ 23.292480] kfree+0x274/0x3f0 [ 23.292504] kmalloc_large_invalid_free+0x120/0x2b0 [ 23.292527] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 23.292551] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 23.292634] kunit_try_run_case+0x1a5/0x480 [ 23.292658] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.292678] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.292702] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.292724] ? __kthread_parkme+0x82/0x180 [ 23.292757] ? preempt_count_sub+0x50/0x80 [ 23.292781] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.292802] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.292826] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.292851] kthread+0x337/0x6f0 [ 23.292870] ? trace_preempt_on+0x20/0xc0 [ 23.292893] ? __pfx_kthread+0x10/0x10 [ 23.292913] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.292934] ? calculate_sigpending+0x7b/0xa0 [ 23.292958] ? __pfx_kthread+0x10/0x10 [ 23.292979] ret_from_fork+0x116/0x1d0 [ 23.292999] ? __pfx_kthread+0x10/0x10 [ 23.293019] ret_from_fork_asm+0x1a/0x30 [ 23.293049] </TASK> [ 23.293061] [ 23.302013] The buggy address belongs to the physical page: [ 23.302245] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b94 [ 23.302586] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.303105] flags: 0x200000000000040(head|node=0|zone=2) [ 23.303296] page_type: f8(unknown) [ 23.303437] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.303831] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.304431] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.304855] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.305179] head: 0200000000000002 ffffea00040ae501 00000000ffffffff 00000000ffffffff [ 23.305568] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 23.305973] page dumped because: kasan: bad access detected [ 23.306226] [ 23.306406] Memory state around the buggy address: [ 23.306652] ffff888102b93f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.306891] ffff888102b93f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.307225] >ffff888102b94000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.307545] ^ [ 23.307800] ffff888102b94080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.308057] ffff888102b94100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.308587] ==================================================================