Date
July 3, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.373781] ================================================================== [ 22.374218] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 22.374741] Free of addr fff00000c795c001 by task kunit_try_catch/243 [ 22.374846] [ 22.374954] CPU: 0 UID: 0 PID: 243 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 22.375203] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.375301] Hardware name: linux,dummy-virt (DT) [ 22.375405] Call trace: [ 22.375459] show_stack+0x20/0x38 (C) [ 22.375573] dump_stack_lvl+0x8c/0xd0 [ 22.375692] print_report+0x118/0x608 [ 22.375800] kasan_report_invalid_free+0xc0/0xe8 [ 22.375909] __kasan_mempool_poison_object+0xfc/0x150 [ 22.376044] mempool_free+0x28c/0x328 [ 22.376134] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 22.376251] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 22.376640] kunit_try_run_case+0x170/0x3f0 [ 22.377140] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.377359] kthread+0x328/0x630 [ 22.377451] ret_from_fork+0x10/0x20 [ 22.377549] [ 22.377594] The buggy address belongs to the physical page: [ 22.377913] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10795c [ 22.377996] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.378112] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 22.378229] page_type: f8(unknown) [ 22.378313] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.378488] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 22.378597] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.378697] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 22.378808] head: 0bfffe0000000002 ffffc1ffc31e5701 00000000ffffffff 00000000ffffffff [ 22.378927] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 22.379035] page dumped because: kasan: bad access detected [ 22.379839] [ 22.379934] Memory state around the buggy address: [ 22.380049] fff00000c795bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.380150] fff00000c795bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.380243] >fff00000c795c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.380475] ^ [ 22.380703] fff00000c795c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.380848] fff00000c795c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.380954] ================================================================== [ 22.355570] ================================================================== [ 22.355696] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 22.355816] Free of addr fff00000c77efe01 by task kunit_try_catch/241 [ 22.355910] [ 22.355984] CPU: 0 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 22.356281] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.356408] Hardware name: linux,dummy-virt (DT) [ 22.356533] Call trace: [ 22.356614] show_stack+0x20/0x38 (C) [ 22.356754] dump_stack_lvl+0x8c/0xd0 [ 22.356880] print_report+0x118/0x608 [ 22.357046] kasan_report_invalid_free+0xc0/0xe8 [ 22.357205] check_slab_allocation+0xfc/0x108 [ 22.357370] __kasan_mempool_poison_object+0x78/0x150 [ 22.357522] mempool_free+0x28c/0x328 [ 22.357653] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 22.357799] mempool_kmalloc_invalid_free+0xc0/0x118 [ 22.357913] kunit_try_run_case+0x170/0x3f0 [ 22.358268] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.358882] kthread+0x328/0x630 [ 22.359097] ret_from_fork+0x10/0x20 [ 22.359242] [ 22.359280] Allocated by task 241: [ 22.359356] kasan_save_stack+0x3c/0x68 [ 22.359437] kasan_save_track+0x20/0x40 [ 22.359508] kasan_save_alloc_info+0x40/0x58 [ 22.359589] __kasan_mempool_unpoison_object+0x11c/0x180 [ 22.359727] remove_element+0x130/0x1f8 [ 22.359809] mempool_alloc_preallocated+0x58/0xc0 [ 22.359900] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 22.360046] mempool_kmalloc_invalid_free+0xc0/0x118 [ 22.360157] kunit_try_run_case+0x170/0x3f0 [ 22.360245] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.360338] kthread+0x328/0x630 [ 22.360418] ret_from_fork+0x10/0x20 [ 22.360595] [ 22.360661] The buggy address belongs to the object at fff00000c77efe00 [ 22.360661] which belongs to the cache kmalloc-128 of size 128 [ 22.360812] The buggy address is located 1 bytes inside of [ 22.360812] 128-byte region [fff00000c77efe00, fff00000c77efe80) [ 22.360971] [ 22.361040] The buggy address belongs to the physical page: [ 22.361100] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077ef [ 22.361211] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.361348] page_type: f5(slab) [ 22.361444] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.361549] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.361705] page dumped because: kasan: bad access detected [ 22.361826] [ 22.361883] Memory state around the buggy address: [ 22.361980] fff00000c77efd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.362095] fff00000c77efd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.362196] >fff00000c77efe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.362284] ^ [ 22.362344] fff00000c77efe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.362439] fff00000c77eff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.362510] ==================================================================
[ 13.310273] ================================================================== [ 13.311442] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.311707] Free of addr ffff888102abc001 by task kunit_try_catch/260 [ 13.311906] [ 13.311996] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.312040] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.312051] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.312073] Call Trace: [ 13.312084] <TASK> [ 13.312100] dump_stack_lvl+0x73/0xb0 [ 13.312150] print_report+0xd1/0x650 [ 13.312173] ? __virt_addr_valid+0x1db/0x2d0 [ 13.312197] ? kasan_addr_to_slab+0x11/0xa0 [ 13.312217] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.312242] kasan_report_invalid_free+0x10a/0x130 [ 13.312266] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.312292] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.312316] __kasan_mempool_poison_object+0x102/0x1d0 [ 13.312340] mempool_free+0x2ec/0x380 [ 13.312362] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.312386] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 13.312413] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.312436] ? finish_task_switch.isra.0+0x153/0x700 [ 13.312460] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 13.312484] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 13.312508] ? __kasan_check_write+0x18/0x20 [ 13.312529] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.312551] ? __pfx_mempool_kfree+0x10/0x10 [ 13.312575] ? __pfx_read_tsc+0x10/0x10 [ 13.312596] ? ktime_get_ts64+0x86/0x230 [ 13.312619] kunit_try_run_case+0x1a5/0x480 [ 13.312643] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.312664] ? _raw_spin_lock_irqsave+0xf9/0x100 [ 13.312687] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.312709] ? __kthread_parkme+0x82/0x180 [ 13.312730] ? preempt_count_sub+0x50/0x80 [ 13.312753] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.312775] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.312797] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.312821] kthread+0x337/0x6f0 [ 13.312839] ? trace_preempt_on+0x20/0xc0 [ 13.312863] ? __pfx_kthread+0x10/0x10 [ 13.312884] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.312904] ? calculate_sigpending+0x7b/0xa0 [ 13.312927] ? __pfx_kthread+0x10/0x10 [ 13.312948] ret_from_fork+0x116/0x1d0 [ 13.312966] ? __pfx_kthread+0x10/0x10 [ 13.312986] ret_from_fork_asm+0x1a/0x30 [ 13.313016] </TASK> [ 13.313028] [ 13.324516] The buggy address belongs to the physical page: [ 13.324772] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102abc [ 13.325020] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.325583] flags: 0x200000000000040(head|node=0|zone=2) [ 13.325847] page_type: f8(unknown) [ 13.326023] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.326463] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.326746] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.327084] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.327472] head: 0200000000000002 ffffea00040aaf01 00000000ffffffff 00000000ffffffff [ 13.327708] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.327990] page dumped because: kasan: bad access detected [ 13.328351] [ 13.328637] Memory state around the buggy address: [ 13.328884] ffff888102abbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.329276] ffff888102abbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.329662] >ffff888102abc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.329914] ^ [ 13.330039] ffff888102abc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.330579] ffff888102abc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.330855] ================================================================== [ 13.274818] ================================================================== [ 13.275810] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.276083] Free of addr ffff88810319aa01 by task kunit_try_catch/258 [ 13.276522] [ 13.276765] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.276814] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.276826] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.276847] Call Trace: [ 13.276859] <TASK> [ 13.276876] dump_stack_lvl+0x73/0xb0 [ 13.276927] print_report+0xd1/0x650 [ 13.276950] ? __virt_addr_valid+0x1db/0x2d0 [ 13.276975] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.276996] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.277021] kasan_report_invalid_free+0x10a/0x130 [ 13.277045] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.277070] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.277094] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.277117] check_slab_allocation+0x11f/0x130 [ 13.277149] __kasan_mempool_poison_object+0x91/0x1d0 [ 13.277173] mempool_free+0x2ec/0x380 [ 13.277196] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.277221] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 13.277245] ? update_load_avg+0x1be/0x21b0 [ 13.277297] ? finish_task_switch.isra.0+0x153/0x700 [ 13.277385] mempool_kmalloc_invalid_free+0xed/0x140 [ 13.277410] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 13.277436] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.277459] ? __pfx_mempool_kfree+0x10/0x10 [ 13.277483] ? __pfx_read_tsc+0x10/0x10 [ 13.277504] ? ktime_get_ts64+0x86/0x230 [ 13.277529] kunit_try_run_case+0x1a5/0x480 [ 13.277555] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.277576] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.277600] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.277622] ? __kthread_parkme+0x82/0x180 [ 13.277644] ? preempt_count_sub+0x50/0x80 [ 13.277666] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.277689] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.277710] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.277733] kthread+0x337/0x6f0 [ 13.277751] ? trace_preempt_on+0x20/0xc0 [ 13.277774] ? __pfx_kthread+0x10/0x10 [ 13.277794] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.277814] ? calculate_sigpending+0x7b/0xa0 [ 13.277839] ? __pfx_kthread+0x10/0x10 [ 13.277859] ret_from_fork+0x116/0x1d0 [ 13.277877] ? __pfx_kthread+0x10/0x10 [ 13.277896] ret_from_fork_asm+0x1a/0x30 [ 13.277928] </TASK> [ 13.277939] [ 13.292339] Allocated by task 258: [ 13.292742] kasan_save_stack+0x45/0x70 [ 13.293094] kasan_save_track+0x18/0x40 [ 13.293272] kasan_save_alloc_info+0x3b/0x50 [ 13.293460] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 13.293635] remove_element+0x11e/0x190 [ 13.293768] mempool_alloc_preallocated+0x4d/0x90 [ 13.293925] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 13.294104] mempool_kmalloc_invalid_free+0xed/0x140 [ 13.294598] kunit_try_run_case+0x1a5/0x480 [ 13.295106] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.295682] kthread+0x337/0x6f0 [ 13.296059] ret_from_fork+0x116/0x1d0 [ 13.296498] ret_from_fork_asm+0x1a/0x30 [ 13.296852] [ 13.297009] The buggy address belongs to the object at ffff88810319aa00 [ 13.297009] which belongs to the cache kmalloc-128 of size 128 [ 13.298247] The buggy address is located 1 bytes inside of [ 13.298247] 128-byte region [ffff88810319aa00, ffff88810319aa80) [ 13.299348] [ 13.299585] The buggy address belongs to the physical page: [ 13.299918] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10319a [ 13.300193] flags: 0x200000000000000(node=0|zone=2) [ 13.300362] page_type: f5(slab) [ 13.300838] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.301590] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.301969] page dumped because: kasan: bad access detected [ 13.302165] [ 13.302319] Memory state around the buggy address: [ 13.302799] ffff88810319a900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.303568] ffff88810319a980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.304299] >ffff88810319aa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.304897] ^ [ 13.305072] ffff88810319aa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.305404] ffff88810319ab00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.306014] ==================================================================