Date
Dec. 4, 2024, 3:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.972417] ================================================================== [ 30.973607] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 30.974272] Free of addr fff00000c5e70001 by task kunit_try_catch/138 [ 30.976151] [ 30.976863] CPU: 0 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 30.979306] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.979983] Hardware name: linux,dummy-virt (DT) [ 30.980581] Call trace: [ 30.980971] show_stack+0x20/0x38 (C) [ 30.981672] dump_stack_lvl+0x8c/0xd0 [ 30.982217] print_report+0x118/0x5e0 [ 30.983155] kasan_report_invalid_free+0xb0/0xd8 [ 30.984648] __kasan_kfree_large+0x5c/0xa8 [ 30.985324] free_large_kmalloc+0x58/0x140 [ 30.986222] kfree+0x270/0x3c8 [ 30.986937] kmalloc_large_invalid_free+0x108/0x270 [ 30.987664] kunit_try_run_case+0x14c/0x3d0 [ 30.988297] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.989152] kthread+0x24c/0x2d0 [ 30.989665] ret_from_fork+0x10/0x20 [ 30.990562] [ 30.991374] The buggy address belongs to the physical page: [ 30.992272] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105e70 [ 30.993179] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.994326] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.995750] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.996792] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.998499] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.999519] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 31.000508] head: 0bfffe0000000002 ffffc1ffc3179c01 ffffffffffffffff 0000000000000000 [ 31.001531] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 31.002790] page dumped because: kasan: bad access detected [ 31.003428] [ 31.003820] Memory state around the buggy address: [ 31.004457] fff00000c5e6ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.005420] fff00000c5e6ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.006849] >fff00000c5e70000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.007771] ^ [ 31.008214] fff00000c5e70080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.009398] fff00000c5e70100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.010475] ==================================================================
[ 21.673548] ================================================================== [ 21.674848] BUG: KASAN: invalid-free in kfree+0x271/0x3f0 [ 21.675889] Free of addr ffff888102b2c001 by task kunit_try_catch/158 [ 21.676341] [ 21.677189] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 21.678487] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.678724] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.680989] Call Trace: [ 21.681838] <TASK> [ 21.682267] dump_stack_lvl+0x73/0xb0 [ 21.683010] print_report+0xd1/0x640 [ 21.683747] ? __virt_addr_valid+0x1db/0x2d0 [ 21.684414] ? kfree+0x271/0x3f0 [ 21.684972] ? kasan_addr_to_slab+0x11/0xa0 [ 21.686069] ? kfree+0x271/0x3f0 [ 21.686349] kasan_report_invalid_free+0xc0/0xf0 [ 21.687200] ? kfree+0x271/0x3f0 [ 21.687654] ? kfree+0x271/0x3f0 [ 21.688045] __kasan_kfree_large+0x86/0xd0 [ 21.689144] free_large_kmalloc+0x3b/0xd0 [ 21.689698] kfree+0x271/0x3f0 [ 21.689983] ? kmalloc_large_invalid_free+0x90/0x2b0 [ 21.691026] kmalloc_large_invalid_free+0x121/0x2b0 [ 21.692014] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 21.692617] ? __schedule+0xc3e/0x2790 [ 21.693073] ? __pfx_read_tsc+0x10/0x10 [ 21.693880] ? ktime_get_ts64+0x86/0x230 [ 21.694811] kunit_try_run_case+0x1b3/0x490 [ 21.695194] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.696227] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 21.696919] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.697696] ? __kthread_parkme+0x82/0x160 [ 21.698139] ? preempt_count_sub+0x50/0x80 [ 21.698751] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.699185] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.700245] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.701024] kthread+0x257/0x310 [ 21.702056] ? __pfx_kthread+0x10/0x10 [ 21.702450] ret_from_fork+0x41/0x80 [ 21.703138] ? __pfx_kthread+0x10/0x10 [ 21.704212] ret_from_fork_asm+0x1a/0x30 [ 21.704952] </TASK> [ 21.705207] [ 21.705881] The buggy address belongs to the physical page: [ 21.706267] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b2c [ 21.707885] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.708870] flags: 0x200000000000040(head|node=0|zone=2) [ 21.710042] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.710811] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.711116] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.712361] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.713607] head: 0200000000000002 ffffea00040acb01 ffffffffffffffff 0000000000000000 [ 21.715193] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 21.716125] page dumped because: kasan: bad access detected [ 21.717810] [ 21.717985] Memory state around the buggy address: [ 21.718690] ffff888102b2bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.719743] ffff888102b2bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.720380] >ffff888102b2c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.721389] ^ [ 21.722524] ffff888102b2c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.723108] ffff888102b2c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.724626] ==================================================================