Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.791818] ================================================================== [ 31.791878] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.791932] Free of addr fff00000c9bd4001 by task kunit_try_catch/274 [ 31.791974] [ 31.792002] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 31.792386] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.792454] Hardware name: linux,dummy-virt (DT) [ 31.792484] Call trace: [ 31.792505] show_stack+0x20/0x38 (C) [ 31.792557] dump_stack_lvl+0x8c/0xd0 [ 31.792604] print_report+0x118/0x5d0 [ 31.792702] kasan_report_invalid_free+0xc0/0xe8 [ 31.792922] __kasan_mempool_poison_object+0xfc/0x150 [ 31.793065] mempool_free+0x28c/0x328 [ 31.793150] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.793453] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 31.793507] kunit_try_run_case+0x170/0x3f0 [ 31.793554] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.793605] kthread+0x328/0x630 [ 31.793709] ret_from_fork+0x10/0x20 [ 31.793759] [ 31.793827] The buggy address belongs to the physical page: [ 31.793897] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109bd4 [ 31.793958] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.794101] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.794181] page_type: f8(unknown) [ 31.794255] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.794369] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.794441] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.794491] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.794542] head: 0bfffe0000000002 ffffc1ffc326f501 00000000ffffffff 00000000ffffffff [ 31.794631] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 31.794675] page dumped because: kasan: bad access detected [ 31.794708] [ 31.794728] Memory state around the buggy address: [ 31.794787] fff00000c9bd3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.794851] fff00000c9bd3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.794913] >fff00000c9bd4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.795011] ^ [ 31.795063] fff00000c9bd4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.795131] fff00000c9bd4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.795230] ================================================================== [ 31.781556] ================================================================== [ 31.781612] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.781666] Free of addr fff00000c98f2901 by task kunit_try_catch/272 [ 31.781705] [ 31.781755] CPU: 0 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 31.781861] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.781889] Hardware name: linux,dummy-virt (DT) [ 31.781925] Call trace: [ 31.781948] show_stack+0x20/0x38 (C) [ 31.782005] dump_stack_lvl+0x8c/0xd0 [ 31.782067] print_report+0x118/0x5d0 [ 31.782113] kasan_report_invalid_free+0xc0/0xe8 [ 31.782171] check_slab_allocation+0xfc/0x108 [ 31.782218] __kasan_mempool_poison_object+0x78/0x150 [ 31.782276] mempool_free+0x28c/0x328 [ 31.782329] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 31.782390] mempool_kmalloc_invalid_free+0xc0/0x118 [ 31.782451] kunit_try_run_case+0x170/0x3f0 [ 31.782499] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.782549] kthread+0x328/0x630 [ 31.782591] ret_from_fork+0x10/0x20 [ 31.782637] [ 31.782664] Allocated by task 272: [ 31.782703] kasan_save_stack+0x3c/0x68 [ 31.782740] kasan_save_track+0x20/0x40 [ 31.782797] kasan_save_alloc_info+0x40/0x58 [ 31.782835] __kasan_mempool_unpoison_object+0x11c/0x180 [ 31.782875] remove_element+0x130/0x1f8 [ 31.782910] mempool_alloc_preallocated+0x58/0xc0 [ 31.782950] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 31.782992] mempool_kmalloc_invalid_free+0xc0/0x118 [ 31.783033] kunit_try_run_case+0x170/0x3f0 [ 31.783078] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.783121] kthread+0x328/0x630 [ 31.783152] ret_from_fork+0x10/0x20 [ 31.783187] [ 31.783206] The buggy address belongs to the object at fff00000c98f2900 [ 31.783206] which belongs to the cache kmalloc-128 of size 128 [ 31.783264] The buggy address is located 1 bytes inside of [ 31.783264] 128-byte region [fff00000c98f2900, fff00000c98f2980) [ 31.783322] [ 31.783342] The buggy address belongs to the physical page: [ 31.783370] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1098f2 [ 31.783420] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.783466] page_type: f5(slab) [ 31.783957] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.784018] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.784121] page dumped because: kasan: bad access detected [ 31.784169] [ 31.784187] Memory state around the buggy address: [ 31.784225] fff00000c98f2800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.784326] fff00000c98f2880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.784368] >fff00000c98f2900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.784440] ^ [ 31.784468] fff00000c98f2980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.784512] fff00000c98f2a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.784552] ==================================================================
[ 27.391726] ================================================================== [ 27.392199] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.392585] Free of addr ffff8881060b0001 by task kunit_try_catch/292 [ 27.392939] [ 27.393049] CPU: 1 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 27.393111] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.393123] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.393144] Call Trace: [ 27.393156] <TASK> [ 27.393172] dump_stack_lvl+0x73/0xb0 [ 27.393225] print_report+0xd1/0x610 [ 27.393246] ? __virt_addr_valid+0x1db/0x2d0 [ 27.393271] ? kasan_addr_to_slab+0x11/0xa0 [ 27.393290] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.393315] kasan_report_invalid_free+0x10a/0x130 [ 27.393339] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.393367] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.393391] __kasan_mempool_poison_object+0x102/0x1d0 [ 27.393424] mempool_free+0x2ec/0x380 [ 27.393449] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.393473] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 27.393498] ? dequeue_entities+0x23f/0x1630 [ 27.393520] ? __kasan_check_write+0x18/0x20 [ 27.393561] ? __pfx_sched_clock_cpu+0x10/0x10 [ 27.393581] ? finish_task_switch.isra.0+0x153/0x700 [ 27.393605] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 27.393629] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 27.393656] ? __pfx_mempool_kmalloc+0x10/0x10 [ 27.393677] ? __pfx_mempool_kfree+0x10/0x10 [ 27.393702] ? __pfx_read_tsc+0x10/0x10 [ 27.393722] ? ktime_get_ts64+0x86/0x230 [ 27.393746] kunit_try_run_case+0x1a5/0x480 [ 27.393769] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.393790] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.393812] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.393835] ? __kthread_parkme+0x82/0x180 [ 27.393877] ? preempt_count_sub+0x50/0x80 [ 27.393899] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.393927] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.393951] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.393974] kthread+0x337/0x6f0 [ 27.393993] ? trace_preempt_on+0x20/0xc0 [ 27.394015] ? __pfx_kthread+0x10/0x10 [ 27.394054] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.394076] ? calculate_sigpending+0x7b/0xa0 [ 27.394108] ? __pfx_kthread+0x10/0x10 [ 27.394129] ret_from_fork+0x116/0x1d0 [ 27.394147] ? __pfx_kthread+0x10/0x10 [ 27.394167] ret_from_fork_asm+0x1a/0x30 [ 27.394198] </TASK> [ 27.394208] [ 27.403410] The buggy address belongs to the physical page: [ 27.403717] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060b0 [ 27.404026] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 27.404257] flags: 0x200000000000040(head|node=0|zone=2) [ 27.404566] page_type: f8(unknown) [ 27.404766] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 27.405153] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 27.405750] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 27.406129] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 27.406585] head: 0200000000000002 ffffea0004182c01 00000000ffffffff 00000000ffffffff [ 27.406803] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 27.407015] page dumped because: kasan: bad access detected [ 27.407342] [ 27.407430] Memory state around the buggy address: [ 27.407757] ffff8881060aff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.408141] ffff8881060aff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.408556] >ffff8881060b0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.408864] ^ [ 27.408972] ffff8881060b0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.409241] ffff8881060b0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.409743] ================================================================== [ 27.365892] ================================================================== [ 27.366441] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.366887] Free of addr ffff88810618b001 by task kunit_try_catch/290 [ 27.367143] [ 27.367280] CPU: 0 UID: 0 PID: 290 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 27.367334] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.367346] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.367367] Call Trace: [ 27.367381] <TASK> [ 27.367400] dump_stack_lvl+0x73/0xb0 [ 27.367432] print_report+0xd1/0x610 [ 27.367454] ? __virt_addr_valid+0x1db/0x2d0 [ 27.367479] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.367504] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.367529] kasan_report_invalid_free+0x10a/0x130 [ 27.367553] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.367579] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.367603] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.367626] check_slab_allocation+0x11f/0x130 [ 27.367647] __kasan_mempool_poison_object+0x91/0x1d0 [ 27.367671] mempool_free+0x2ec/0x380 [ 27.367698] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.367722] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 27.367748] ? dequeue_entities+0x23f/0x1630 [ 27.367773] ? __pfx_sched_clock_cpu+0x10/0x10 [ 27.367795] ? finish_task_switch.isra.0+0x153/0x700 [ 27.367821] mempool_kmalloc_invalid_free+0xed/0x140 [ 27.367844] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 27.367867] ? __kasan_check_write+0x18/0x20 [ 27.367891] ? __pfx_mempool_kmalloc+0x10/0x10 [ 27.367912] ? __pfx_mempool_kfree+0x10/0x10 [ 27.367936] ? __pfx_read_tsc+0x10/0x10 [ 27.367958] ? ktime_get_ts64+0x86/0x230 [ 27.367980] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 27.368006] kunit_try_run_case+0x1a5/0x480 [ 27.368031] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.368054] ? queued_spin_lock_slowpath+0x116/0xb40 [ 27.368090] ? __kthread_parkme+0x82/0x180 [ 27.368115] ? preempt_count_sub+0x50/0x80 [ 27.368137] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.368160] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.368182] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.368205] kthread+0x337/0x6f0 [ 27.368226] ? trace_preempt_on+0x20/0xc0 [ 27.368292] ? __pfx_kthread+0x10/0x10 [ 27.368313] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.368335] ? calculate_sigpending+0x7b/0xa0 [ 27.368359] ? __pfx_kthread+0x10/0x10 [ 27.368379] ret_from_fork+0x116/0x1d0 [ 27.368398] ? __pfx_kthread+0x10/0x10 [ 27.368418] ret_from_fork_asm+0x1a/0x30 [ 27.368451] </TASK> [ 27.368461] [ 27.378045] Allocated by task 290: [ 27.378217] kasan_save_stack+0x45/0x70 [ 27.378522] kasan_save_track+0x18/0x40 [ 27.378656] kasan_save_alloc_info+0x3b/0x50 [ 27.378798] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 27.378964] remove_element+0x11e/0x190 [ 27.379162] mempool_alloc_preallocated+0x4d/0x90 [ 27.379379] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 27.379767] mempool_kmalloc_invalid_free+0xed/0x140 [ 27.380001] kunit_try_run_case+0x1a5/0x480 [ 27.380151] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.380317] kthread+0x337/0x6f0 [ 27.380427] ret_from_fork+0x116/0x1d0 [ 27.380600] ret_from_fork_asm+0x1a/0x30 [ 27.380798] [ 27.380887] The buggy address belongs to the object at ffff88810618b000 [ 27.380887] which belongs to the cache kmalloc-128 of size 128 [ 27.381614] The buggy address is located 1 bytes inside of [ 27.381614] 128-byte region [ffff88810618b000, ffff88810618b080) [ 27.382143] [ 27.382212] The buggy address belongs to the physical page: [ 27.382381] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10618b [ 27.382932] flags: 0x200000000000000(node=0|zone=2) [ 27.383180] page_type: f5(slab) [ 27.383590] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 27.384130] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 27.384723] page dumped because: kasan: bad access detected [ 27.384946] [ 27.385031] Memory state around the buggy address: [ 27.385197] ffff88810618af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.385409] ffff88810618af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.385743] >ffff88810618b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.386058] ^ [ 27.386231] ffff88810618b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.386488] ffff88810618b100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.386790] ==================================================================