Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.950404] ================================================================== [ 26.950702] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 26.950889] Free of addr fff00000c77a4001 by task kunit_try_catch/152 [ 26.951020] [ 26.951116] CPU: 0 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT [ 26.951351] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.951438] Hardware name: linux,dummy-virt (DT) [ 26.952097] Call trace: [ 26.952185] show_stack+0x20/0x38 (C) [ 26.952353] dump_stack_lvl+0x8c/0xd0 [ 26.952506] print_report+0x118/0x608 [ 26.952641] kasan_report_invalid_free+0xc0/0xe8 [ 26.952780] __kasan_kfree_large+0x5c/0xa8 [ 26.952913] free_large_kmalloc+0x64/0x190 [ 26.953058] kfree+0x270/0x3c8 [ 26.953192] kmalloc_large_invalid_free+0x108/0x270 [ 26.953309] kunit_try_run_case+0x170/0x3f0 [ 26.953699] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.953898] kthread+0x328/0x630 [ 26.954033] ret_from_fork+0x10/0x20 [ 26.954176] [ 26.954595] The buggy address belongs to the physical page: [ 26.954798] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077a4 [ 26.954969] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.955105] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 26.955265] page_type: f8(unknown) [ 26.955390] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.956071] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 26.956192] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.956302] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 26.956429] head: 0bfffe0000000002 ffffc1ffc31de901 00000000ffffffff 00000000ffffffff [ 26.957109] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 26.957275] page dumped because: kasan: bad access detected [ 26.957416] [ 26.957508] Memory state around the buggy address: [ 26.957646] fff00000c77a3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.957824] fff00000c77a3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.957991] >fff00000c77a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.958104] ^ [ 26.958191] fff00000c77a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.958366] fff00000c77a4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.958595] ==================================================================
[ 12.196309] ================================================================== [ 12.196920] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 12.197321] Free of addr ffff888102ab0001 by task kunit_try_catch/169 [ 12.197596] [ 12.197727] CPU: 1 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 12.197777] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.197789] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.197811] Call Trace: [ 12.197823] <TASK> [ 12.197841] dump_stack_lvl+0x73/0xb0 [ 12.197871] print_report+0xd1/0x650 [ 12.197894] ? __virt_addr_valid+0x1db/0x2d0 [ 12.197971] ? kasan_addr_to_slab+0x11/0xa0 [ 12.197991] ? kfree+0x274/0x3f0 [ 12.198010] kasan_report_invalid_free+0x10a/0x130 [ 12.198034] ? kfree+0x274/0x3f0 [ 12.198054] ? kfree+0x274/0x3f0 [ 12.198071] __kasan_kfree_large+0x86/0xd0 [ 12.198092] free_large_kmalloc+0x4b/0x110 [ 12.198112] kfree+0x274/0x3f0 [ 12.198134] kmalloc_large_invalid_free+0x120/0x2b0 [ 12.198156] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 12.198179] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.198203] ? trace_hardirqs_on+0x37/0xe0 [ 12.198227] ? __pfx_read_tsc+0x10/0x10 [ 12.198247] ? ktime_get_ts64+0x86/0x230 [ 12.198272] kunit_try_run_case+0x1a5/0x480 [ 12.198312] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.198335] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.198359] ? __kthread_parkme+0x82/0x180 [ 12.198381] ? preempt_count_sub+0x50/0x80 [ 12.198406] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.198429] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.198450] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.198472] kthread+0x337/0x6f0 [ 12.198488] ? trace_preempt_on+0x20/0xc0 [ 12.198510] ? __pfx_kthread+0x10/0x10 [ 12.198529] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.198559] ? calculate_sigpending+0x7b/0xa0 [ 12.198581] ? __pfx_kthread+0x10/0x10 [ 12.198599] ret_from_fork+0x41/0x80 [ 12.198619] ? __pfx_kthread+0x10/0x10 [ 12.198636] ret_from_fork_asm+0x1a/0x30 [ 12.198672] </TASK> [ 12.198684] [ 12.206225] The buggy address belongs to the physical page: [ 12.206429] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab0 [ 12.207320] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.207674] flags: 0x200000000000040(head|node=0|zone=2) [ 12.207939] page_type: f8(unknown) [ 12.208166] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.208416] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.208761] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.209244] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.209485] head: 0200000000000002 ffffea00040aac01 00000000ffffffff 00000000ffffffff [ 12.210079] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.210402] page dumped because: kasan: bad access detected [ 12.210575] [ 12.210645] Memory state around the buggy address: [ 12.210951] ffff888102aaff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.211283] ffff888102aaff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.211558] >ffff888102ab0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.211862] ^ [ 12.212037] ffff888102ab0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.212301] ffff888102ab0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.212589] ==================================================================