Date
June 17, 2025, 3:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 91.634096] ================================================================== [ 91.635459] BUG: KASAN: invalid-free in kfree+0x12c/0x138 [ 91.636561] Free of addr ffff0000c5fb4001 by task kunit_try_catch/127 [ 91.637550] [ 91.637972] CPU: 0 PID: 127 Comm: kunit_try_catch Tainted: G B N 6.6.94-rc1 #1 [ 91.639663] Hardware name: linux,dummy-virt (DT) [ 91.640519] Call trace: [ 91.641388] dump_backtrace+0x9c/0x128 [ 91.642092] show_stack+0x20/0x38 [ 91.642644] dump_stack_lvl+0x60/0xb0 [ 91.643562] print_report+0xf8/0x5e8 [ 91.644443] kasan_report_invalid_free+0xc0/0xe8 [ 91.645300] __kasan_kfree_large+0x54/0xa0 [ 91.646280] free_large_kmalloc+0x5c/0x100 [ 91.647168] kfree+0x12c/0x138 [ 91.647992] kmalloc_pagealloc_invalid_free+0xa8/0x1a8 [ 91.649164] kunit_try_run_case+0x114/0x298 [ 91.650151] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 91.653686] kthread+0x18c/0x1a8 [ 91.654261] ret_from_fork+0x10/0x20 [ 91.656665] [ 91.657887] The buggy address belongs to the physical page: [ 91.660993] page:000000004081e15d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105fb4 [ 91.662362] head:000000004081e15d order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 91.663520] flags: 0xbfffc0000000040(head|node=0|zone=2|lastcpupid=0xffff) [ 91.664792] page_type: 0xffffffff() [ 91.665711] raw: 0bfffc0000000040 0000000000000000 dead000000000122 0000000000000000 [ 91.666753] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 91.668042] page dumped because: kasan: bad access detected [ 91.669091] [ 91.669504] Memory state around the buggy address: [ 91.670296] ffff0000c5fb3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 91.671855] ffff0000c5fb3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 91.673190] >ffff0000c5fb4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 91.674223] ^ [ 91.674907] ffff0000c5fb4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 91.676680] ffff0000c5fb4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 91.677986] ==================================================================
[ 33.276372] ================================================================== [ 33.277400] BUG: KASAN: invalid-free in kfree+0xfb/0x120 [ 33.278260] Free of addr ffff888102070001 by task kunit_try_catch/142 [ 33.279113] [ 33.279365] CPU: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.6.94-rc1 #1 [ 33.280378] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 33.281042] Call Trace: [ 33.281200] <TASK> [ 33.281347] dump_stack_lvl+0x4e/0x90 [ 33.281956] print_report+0xd2/0x650 [ 33.282482] ? __virt_addr_valid+0x156/0x1e0 [ 33.283037] ? kasan_addr_to_slab+0x11/0xb0 [ 33.283652] ? kfree+0xfb/0x120 [ 33.284215] kasan_report_invalid_free+0xfd/0x120 [ 33.284821] ? kfree+0xfb/0x120 [ 33.285166] ? kfree+0xfb/0x120 [ 33.285636] __kasan_kfree_large+0x86/0xd0 [ 33.286027] free_large_kmalloc+0x46/0xd0 [ 33.286255] kfree+0xfb/0x120 [ 33.286449] kmalloc_pagealloc_invalid_free+0xa9/0x1a0 [ 33.287291] ? __pfx_kmalloc_pagealloc_invalid_free+0x10/0x10 [ 33.287932] ? __schedule+0x715/0x11a0 [ 33.288154] ? ktime_get_ts64+0x118/0x140 [ 33.288398] kunit_try_run_case+0x120/0x290 [ 33.288650] ? __pfx_kunit_try_run_case+0x10/0x10 [ 33.288922] ? __kasan_check_write+0x18/0x20 [ 33.289427] ? trace_preempt_on+0x20/0xa0 [ 33.290062] ? __kthread_parkme+0x4f/0xd0 [ 33.290880] ? preempt_count_sub+0x50/0x80 [ 33.291310] ? __pfx_kunit_try_run_case+0x10/0x10 [ 33.291843] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 33.292519] kunit_generic_run_threadfn_adapter+0x33/0x50 [ 33.292913] kthread+0x19e/0x1e0 [ 33.293356] ? __pfx_kthread+0x10/0x10 [ 33.293849] ret_from_fork+0x41/0x70 [ 33.294272] ? __pfx_kthread+0x10/0x10 [ 33.294822] ret_from_fork_asm+0x1b/0x30 [ 33.295219] </TASK> [ 33.295540] [ 33.295704] The buggy address belongs to the physical page: [ 33.295979] page:(____ptrval____) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102070 [ 33.296466] head:(____ptrval____) order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 33.297395] flags: 0x200000000000040(head|node=0|zone=2) [ 33.298080] page_type: 0xffffffff() [ 33.298476] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 33.299387] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.300339] page dumped because: kasan: bad access detected [ 33.300737] [ 33.300974] Memory state around the buggy address: [ 33.301499] ffff88810206ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.302135] ffff88810206ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.303006] >ffff888102070000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.303857] ^ [ 33.304041] ffff888102070080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.304357] ffff888102070100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.305385] ==================================================================