Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.152332] ================================================================== [ 17.152726] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 17.152936] Free of addr fff00000c6634001 by task kunit_try_catch/150 [ 17.152985] [ 17.153233] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.153368] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.153421] Hardware name: linux,dummy-virt (DT) [ 17.153472] Call trace: [ 17.153496] show_stack+0x20/0x38 (C) [ 17.153563] dump_stack_lvl+0x8c/0xd0 [ 17.153614] print_report+0x118/0x608 [ 17.153659] kasan_report_invalid_free+0xc0/0xe8 [ 17.153708] __kasan_kfree_large+0x5c/0xa8 [ 17.153754] free_large_kmalloc+0x64/0x190 [ 17.153807] kfree+0x270/0x3c8 [ 17.153848] kmalloc_large_invalid_free+0x108/0x270 [ 17.153895] kunit_try_run_case+0x170/0x3f0 [ 17.153942] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.154003] kthread+0x328/0x630 [ 17.154044] ret_from_fork+0x10/0x20 [ 17.154100] [ 17.154121] The buggy address belongs to the physical page: [ 17.154165] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106634 [ 17.154219] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.154265] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.154326] page_type: f8(unknown) [ 17.154375] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.154713] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.155058] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.155326] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.155399] head: 0bfffe0000000002 ffffc1ffc3198d01 00000000ffffffff 00000000ffffffff [ 17.155462] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.155502] page dumped because: kasan: bad access detected [ 17.155534] [ 17.155552] Memory state around the buggy address: [ 17.155585] fff00000c6633f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.155804] fff00000c6633f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.155926] >fff00000c6634000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.156003] ^ [ 17.156041] fff00000c6634080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.156168] fff00000c6634100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.156291] ==================================================================
[ 11.023199] ================================================================== [ 11.023856] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 11.024174] Free of addr ffff8881029b4001 by task kunit_try_catch/167 [ 11.024632] [ 11.024880] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.024923] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.024936] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.024985] Call Trace: [ 11.024997] <TASK> [ 11.025010] dump_stack_lvl+0x73/0xb0 [ 11.025149] print_report+0xd1/0x650 [ 11.025192] ? __virt_addr_valid+0x1db/0x2d0 [ 11.025216] ? kasan_addr_to_slab+0x11/0xa0 [ 11.025235] ? kfree+0x274/0x3f0 [ 11.025256] kasan_report_invalid_free+0x10a/0x130 [ 11.025279] ? kfree+0x274/0x3f0 [ 11.025302] ? kfree+0x274/0x3f0 [ 11.025322] __kasan_kfree_large+0x86/0xd0 [ 11.025342] free_large_kmalloc+0x4b/0x110 [ 11.025365] kfree+0x274/0x3f0 [ 11.025385] ? kmalloc_large_invalid_free+0x8f/0x2b0 [ 11.025409] kmalloc_large_invalid_free+0x120/0x2b0 [ 11.025429] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.025451] ? __schedule+0x10cc/0x2b60 [ 11.025471] ? __pfx_read_tsc+0x10/0x10 [ 11.025491] ? ktime_get_ts64+0x86/0x230 [ 11.025513] kunit_try_run_case+0x1a5/0x480 [ 11.025536] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.025557] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.025577] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.025598] ? __kthread_parkme+0x82/0x180 [ 11.025617] ? preempt_count_sub+0x50/0x80 [ 11.025639] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.025661] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.025682] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.025703] kthread+0x337/0x6f0 [ 11.025722] ? trace_preempt_on+0x20/0xc0 [ 11.025744] ? __pfx_kthread+0x10/0x10 [ 11.025763] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.025782] ? calculate_sigpending+0x7b/0xa0 [ 11.025805] ? __pfx_kthread+0x10/0x10 [ 11.025825] ret_from_fork+0x116/0x1d0 [ 11.025842] ? __pfx_kthread+0x10/0x10 [ 11.025861] ret_from_fork_asm+0x1a/0x30 [ 11.025890] </TASK> [ 11.025901] [ 11.038774] The buggy address belongs to the physical page: [ 11.038964] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029b4 [ 11.039321] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.039992] flags: 0x200000000000040(head|node=0|zone=2) [ 11.040342] page_type: f8(unknown) [ 11.040513] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.040808] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.041248] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.041603] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.041910] head: 0200000000000002 ffffea00040a6d01 00000000ffffffff 00000000ffffffff [ 11.042422] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.042754] page dumped because: kasan: bad access detected [ 11.043018] [ 11.043129] Memory state around the buggy address: [ 11.043556] ffff8881029b3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.044043] ffff8881029b3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.044461] >ffff8881029b4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.044769] ^ [ 11.044938] ffff8881029b4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.045393] ffff8881029b4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.045643] ==================================================================