Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.673442] ================================================================== [ 31.673779] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.673862] Free of addr fff00000c9b8c001 by task kunit_try_catch/274 [ 31.673908] [ 31.673949] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 31.674037] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.674065] Hardware name: linux,dummy-virt (DT) [ 31.674193] Call trace: [ 31.674219] show_stack+0x20/0x38 (C) [ 31.674299] dump_stack_lvl+0x8c/0xd0 [ 31.674462] print_report+0x118/0x5d0 [ 31.674508] kasan_report_invalid_free+0xc0/0xe8 [ 31.674583] __kasan_mempool_poison_object+0xfc/0x150 [ 31.674859] mempool_free+0x28c/0x328 [ 31.674942] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.675013] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 31.675173] kunit_try_run_case+0x170/0x3f0 [ 31.675271] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.675463] kthread+0x328/0x630 [ 31.675630] ret_from_fork+0x10/0x20 [ 31.675720] [ 31.675740] The buggy address belongs to the physical page: [ 31.675780] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b8c [ 31.675834] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.676488] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.676704] page_type: f8(unknown) [ 31.676829] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.676886] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.677078] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.677260] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.677339] head: 0bfffe0000000002 ffffc1ffc326e301 00000000ffffffff 00000000ffffffff [ 31.677471] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 31.677561] page dumped because: kasan: bad access detected [ 31.677671] [ 31.677732] Memory state around the buggy address: [ 31.677790] fff00000c9b8bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.677889] fff00000c9b8bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.677935] >fff00000c9b8c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.678155] ^ [ 31.678279] fff00000c9b8c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.678399] fff00000c9b8c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.678491] ================================================================== [ 31.661570] ================================================================== [ 31.661628] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.661680] Free of addr fff00000c9bc2401 by task kunit_try_catch/272 [ 31.661939] [ 31.661980] CPU: 0 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 31.662264] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.662293] Hardware name: linux,dummy-virt (DT) [ 31.662341] Call trace: [ 31.662436] show_stack+0x20/0x38 (C) [ 31.662490] dump_stack_lvl+0x8c/0xd0 [ 31.662535] print_report+0x118/0x5d0 [ 31.662633] kasan_report_invalid_free+0xc0/0xe8 [ 31.662681] check_slab_allocation+0xfc/0x108 [ 31.662880] __kasan_mempool_poison_object+0x78/0x150 [ 31.662943] mempool_free+0x28c/0x328 [ 31.663042] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.663099] mempool_kmalloc_invalid_free+0xc0/0x118 [ 31.663497] kunit_try_run_case+0x170/0x3f0 [ 31.663587] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.663686] kthread+0x328/0x630 [ 31.663830] ret_from_fork+0x10/0x20 [ 31.663918] [ 31.664051] Allocated by task 272: [ 31.664083] kasan_save_stack+0x3c/0x68 [ 31.664502] kasan_save_track+0x20/0x40 [ 31.664583] kasan_save_alloc_info+0x40/0x58 [ 31.664647] __kasan_mempool_unpoison_object+0x11c/0x180 [ 31.664806] remove_element+0x130/0x1f8 [ 31.664894] mempool_alloc_preallocated+0x58/0xc0 [ 31.665055] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 31.665197] mempool_kmalloc_invalid_free+0xc0/0x118 [ 31.665289] kunit_try_run_case+0x170/0x3f0 [ 31.665330] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.665666] kthread+0x328/0x630 [ 31.665740] ret_from_fork+0x10/0x20 [ 31.665818] [ 31.665872] The buggy address belongs to the object at fff00000c9bc2400 [ 31.665872] which belongs to the cache kmalloc-128 of size 128 [ 31.665979] The buggy address is located 1 bytes inside of [ 31.665979] 128-byte region [fff00000c9bc2400, fff00000c9bc2480) [ 31.666108] [ 31.666158] The buggy address belongs to the physical page: [ 31.666229] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109bc2 [ 31.666432] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.666526] page_type: f5(slab) [ 31.666588] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.666728] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.666793] page dumped because: kasan: bad access detected [ 31.666979] [ 31.667002] Memory state around the buggy address: [ 31.667037] fff00000c9bc2300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.667083] fff00000c9bc2380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.667197] >fff00000c9bc2400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.667263] ^ [ 31.667328] fff00000c9bc2480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.667429] fff00000c9bc2500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.667554] ==================================================================
[ 26.867530] ================================================================== [ 26.868505] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.869349] Free of addr ffff8881060c3801 by task kunit_try_catch/289 [ 26.869740] [ 26.869983] CPU: 1 UID: 0 PID: 289 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 26.870057] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.870071] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.870095] Call Trace: [ 26.870109] <TASK> [ 26.870129] dump_stack_lvl+0x73/0xb0 [ 26.870164] print_report+0xd1/0x610 [ 26.870188] ? __virt_addr_valid+0x1db/0x2d0 [ 26.870215] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.870242] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.870268] kasan_report_invalid_free+0x10a/0x130 [ 26.870292] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.870319] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.870344] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.870368] check_slab_allocation+0x11f/0x130 [ 26.870389] __kasan_mempool_poison_object+0x91/0x1d0 [ 26.870413] mempool_free+0x2ec/0x380 [ 26.870441] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.870467] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 26.870511] ? __pfx_sched_clock_cpu+0x10/0x10 [ 26.870535] ? finish_task_switch.isra.0+0x153/0x700 [ 26.870562] mempool_kmalloc_invalid_free+0xed/0x140 [ 26.870586] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 26.870613] ? __pfx_mempool_kmalloc+0x10/0x10 [ 26.870636] ? __pfx_mempool_kfree+0x10/0x10 [ 26.870660] ? __pfx_read_tsc+0x10/0x10 [ 26.870683] ? ktime_get_ts64+0x86/0x230 [ 26.870721] kunit_try_run_case+0x1a5/0x480 [ 26.870745] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.870765] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.870854] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.870878] ? __kthread_parkme+0x82/0x180 [ 26.870900] ? preempt_count_sub+0x50/0x80 [ 26.870923] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.870945] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.870971] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.870996] kthread+0x337/0x6f0 [ 26.871015] ? trace_preempt_on+0x20/0xc0 [ 26.871040] ? __pfx_kthread+0x10/0x10 [ 26.871060] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.871081] ? calculate_sigpending+0x7b/0xa0 [ 26.871106] ? __pfx_kthread+0x10/0x10 [ 26.871127] ret_from_fork+0x116/0x1d0 [ 26.871147] ? __pfx_kthread+0x10/0x10 [ 26.871167] ret_from_fork_asm+0x1a/0x30 [ 26.871199] </TASK> [ 26.871211] [ 26.884125] Allocated by task 289: [ 26.884665] kasan_save_stack+0x45/0x70 [ 26.885013] kasan_save_track+0x18/0x40 [ 26.885233] kasan_save_alloc_info+0x3b/0x50 [ 26.885593] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 26.885979] remove_element+0x11e/0x190 [ 26.886268] mempool_alloc_preallocated+0x4d/0x90 [ 26.886574] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 26.886867] mempool_kmalloc_invalid_free+0xed/0x140 [ 26.887193] kunit_try_run_case+0x1a5/0x480 [ 26.887391] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.888042] kthread+0x337/0x6f0 [ 26.888256] ret_from_fork+0x116/0x1d0 [ 26.888592] ret_from_fork_asm+0x1a/0x30 [ 26.888886] [ 26.888999] The buggy address belongs to the object at ffff8881060c3800 [ 26.888999] which belongs to the cache kmalloc-128 of size 128 [ 26.889829] The buggy address is located 1 bytes inside of [ 26.889829] 128-byte region [ffff8881060c3800, ffff8881060c3880) [ 26.890477] [ 26.890579] The buggy address belongs to the physical page: [ 26.891058] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060c3 [ 26.891421] flags: 0x200000000000000(node=0|zone=2) [ 26.892074] page_type: f5(slab) [ 26.892253] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.892696] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.893202] page dumped because: kasan: bad access detected [ 26.893666] [ 26.893776] Memory state around the buggy address: [ 26.894245] ffff8881060c3700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.894726] ffff8881060c3780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.895198] >ffff8881060c3800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.895579] ^ [ 26.895863] ffff8881060c3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.896357] ffff8881060c3900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.896694] ================================================================== [ 26.899906] ================================================================== [ 26.900337] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.901103] Free of addr ffff8881060f4001 by task kunit_try_catch/291 [ 26.901415] [ 26.901720] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 26.901830] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.901846] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.901870] Call Trace: [ 26.901884] <TASK> [ 26.901904] dump_stack_lvl+0x73/0xb0 [ 26.901946] print_report+0xd1/0x610 [ 26.901970] ? __virt_addr_valid+0x1db/0x2d0 [ 26.901997] ? kasan_addr_to_slab+0x11/0xa0 [ 26.902018] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.902044] kasan_report_invalid_free+0x10a/0x130 [ 26.902068] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.902096] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.902120] __kasan_mempool_poison_object+0x102/0x1d0 [ 26.902145] mempool_free+0x2ec/0x380 [ 26.902172] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 26.902198] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 26.902228] ? __pfx_sched_clock_cpu+0x10/0x10 [ 26.902254] ? finish_task_switch.isra.0+0x153/0x700 [ 26.902281] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 26.902306] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 26.902334] ? __pfx_mempool_kmalloc+0x10/0x10 [ 26.902357] ? __pfx_mempool_kfree+0x10/0x10 [ 26.902382] ? __pfx_read_tsc+0x10/0x10 [ 26.902406] ? ktime_get_ts64+0x86/0x230 [ 26.902432] kunit_try_run_case+0x1a5/0x480 [ 26.902461] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.902481] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.902514] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.902537] ? __kthread_parkme+0x82/0x180 [ 26.902559] ? preempt_count_sub+0x50/0x80 [ 26.902581] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.902603] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.902629] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.902655] kthread+0x337/0x6f0 [ 26.902675] ? trace_preempt_on+0x20/0xc0 [ 26.902710] ? __pfx_kthread+0x10/0x10 [ 26.902733] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.902754] ? calculate_sigpending+0x7b/0xa0 [ 26.902790] ? __pfx_kthread+0x10/0x10 [ 26.902813] ret_from_fork+0x116/0x1d0 [ 26.902832] ? __pfx_kthread+0x10/0x10 [ 26.902853] ret_from_fork_asm+0x1a/0x30 [ 26.902884] </TASK> [ 26.902897] [ 26.915268] The buggy address belongs to the physical page: [ 26.915646] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060f4 [ 26.916616] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.917339] flags: 0x200000000000040(head|node=0|zone=2) [ 26.917907] page_type: f8(unknown) [ 26.918151] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.918623] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 26.919017] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.919332] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 26.920128] head: 0200000000000002 ffffea0004183d01 00000000ffffffff 00000000ffffffff [ 26.920545] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 26.921215] page dumped because: kasan: bad access detected [ 26.921462] [ 26.921561] Memory state around the buggy address: [ 26.922069] ffff8881060f3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.922368] ffff8881060f3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.923158] >ffff8881060f4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.923478] ^ [ 26.923951] ffff8881060f4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.924265] ffff8881060f4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.924807] ==================================================================