Date
July 25, 2025, 3:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.144264] ================================================================== [ 32.144353] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 32.144628] Free of addr fff00000c99a0001 by task kunit_try_catch/182 [ 32.145114] [ 32.145451] CPU: 1 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250725 #1 PREEMPT [ 32.145637] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 32.145702] Hardware name: linux,dummy-virt (DT) [ 32.145794] Call trace: [ 32.145843] show_stack+0x20/0x38 (C) [ 32.145895] dump_stack_lvl+0x8c/0xd0 [ 32.146070] print_report+0x118/0x5e8 [ 32.146161] kasan_report_invalid_free+0xc0/0xe8 [ 32.146226] __kasan_kfree_large+0x5c/0xa8 [ 32.146272] free_large_kmalloc+0x68/0x150 [ 32.146473] kfree+0x270/0x3c8 [ 32.146695] kmalloc_large_invalid_free+0x108/0x270 [ 32.146761] kunit_try_run_case+0x170/0x3f0 [ 32.146868] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.147158] kthread+0x328/0x630 [ 32.147371] ret_from_fork+0x10/0x20 [ 32.147753] [ 32.147961] The buggy address belongs to the physical page: [ 32.148098] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099a0 [ 32.148803] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 32.149001] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 32.149319] page_type: f8(unknown) [ 32.149611] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 32.149712] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 32.149819] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 32.150025] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 32.150132] head: 0bfffe0000000002 ffffc1ffc3266801 00000000ffffffff 00000000ffffffff [ 32.150300] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 32.150348] page dumped because: kasan: bad access detected [ 32.150394] [ 32.150412] Memory state around the buggy address: [ 32.150445] fff00000c999ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.150497] fff00000c999ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.150552] >fff00000c99a0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.150588] ^ [ 32.150626] fff00000c99a0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.150694] fff00000c99a0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.150745] ==================================================================
[ 25.221931] ================================================================== [ 25.222652] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 25.223170] Free of addr ffff888102b40001 by task kunit_try_catch/199 [ 25.223486] [ 25.223595] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) [ 25.223642] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.223655] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.223675] Call Trace: [ 25.223688] <TASK> [ 25.223702] dump_stack_lvl+0x73/0xb0 [ 25.223729] print_report+0xd1/0x640 [ 25.223752] ? __virt_addr_valid+0x1db/0x2d0 [ 25.223779] ? kasan_addr_to_slab+0x11/0xa0 [ 25.223838] ? kfree+0x274/0x3f0 [ 25.223861] kasan_report_invalid_free+0x10a/0x130 [ 25.223886] ? kfree+0x274/0x3f0 [ 25.223910] ? kfree+0x274/0x3f0 [ 25.224001] __kasan_kfree_large+0x86/0xd0 [ 25.224026] free_large_kmalloc+0x52/0x110 [ 25.224060] kfree+0x274/0x3f0 [ 25.224082] ? kmalloc_large_invalid_free+0x8f/0x2b0 [ 25.224108] kmalloc_large_invalid_free+0x120/0x2b0 [ 25.224131] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 25.224176] ? __schedule+0x10da/0x2b60 [ 25.224197] ? __pfx_read_tsc+0x10/0x10 [ 25.224233] ? ktime_get_ts64+0x86/0x230 [ 25.224258] kunit_try_run_case+0x1a5/0x480 [ 25.224283] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.224306] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.224328] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.224354] ? __kthread_parkme+0x82/0x180 [ 25.224375] ? preempt_count_sub+0x50/0x80 [ 25.224398] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.224423] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.224447] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.224471] kthread+0x337/0x6f0 [ 25.224491] ? trace_preempt_on+0x20/0xc0 [ 25.224514] ? __pfx_kthread+0x10/0x10 [ 25.224535] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.224559] ? calculate_sigpending+0x7b/0xa0 [ 25.224583] ? __pfx_kthread+0x10/0x10 [ 25.224605] ret_from_fork+0x116/0x1d0 [ 25.224624] ? __pfx_kthread+0x10/0x10 [ 25.224645] ret_from_fork_asm+0x1a/0x30 [ 25.224677] </TASK> [ 25.224689] [ 25.233403] The buggy address belongs to the physical page: [ 25.233686] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b40 [ 25.234138] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 25.234579] flags: 0x200000000000040(head|node=0|zone=2) [ 25.234920] page_type: f8(unknown) [ 25.235093] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 25.235416] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 25.235818] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 25.236173] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 25.236428] head: 0200000000000002 ffffea00040ad001 00000000ffffffff 00000000ffffffff [ 25.236924] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 25.237446] page dumped because: kasan: bad access detected [ 25.237714] [ 25.237831] Memory state around the buggy address: [ 25.238039] ffff888102b3ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.238298] ffff888102b3ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.238575] >ffff888102b40000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.238786] ^ [ 25.238899] ffff888102b40080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.239344] ffff888102b40100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.239703] ==================================================================