Date
June 5, 2025, 7:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.726440] ================================================================== [ 24.726607] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 24.726734] Free of addr fff00000c77d4001 by task kunit_try_catch/150 [ 24.726840] [ 24.726909] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT [ 24.727316] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.727422] Hardware name: linux,dummy-virt (DT) [ 24.727522] Call trace: [ 24.727554] show_stack+0x20/0x38 (C) [ 24.727618] dump_stack_lvl+0x8c/0xd0 [ 24.727680] print_report+0x118/0x608 [ 24.727737] kasan_report_invalid_free+0xc0/0xe8 [ 24.727798] __kasan_kfree_large+0x5c/0xa8 [ 24.728080] free_large_kmalloc+0x64/0x190 [ 24.728224] kfree+0x270/0x3c8 [ 24.728850] kmalloc_large_invalid_free+0x108/0x270 [ 24.729085] kunit_try_run_case+0x170/0x3f0 [ 24.729223] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.729383] kthread+0x328/0x630 [ 24.729488] ret_from_fork+0x10/0x20 [ 24.729600] [ 24.729649] The buggy address belongs to the physical page: [ 24.731118] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d4 [ 24.731890] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.732271] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 24.732432] page_type: f8(unknown) [ 24.732529] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.732706] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 24.733287] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.733590] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 24.733713] head: 0bfffe0000000002 ffffc1ffc31df501 00000000ffffffff 00000000ffffffff [ 24.733836] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.734015] page dumped because: kasan: bad access detected [ 24.734113] [ 24.734272] Memory state around the buggy address: [ 24.734372] fff00000c77d3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.734483] fff00000c77d3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.735407] >fff00000c77d4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.735596] ^ [ 24.735693] fff00000c77d4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.735897] fff00000c77d4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.736012] ==================================================================
[ 10.918654] ================================================================== [ 10.919430] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.920011] Free of addr ffff888102c28001 by task kunit_try_catch/167 [ 10.920683] [ 10.921011] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT(voluntary) [ 10.921062] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.921074] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.921094] Call Trace: [ 10.921106] <TASK> [ 10.921140] dump_stack_lvl+0x73/0xb0 [ 10.921170] print_report+0xd1/0x650 [ 10.921193] ? __virt_addr_valid+0x1db/0x2d0 [ 10.921218] ? kasan_addr_to_slab+0x11/0xa0 [ 10.921238] ? kfree+0x274/0x3f0 [ 10.921259] kasan_report_invalid_free+0x10a/0x130 [ 10.921283] ? kfree+0x274/0x3f0 [ 10.921306] ? kfree+0x274/0x3f0 [ 10.921326] __kasan_kfree_large+0x86/0xd0 [ 10.921348] free_large_kmalloc+0x4b/0x110 [ 10.921370] kfree+0x274/0x3f0 [ 10.921395] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.921417] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.921440] ? __schedule+0x10cc/0x2b60 [ 10.921464] ? __pfx_read_tsc+0x10/0x10 [ 10.921485] ? ktime_get_ts64+0x86/0x230 [ 10.921510] kunit_try_run_case+0x1a5/0x480 [ 10.921531] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.921550] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.921576] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.921601] ? __kthread_parkme+0x82/0x180 [ 10.921622] ? preempt_count_sub+0x50/0x80 [ 10.921659] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.921680] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.921703] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.921728] kthread+0x337/0x6f0 [ 10.921747] ? trace_preempt_on+0x20/0xc0 [ 10.921769] ? __pfx_kthread+0x10/0x10 [ 10.921789] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.921811] ? calculate_sigpending+0x7b/0xa0 [ 10.921835] ? __pfx_kthread+0x10/0x10 [ 10.921856] ret_from_fork+0x116/0x1d0 [ 10.921875] ? __pfx_kthread+0x10/0x10 [ 10.921906] ret_from_fork_asm+0x1a/0x30 [ 10.921937] </TASK> [ 10.921959] [ 10.934104] The buggy address belongs to the physical page: [ 10.934668] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c28 [ 10.935586] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.936228] flags: 0x200000000000040(head|node=0|zone=2) [ 10.936413] page_type: f8(unknown) [ 10.936542] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.937125] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.937807] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.938744] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.939406] head: 0200000000000002 ffffea00040b0a01 00000000ffffffff 00000000ffffffff [ 10.939665] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.940383] page dumped because: kasan: bad access detected [ 10.940880] [ 10.941090] Memory state around the buggy address: [ 10.941515] ffff888102c27f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.941856] ffff888102c27f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.942562] >ffff888102c28000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.943005] ^ [ 10.943321] ffff888102c28080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.943755] ffff888102c28100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.944443] ==================================================================