Date
June 2, 2025, 2:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.224292] ================================================================== [ 19.225100] BUG: KASAN: invalid-free in kfree+0x260/0x3b8 [ 19.226073] Free of addr fff00000c6b40001 by task kunit_try_catch/137 [ 19.226614] [ 19.226951] CPU: 1 UID: 0 PID: 137 Comm: kunit_try_catch Tainted: G B N 6.12.32-rc1 #1 [ 19.227172] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.227249] Hardware name: linux,dummy-virt (DT) [ 19.227333] Call trace: [ 19.227383] dump_backtrace+0x9c/0x128 [ 19.227448] show_stack+0x20/0x38 [ 19.227489] dump_stack_lvl+0x8c/0xd0 [ 19.227565] print_report+0x118/0x5f0 [ 19.227612] kasan_report_invalid_free+0xc0/0xe8 [ 19.227656] __kasan_kfree_large+0x5c/0xa8 [ 19.227697] free_large_kmalloc+0x58/0x140 [ 19.227741] kfree+0x260/0x3b8 [ 19.227780] kmalloc_large_invalid_free+0x114/0x290 [ 19.227827] kunit_try_run_case+0x170/0x3f0 [ 19.227871] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.227918] kthread+0x24c/0x2d0 [ 19.227960] ret_from_fork+0x10/0x20 [ 19.228007] [ 19.234101] The buggy address belongs to the physical page: [ 19.234608] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106b40 [ 19.235187] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.236303] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.236897] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.237643] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 19.238264] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.238993] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 19.239743] head: 0bfffe0000000002 ffffc1ffc31ad001 ffffffffffffffff 0000000000000000 [ 19.240645] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 19.241298] page dumped because: kasan: bad access detected [ 19.241763] [ 19.242059] Memory state around the buggy address: [ 19.242476] fff00000c6b3ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.244144] fff00000c6b3ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.244650] >fff00000c6b40000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.245267] ^ [ 19.245652] fff00000c6b40080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.246389] fff00000c6b40100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.247002] ==================================================================
[ 11.522628] ================================================================== [ 11.523186] BUG: KASAN: invalid-free in kfree+0x271/0x3d0 [ 11.523677] Free of addr ffff888102578001 by task kunit_try_catch/155 [ 11.523917] [ 11.524065] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.12.32-rc1 #1 [ 11.524143] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.524401] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.524447] Call Trace: [ 11.524467] <TASK> [ 11.524496] dump_stack_lvl+0x73/0xb0 [ 11.524554] print_report+0xd1/0x640 [ 11.524590] ? __virt_addr_valid+0x1db/0x2d0 [ 11.524627] ? kasan_addr_to_slab+0x11/0xa0 [ 11.524681] ? kfree+0x271/0x3d0 [ 11.524713] kasan_report_invalid_free+0xfc/0x120 [ 11.524753] ? kfree+0x271/0x3d0 [ 11.524789] ? kfree+0x271/0x3d0 [ 11.524820] __kasan_kfree_large+0x86/0xd0 [ 11.525244] free_large_kmalloc+0x3b/0xd0 [ 11.525313] kfree+0x271/0x3d0 [ 11.525352] kmalloc_large_invalid_free+0x121/0x2b0 [ 11.525393] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.525436] ? __schedule+0xc49/0x27a0 [ 11.525467] ? __pfx_read_tsc+0x10/0x10 [ 11.525489] ? ktime_get_ts64+0x84/0x230 [ 11.525515] kunit_try_run_case+0x1a6/0x480 [ 11.525536] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.525554] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 11.525573] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.525596] ? __kthread_parkme+0x82/0x160 [ 11.525614] ? preempt_count_sub+0x50/0x80 [ 11.525635] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.525666] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.525697] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.525721] kthread+0x257/0x310 [ 11.525738] ? __pfx_kthread+0x10/0x10 [ 11.525755] ret_from_fork+0x41/0x80 [ 11.525774] ? __pfx_kthread+0x10/0x10 [ 11.525791] ret_from_fork_asm+0x1a/0x30 [ 11.525820] </TASK> [ 11.525831] [ 11.534587] The buggy address belongs to the physical page: [ 11.534836] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102578 [ 11.535500] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.535796] flags: 0x200000000000040(head|node=0|zone=2) [ 11.536320] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.536682] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 11.537041] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.537479] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 11.537750] head: 0200000000000002 ffffea0004095e01 ffffffffffffffff 0000000000000000 [ 11.538345] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 11.538851] page dumped because: kasan: bad access detected [ 11.539350] [ 11.539524] Memory state around the buggy address: [ 11.539850] ffff888102577f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.540099] ffff888102577f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.540710] >ffff888102578000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.541128] ^ [ 11.541356] ffff888102578080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.541924] ffff888102578100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.542399] ==================================================================