Date
June 3, 2025, 7:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
x86 |
[ 18.147492] ================================================================== [ 18.147601] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 18.147975] Free of addr fff00000c6478001 by task kunit_try_catch/150 [ 18.148083] [ 18.148128] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT [ 18.148403] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.148588] Hardware name: linux,dummy-virt (DT) [ 18.148669] Call trace: [ 18.148713] show_stack+0x20/0x38 (C) [ 18.148776] dump_stack_lvl+0x8c/0xd0 [ 18.148852] print_report+0x118/0x608 [ 18.148918] kasan_report_invalid_free+0xc0/0xe8 [ 18.148967] __kasan_kfree_large+0x5c/0xa8 [ 18.149028] free_large_kmalloc+0x64/0x190 [ 18.149081] kfree+0x270/0x3c8 [ 18.149122] kmalloc_large_invalid_free+0x108/0x270 [ 18.149179] kunit_try_run_case+0x170/0x3f0 [ 18.149246] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.149297] kthread+0x328/0x630 [ 18.149349] ret_from_fork+0x10/0x20 [ 18.149415] [ 18.149446] The buggy address belongs to the physical page: [ 18.149818] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106478 [ 18.149913] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.150057] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.150218] page_type: f8(unknown) [ 18.150402] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.150587] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.150679] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.150773] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.150821] head: 0bfffe0000000002 ffffc1ffc3191e01 00000000ffffffff 00000000ffffffff [ 18.151017] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.151225] page dumped because: kasan: bad access detected [ 18.151314] [ 18.151445] Memory state around the buggy address: [ 18.151481] fff00000c6477f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.151542] fff00000c6477f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.151697] >fff00000c6478000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.151736] ^ [ 18.151765] fff00000c6478080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.151805] fff00000c6478100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.151920] ==================================================================
[ 13.754157] ================================================================== [ 13.754837] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 13.756035] Free of addr ffff888103948001 by task kunit_try_catch/167 [ 13.756325] [ 13.756471] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 13.756562] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.756585] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.756617] Call Trace: [ 13.756635] <TASK> [ 13.756661] dump_stack_lvl+0x73/0xb0 [ 13.756702] print_report+0xd1/0x650 [ 13.756729] ? __virt_addr_valid+0x1db/0x2d0 [ 13.756757] ? kasan_addr_to_slab+0x11/0xa0 [ 13.756779] ? kfree+0x274/0x3f0 [ 13.756898] kasan_report_invalid_free+0x10a/0x130 [ 13.756959] ? kfree+0x274/0x3f0 [ 13.757003] ? kfree+0x274/0x3f0 [ 13.757036] __kasan_kfree_large+0x86/0xd0 [ 13.757078] free_large_kmalloc+0x4b/0x110 [ 13.757130] kfree+0x274/0x3f0 [ 13.757176] kmalloc_large_invalid_free+0x120/0x2b0 [ 13.757239] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 13.757295] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 13.757356] kunit_try_run_case+0x1a5/0x480 [ 13.757406] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.757441] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.757531] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.757584] ? __kthread_parkme+0x82/0x180 [ 13.757633] ? preempt_count_sub+0x50/0x80 [ 13.757697] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.757747] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.757803] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.757855] kthread+0x337/0x6f0 [ 13.757901] ? trace_preempt_on+0x20/0xc0 [ 13.757957] ? __pfx_kthread+0x10/0x10 [ 13.757997] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.758037] ? calculate_sigpending+0x7b/0xa0 [ 13.758108] ? __pfx_kthread+0x10/0x10 [ 13.758148] ret_from_fork+0x116/0x1d0 [ 13.758186] ? __pfx_kthread+0x10/0x10 [ 13.758256] ret_from_fork_asm+0x1a/0x30 [ 13.758297] </TASK> [ 13.758311] [ 13.770631] The buggy address belongs to the physical page: [ 13.771054] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103948 [ 13.771418] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.771712] flags: 0x200000000000040(head|node=0|zone=2) [ 13.772119] page_type: f8(unknown) [ 13.772441] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.773143] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.773883] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.774699] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.775004] head: 0200000000000002 ffffea00040e5201 00000000ffffffff 00000000ffffffff [ 13.775354] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.775991] page dumped because: kasan: bad access detected [ 13.776426] [ 13.776657] Memory state around the buggy address: [ 13.777070] ffff888103947f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.777484] ffff888103947f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.777766] >ffff888103948000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.778297] ^ [ 13.778657] ffff888103948080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.779122] ffff888103948100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.779524] ==================================================================
[ 20.122067] ================================================================== [ 20.133038] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 20.138438] Free of addr ffff8881069c0001 by task kunit_try_catch/190 [ 20.144876] [ 20.146396] CPU: 3 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G S B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 20.146405] Tainted: [S]=CPU_OUT_OF_SPEC, [B]=BAD_PAGE, [N]=TEST [ 20.146408] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021 [ 20.146412] Call Trace: [ 20.146414] <TASK> [ 20.146416] dump_stack_lvl+0x73/0xb0 [ 20.146432] print_report+0xd1/0x650 [ 20.146436] ? __virt_addr_valid+0x1db/0x2d0 [ 20.146441] ? kasan_addr_to_slab+0x11/0xa0 [ 20.146444] ? kfree+0x274/0x3f0 [ 20.146447] kasan_report_invalid_free+0x10a/0x130 [ 20.146452] ? kfree+0x274/0x3f0 [ 20.146455] ? kfree+0x274/0x3f0 [ 20.146458] __kasan_kfree_large+0x86/0xd0 [ 20.146462] free_large_kmalloc+0x4b/0x110 [ 20.146467] kfree+0x274/0x3f0 [ 20.146470] kmalloc_large_invalid_free+0x120/0x2b0 [ 20.146475] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 20.146479] ? __schedule+0x10cc/0x2b60 [ 20.146484] ? ktime_get_ts64+0x83/0x230 [ 20.146488] kunit_try_run_case+0x1a2/0x480 [ 20.146492] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.146495] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 20.146500] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.146504] ? __kthread_parkme+0x82/0x180 [ 20.146508] ? preempt_count_sub+0x50/0x80 [ 20.146512] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.146515] kunit_generic_run_threadfn_adapter+0x82/0xf0 [ 20.146520] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.146524] kthread+0x334/0x6f0 [ 20.146528] ? trace_preempt_on+0x20/0xc0 [ 20.146532] ? __pfx_kthread+0x10/0x10 [ 20.146536] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.146540] ? calculate_sigpending+0x7b/0xa0 [ 20.146544] ? __pfx_kthread+0x10/0x10 [ 20.146548] ret_from_fork+0x113/0x1d0 [ 20.146551] ? __pfx_kthread+0x10/0x10 [ 20.146555] ret_from_fork_asm+0x1a/0x30 [ 20.146561] </TASK> [ 20.146562] [ 20.317064] The buggy address belongs to the physical page: [ 20.322635] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1069c0 [ 20.330636] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.338298] flags: 0x200000000000040(head|node=0|zone=2) [ 20.343619] page_type: f8(unknown) [ 20.347026] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.354772] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.362510] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.370336] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.378198] head: 0200000000000002 ffffea00041a7001 00000000ffffffff 00000000ffffffff [ 20.386023] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 20.393849] page dumped because: kasan: bad access detected [ 20.399445] [ 20.400936] Memory state around the buggy address: [ 20.405729] ffff8881069bff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.412949] ffff8881069bff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.420169] >ffff8881069c0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.427388] ^ [ 20.430663] ffff8881069c0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.437883] ffff8881069c0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.445102] ==================================================================