Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.841199] ================================================================== [ 20.841323] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.842197] Free of addr fff00000c76c3501 by task kunit_try_catch/242 [ 20.842646] [ 20.842712] CPU: 0 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.843463] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.843544] Hardware name: linux,dummy-virt (DT) [ 20.843625] Call trace: [ 20.843907] show_stack+0x20/0x38 (C) [ 20.843983] dump_stack_lvl+0x8c/0xd0 [ 20.844562] print_report+0x118/0x608 [ 20.844733] kasan_report_invalid_free+0xc0/0xe8 [ 20.844866] check_slab_allocation+0xfc/0x108 [ 20.845072] __kasan_mempool_poison_object+0x78/0x150 [ 20.845474] mempool_free+0x28c/0x328 [ 20.845731] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.845878] mempool_kmalloc_invalid_free+0xc0/0x118 [ 20.846055] kunit_try_run_case+0x170/0x3f0 [ 20.846195] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.846325] kthread+0x328/0x630 [ 20.846595] ret_from_fork+0x10/0x20 [ 20.846910] [ 20.846951] Allocated by task 242: [ 20.847008] kasan_save_stack+0x3c/0x68 [ 20.847214] kasan_save_track+0x20/0x40 [ 20.847474] kasan_save_alloc_info+0x40/0x58 [ 20.847572] __kasan_mempool_unpoison_object+0x11c/0x180 [ 20.847695] remove_element+0x130/0x1f8 [ 20.847736] mempool_alloc_preallocated+0x58/0xc0 [ 20.847786] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 20.847835] mempool_kmalloc_invalid_free+0xc0/0x118 [ 20.847878] kunit_try_run_case+0x170/0x3f0 [ 20.847920] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.848283] kthread+0x328/0x630 [ 20.848669] ret_from_fork+0x10/0x20 [ 20.848779] [ 20.848820] The buggy address belongs to the object at fff00000c76c3500 [ 20.848820] which belongs to the cache kmalloc-128 of size 128 [ 20.849142] The buggy address is located 1 bytes inside of [ 20.849142] 128-byte region [fff00000c76c3500, fff00000c76c3580) [ 20.849516] [ 20.849823] The buggy address belongs to the physical page: [ 20.850373] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076c3 [ 20.850572] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.851005] page_type: f5(slab) [ 20.851221] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.851344] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 20.851392] page dumped because: kasan: bad access detected [ 20.851429] [ 20.851448] Memory state around the buggy address: [ 20.851489] fff00000c76c3400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.851540] fff00000c76c3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.852026] >fff00000c76c3500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.852299] ^ [ 20.852515] fff00000c76c3580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.852656] fff00000c76c3600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.852738] ================================================================== [ 20.869767] ================================================================== [ 20.870652] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.870840] Free of addr fff00000c7850001 by task kunit_try_catch/244 [ 20.870937] [ 20.871043] CPU: 0 UID: 0 PID: 244 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.871173] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.871211] Hardware name: linux,dummy-virt (DT) [ 20.871252] Call trace: [ 20.871278] show_stack+0x20/0x38 (C) [ 20.871571] dump_stack_lvl+0x8c/0xd0 [ 20.871830] print_report+0x118/0x608 [ 20.872166] kasan_report_invalid_free+0xc0/0xe8 [ 20.872496] __kasan_mempool_poison_object+0xfc/0x150 [ 20.872661] mempool_free+0x28c/0x328 [ 20.872821] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.873047] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 20.873534] kunit_try_run_case+0x170/0x3f0 [ 20.873676] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.873793] kthread+0x328/0x630 [ 20.874073] ret_from_fork+0x10/0x20 [ 20.874441] [ 20.874623] The buggy address belongs to the physical page: [ 20.874818] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107850 [ 20.875089] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.875588] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 20.876080] page_type: f8(unknown) [ 20.876303] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.876418] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.876866] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.877259] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.877917] head: 0bfffe0000000002 ffffc1ffc31e1401 00000000ffffffff 00000000ffffffff [ 20.878100] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 20.878527] page dumped because: kasan: bad access detected [ 20.878935] [ 20.878985] Memory state around the buggy address: [ 20.879081] fff00000c784ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.879171] fff00000c784ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.879700] >fff00000c7850000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.879756] ^ [ 20.879792] fff00000c7850080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.879842] fff00000c7850100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.879888] ==================================================================
[ 13.259198] ================================================================== [ 13.259781] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.260159] Free of addr ffff888103aae101 by task kunit_try_catch/258 [ 13.260450] [ 13.260565] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.260610] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.260625] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.260647] Call Trace: [ 13.260660] <TASK> [ 13.260678] dump_stack_lvl+0x73/0xb0 [ 13.260707] print_report+0xd1/0x650 [ 13.260730] ? __virt_addr_valid+0x1db/0x2d0 [ 13.260756] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.260778] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.260804] kasan_report_invalid_free+0x10a/0x130 [ 13.260828] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.260855] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.260878] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.260903] check_slab_allocation+0x11f/0x130 [ 13.260924] __kasan_mempool_poison_object+0x91/0x1d0 [ 13.260948] mempool_free+0x2ec/0x380 [ 13.260973] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.260999] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 13.261026] ? ret_from_fork+0x116/0x1d0 [ 13.261045] ? kthread+0x337/0x6f0 [ 13.261066] ? ret_from_fork_asm+0x1a/0x30 [ 13.261093] mempool_kmalloc_invalid_free+0xed/0x140 [ 13.261116] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 13.261143] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.261167] ? __pfx_mempool_kfree+0x10/0x10 [ 13.261192] ? __pfx_read_tsc+0x10/0x10 [ 13.261213] ? ktime_get_ts64+0x86/0x230 [ 13.261237] kunit_try_run_case+0x1a5/0x480 [ 13.261262] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.261284] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.261309] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.261332] ? __kthread_parkme+0x82/0x180 [ 13.261353] ? preempt_count_sub+0x50/0x80 [ 13.261387] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.261412] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.261435] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.261459] kthread+0x337/0x6f0 [ 13.261479] ? trace_preempt_on+0x20/0xc0 [ 13.261505] ? __pfx_kthread+0x10/0x10 [ 13.261526] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.261547] ? calculate_sigpending+0x7b/0xa0 [ 13.261571] ? __pfx_kthread+0x10/0x10 [ 13.261592] ret_from_fork+0x116/0x1d0 [ 13.261611] ? __pfx_kthread+0x10/0x10 [ 13.261631] ret_from_fork_asm+0x1a/0x30 [ 13.261661] </TASK> [ 13.261673] [ 13.271210] Allocated by task 258: [ 13.271349] kasan_save_stack+0x45/0x70 [ 13.271511] kasan_save_track+0x18/0x40 [ 13.271667] kasan_save_alloc_info+0x3b/0x50 [ 13.271876] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 13.272268] remove_element+0x11e/0x190 [ 13.272496] mempool_alloc_preallocated+0x4d/0x90 [ 13.272679] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 13.272936] mempool_kmalloc_invalid_free+0xed/0x140 [ 13.273152] kunit_try_run_case+0x1a5/0x480 [ 13.273298] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.273537] kthread+0x337/0x6f0 [ 13.273713] ret_from_fork+0x116/0x1d0 [ 13.273916] ret_from_fork_asm+0x1a/0x30 [ 13.274155] [ 13.274247] The buggy address belongs to the object at ffff888103aae100 [ 13.274247] which belongs to the cache kmalloc-128 of size 128 [ 13.274758] The buggy address is located 1 bytes inside of [ 13.274758] 128-byte region [ffff888103aae100, ffff888103aae180) [ 13.275275] [ 13.275383] The buggy address belongs to the physical page: [ 13.275641] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aae [ 13.276188] flags: 0x200000000000000(node=0|zone=2) [ 13.276414] page_type: f5(slab) [ 13.276545] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.276940] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.277167] page dumped because: kasan: bad access detected [ 13.277338] [ 13.277447] Memory state around the buggy address: [ 13.277987] ffff888103aae000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.278322] ffff888103aae080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.278747] >ffff888103aae100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.279180] ^ [ 13.279320] ffff888103aae180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.279610] ffff888103aae200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.279901] ================================================================== [ 13.283876] ================================================================== [ 13.284337] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.284820] Free of addr ffff888103980001 by task kunit_try_catch/260 [ 13.285119] [ 13.285223] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.285271] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.285284] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.285306] Call Trace: [ 13.285318] <TASK> [ 13.285338] dump_stack_lvl+0x73/0xb0 [ 13.285368] print_report+0xd1/0x650 [ 13.285404] ? __virt_addr_valid+0x1db/0x2d0 [ 13.285430] ? kasan_addr_to_slab+0x11/0xa0 [ 13.285450] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.285475] kasan_report_invalid_free+0x10a/0x130 [ 13.285499] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.285526] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.285549] __kasan_mempool_poison_object+0x102/0x1d0 [ 13.285584] mempool_free+0x2ec/0x380 [ 13.285607] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.285643] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 13.285667] ? update_load_avg+0x1be/0x21b0 [ 13.285697] ? finish_task_switch.isra.0+0x153/0x700 [ 13.285723] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 13.285747] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 13.285774] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.285797] ? __pfx_mempool_kfree+0x10/0x10 [ 13.285821] ? __pfx_read_tsc+0x10/0x10 [ 13.285844] ? ktime_get_ts64+0x86/0x230 [ 13.285869] kunit_try_run_case+0x1a5/0x480 [ 13.285896] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.285918] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.285943] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.285966] ? __kthread_parkme+0x82/0x180 [ 13.285988] ? preempt_count_sub+0x50/0x80 [ 13.286010] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.286034] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.286056] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.286079] kthread+0x337/0x6f0 [ 13.286098] ? trace_preempt_on+0x20/0xc0 [ 13.286123] ? __pfx_kthread+0x10/0x10 [ 13.286142] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.286162] ? calculate_sigpending+0x7b/0xa0 [ 13.286187] ? __pfx_kthread+0x10/0x10 [ 13.286207] ret_from_fork+0x116/0x1d0 [ 13.286224] ? __pfx_kthread+0x10/0x10 [ 13.286244] ret_from_fork_asm+0x1a/0x30 [ 13.286275] </TASK> [ 13.286287] [ 13.295286] The buggy address belongs to the physical page: [ 13.295588] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103980 [ 13.295957] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.296299] flags: 0x200000000000040(head|node=0|zone=2) [ 13.296695] page_type: f8(unknown) [ 13.296858] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.297445] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.297819] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.298212] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.298541] head: 0200000000000002 ffffea00040e6001 00000000ffffffff 00000000ffffffff [ 13.298840] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.299071] page dumped because: kasan: bad access detected [ 13.299287] [ 13.299391] Memory state around the buggy address: [ 13.299798] ffff88810397ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.300081] ffff88810397ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.300297] >ffff888103980000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.300526] ^ [ 13.300846] ffff888103980080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.301711] ffff888103980100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.302124] ==================================================================