Date
June 23, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.769187] ================================================================== [ 35.769254] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 35.769320] Free of addr fff00000c76da801 by task kunit_try_catch/253 [ 35.769372] [ 35.769407] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT [ 35.769510] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.769545] Hardware name: linux,dummy-virt (DT) [ 35.769582] Call trace: [ 35.769608] show_stack+0x20/0x38 (C) [ 35.769672] dump_stack_lvl+0x8c/0xd0 [ 35.769727] print_report+0x118/0x608 [ 35.769788] kasan_report_invalid_free+0xc0/0xe8 [ 35.769851] check_slab_allocation+0xfc/0x108 [ 35.769912] __kasan_mempool_poison_object+0x78/0x150 [ 35.769975] mempool_free+0x28c/0x328 [ 35.770184] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 35.770334] mempool_kmalloc_invalid_free+0xc0/0x118 [ 35.770961] kunit_try_run_case+0x170/0x3f0 [ 35.771372] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.771536] kthread+0x328/0x630 [ 35.771736] ret_from_fork+0x10/0x20 [ 35.772106] [ 35.772248] Allocated by task 253: [ 35.772507] kasan_save_stack+0x3c/0x68 [ 35.772608] kasan_save_track+0x20/0x40 [ 35.773015] kasan_save_alloc_info+0x40/0x58 [ 35.773165] __kasan_mempool_unpoison_object+0x11c/0x180 [ 35.773307] remove_element+0x130/0x1f8 [ 35.773502] mempool_alloc_preallocated+0x58/0xc0 [ 35.773614] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 35.773723] mempool_kmalloc_invalid_free+0xc0/0x118 [ 35.774255] kunit_try_run_case+0x170/0x3f0 [ 35.774421] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.774695] kthread+0x328/0x630 [ 35.774847] ret_from_fork+0x10/0x20 [ 35.774960] [ 35.775013] The buggy address belongs to the object at fff00000c76da800 [ 35.775013] which belongs to the cache kmalloc-128 of size 128 [ 35.775170] The buggy address is located 1 bytes inside of [ 35.775170] 128-byte region [fff00000c76da800, fff00000c76da880) [ 35.775361] [ 35.775413] The buggy address belongs to the physical page: [ 35.775576] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076da [ 35.775720] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 35.775897] page_type: f5(slab) [ 35.776099] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 35.776221] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 35.776317] page dumped because: kasan: bad access detected [ 35.776422] [ 35.776533] Memory state around the buggy address: [ 35.776608] fff00000c76da700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.776716] fff00000c76da780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.776848] >fff00000c76da800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.777015] ^ [ 35.777321] fff00000c76da880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.777441] fff00000c76da900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.777549] ================================================================== [ 35.793674] ================================================================== [ 35.793782] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 35.793903] Free of addr fff00000c77b4001 by task kunit_try_catch/255 [ 35.794010] [ 35.794116] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT [ 35.794375] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.794450] Hardware name: linux,dummy-virt (DT) [ 35.794540] Call trace: [ 35.794663] show_stack+0x20/0x38 (C) [ 35.794819] dump_stack_lvl+0x8c/0xd0 [ 35.795045] print_report+0x118/0x608 [ 35.795197] kasan_report_invalid_free+0xc0/0xe8 [ 35.795361] __kasan_mempool_poison_object+0xfc/0x150 [ 35.795524] mempool_free+0x28c/0x328 [ 35.795647] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 35.795769] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 35.795907] kunit_try_run_case+0x170/0x3f0 [ 35.796144] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.796308] kthread+0x328/0x630 [ 35.796422] ret_from_fork+0x10/0x20 [ 35.796548] [ 35.796670] The buggy address belongs to the physical page: [ 35.796975] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077b4 [ 35.797126] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 35.797239] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 35.797371] page_type: f8(unknown) [ 35.797546] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 35.797669] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 35.797786] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 35.797909] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 35.798114] head: 0bfffe0000000002 ffffc1ffc31ded01 00000000ffffffff 00000000ffffffff [ 35.798334] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 35.798431] page dumped because: kasan: bad access detected [ 35.798504] [ 35.798600] Memory state around the buggy address: [ 35.798680] fff00000c77b3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.798837] fff00000c77b3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.799002] >fff00000c77b4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.799149] ^ [ 35.799234] fff00000c77b4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.799479] fff00000c77b4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.799584] ==================================================================
[ 23.619565] ================================================================== [ 23.620189] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.620741] Free of addr ffff888102c14501 by task kunit_try_catch/270 [ 23.620996] [ 23.621467] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 23.621555] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.621579] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.621613] Call Trace: [ 23.621637] <TASK> [ 23.621663] dump_stack_lvl+0x73/0xb0 [ 23.621715] print_report+0xd1/0x650 [ 23.621750] ? __virt_addr_valid+0x1db/0x2d0 [ 23.621786] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.621841] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.621889] kasan_report_invalid_free+0x10a/0x130 [ 23.621932] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.621980] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.622033] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.622077] check_slab_allocation+0x11f/0x130 [ 23.622114] __kasan_mempool_poison_object+0x91/0x1d0 [ 23.622150] mempool_free+0x2ec/0x380 [ 23.622195] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.622241] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 23.622293] ? __pfx_sched_clock_cpu+0x10/0x10 [ 23.622334] ? finish_task_switch.isra.0+0x153/0x700 [ 23.622416] mempool_kmalloc_invalid_free+0xed/0x140 [ 23.622457] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 23.622489] ? __pfx_mempool_kmalloc+0x10/0x10 [ 23.622510] ? __pfx_mempool_kfree+0x10/0x10 [ 23.622535] ? __pfx_read_tsc+0x10/0x10 [ 23.622555] ? ktime_get_ts64+0x86/0x230 [ 23.622577] kunit_try_run_case+0x1a5/0x480 [ 23.622599] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.622619] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.622640] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.622661] ? __kthread_parkme+0x82/0x180 [ 23.622680] ? preempt_count_sub+0x50/0x80 [ 23.622701] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.622722] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.622743] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.622765] kthread+0x337/0x6f0 [ 23.622782] ? trace_preempt_on+0x20/0xc0 [ 23.622803] ? __pfx_kthread+0x10/0x10 [ 23.622822] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.622870] ? calculate_sigpending+0x7b/0xa0 [ 23.622894] ? __pfx_kthread+0x10/0x10 [ 23.622914] ret_from_fork+0x116/0x1d0 [ 23.622931] ? __pfx_kthread+0x10/0x10 [ 23.622950] ret_from_fork_asm+0x1a/0x30 [ 23.622977] </TASK> [ 23.622988] [ 23.634834] Allocated by task 270: [ 23.635036] kasan_save_stack+0x45/0x70 [ 23.635247] kasan_save_track+0x18/0x40 [ 23.635403] kasan_save_alloc_info+0x3b/0x50 [ 23.635695] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 23.636064] remove_element+0x11e/0x190 [ 23.636210] mempool_alloc_preallocated+0x4d/0x90 [ 23.636666] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 23.637214] mempool_kmalloc_invalid_free+0xed/0x140 [ 23.637481] kunit_try_run_case+0x1a5/0x480 [ 23.637662] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.637991] kthread+0x337/0x6f0 [ 23.638145] ret_from_fork+0x116/0x1d0 [ 23.638514] ret_from_fork_asm+0x1a/0x30 [ 23.638802] [ 23.639085] The buggy address belongs to the object at ffff888102c14500 [ 23.639085] which belongs to the cache kmalloc-128 of size 128 [ 23.639564] The buggy address is located 1 bytes inside of [ 23.639564] 128-byte region [ffff888102c14500, ffff888102c14580) [ 23.639951] [ 23.640233] The buggy address belongs to the physical page: [ 23.641053] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c14 [ 23.641493] flags: 0x200000000000000(node=0|zone=2) [ 23.641681] page_type: f5(slab) [ 23.641815] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.642301] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.642734] page dumped because: kasan: bad access detected [ 23.643190] [ 23.643343] Memory state around the buggy address: [ 23.643541] ffff888102c14400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.643757] ffff888102c14480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.644344] >ffff888102c14500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.644814] ^ [ 23.644959] ffff888102c14580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.645168] ffff888102c14600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.645391] ================================================================== [ 23.650024] ================================================================== [ 23.650499] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.651077] Free of addr ffff888103a94001 by task kunit_try_catch/272 [ 23.651314] [ 23.651572] CPU: 0 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 23.651654] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.651677] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.651712] Call Trace: [ 23.651735] <TASK> [ 23.651761] dump_stack_lvl+0x73/0xb0 [ 23.651813] print_report+0xd1/0x650 [ 23.651843] ? __virt_addr_valid+0x1db/0x2d0 [ 23.651884] ? kasan_addr_to_slab+0x11/0xa0 [ 23.651917] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.651961] kasan_report_invalid_free+0x10a/0x130 [ 23.652011] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.652052] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.652088] __kasan_mempool_poison_object+0x102/0x1d0 [ 23.652126] mempool_free+0x2ec/0x380 [ 23.652171] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 23.652214] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 23.652261] ? __kasan_check_write+0x18/0x20 [ 23.652302] ? __pfx_sched_clock_cpu+0x10/0x10 [ 23.652342] ? finish_task_switch.isra.0+0x153/0x700 [ 23.652412] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 23.652458] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 23.652496] ? __pfx_mempool_kmalloc+0x10/0x10 [ 23.652525] ? __pfx_mempool_kfree+0x10/0x10 [ 23.652559] ? __pfx_read_tsc+0x10/0x10 [ 23.652589] ? ktime_get_ts64+0x86/0x230 [ 23.652623] kunit_try_run_case+0x1a5/0x480 [ 23.652663] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.652698] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.652730] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.652761] ? __kthread_parkme+0x82/0x180 [ 23.652789] ? preempt_count_sub+0x50/0x80 [ 23.652823] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.652855] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.652888] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.652926] kthread+0x337/0x6f0 [ 23.652957] ? trace_preempt_on+0x20/0xc0 [ 23.652995] ? __pfx_kthread+0x10/0x10 [ 23.653024] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.653056] ? calculate_sigpending+0x7b/0xa0 [ 23.653093] ? __pfx_kthread+0x10/0x10 [ 23.653123] ret_from_fork+0x116/0x1d0 [ 23.653147] ? __pfx_kthread+0x10/0x10 [ 23.653174] ret_from_fork_asm+0x1a/0x30 [ 23.653215] </TASK> [ 23.653231] [ 23.663682] The buggy address belongs to the physical page: [ 23.664000] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a94 [ 23.664505] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.664851] flags: 0x200000000000040(head|node=0|zone=2) [ 23.665400] page_type: f8(unknown) [ 23.665605] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.665943] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.666191] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.666708] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.667049] head: 0200000000000002 ffffea00040ea501 00000000ffffffff 00000000ffffffff [ 23.667283] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 23.667639] page dumped because: kasan: bad access detected [ 23.667817] [ 23.667898] Memory state around the buggy address: [ 23.668055] ffff888103a93f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.668516] ffff888103a93f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.669219] >ffff888103a94000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.669694] ^ [ 23.669958] ffff888103a94080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.670629] ffff888103a94100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.671222] ==================================================================