Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.198073] ================================================================== [ 20.198146] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.198210] Free of addr fff00000c76c4d01 by task kunit_try_catch/241 [ 20.198306] [ 20.198341] CPU: 1 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.198421] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.198448] Hardware name: linux,dummy-virt (DT) [ 20.198486] Call trace: [ 20.198569] show_stack+0x20/0x38 (C) [ 20.198620] dump_stack_lvl+0x8c/0xd0 [ 20.198687] print_report+0x118/0x608 [ 20.198850] kasan_report_invalid_free+0xc0/0xe8 [ 20.198932] check_slab_allocation+0xfc/0x108 [ 20.199235] __kasan_mempool_poison_object+0x78/0x150 [ 20.199370] mempool_free+0x28c/0x328 [ 20.199548] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.199739] mempool_kmalloc_invalid_free+0xc0/0x118 [ 20.199887] kunit_try_run_case+0x170/0x3f0 [ 20.199966] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.200019] kthread+0x328/0x630 [ 20.200214] ret_from_fork+0x10/0x20 [ 20.200266] [ 20.200297] Allocated by task 241: [ 20.200329] kasan_save_stack+0x3c/0x68 [ 20.200591] kasan_save_track+0x20/0x40 [ 20.200691] kasan_save_alloc_info+0x40/0x58 [ 20.200812] __kasan_mempool_unpoison_object+0x11c/0x180 [ 20.200897] remove_element+0x130/0x1f8 [ 20.200994] mempool_alloc_preallocated+0x58/0xc0 [ 20.201083] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 20.201185] mempool_kmalloc_invalid_free+0xc0/0x118 [ 20.201313] kunit_try_run_case+0x170/0x3f0 [ 20.201410] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.201555] kthread+0x328/0x630 [ 20.201610] ret_from_fork+0x10/0x20 [ 20.201645] [ 20.201835] The buggy address belongs to the object at fff00000c76c4d00 [ 20.201835] which belongs to the cache kmalloc-128 of size 128 [ 20.202026] The buggy address is located 1 bytes inside of [ 20.202026] 128-byte region [fff00000c76c4d00, fff00000c76c4d80) [ 20.202217] [ 20.202347] The buggy address belongs to the physical page: [ 20.202474] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076c4 [ 20.202557] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.202727] page_type: f5(slab) [ 20.202813] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.202878] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 20.202918] page dumped because: kasan: bad access detected [ 20.202948] [ 20.202966] Memory state around the buggy address: [ 20.202997] fff00000c76c4c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.203041] fff00000c76c4c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.203366] >fff00000c76c4d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.203456] ^ [ 20.203615] fff00000c76c4d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.203725] fff00000c76c4e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.203866] ================================================================== [ 20.212329] ================================================================== [ 20.212427] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.212487] Free of addr fff00000c7830001 by task kunit_try_catch/243 [ 20.212625] [ 20.212681] CPU: 1 UID: 0 PID: 243 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.212768] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.212878] Hardware name: linux,dummy-virt (DT) [ 20.212912] Call trace: [ 20.212935] show_stack+0x20/0x38 (C) [ 20.212985] dump_stack_lvl+0x8c/0xd0 [ 20.213033] print_report+0x118/0x608 [ 20.213194] kasan_report_invalid_free+0xc0/0xe8 [ 20.213374] __kasan_mempool_poison_object+0xfc/0x150 [ 20.213454] mempool_free+0x28c/0x328 [ 20.213511] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 20.213651] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 20.213704] kunit_try_run_case+0x170/0x3f0 [ 20.213863] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.213967] kthread+0x328/0x630 [ 20.214041] ret_from_fork+0x10/0x20 [ 20.214092] [ 20.214112] The buggy address belongs to the physical page: [ 20.214260] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107830 [ 20.214564] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.214629] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 20.214750] page_type: f8(unknown) [ 20.214859] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.214947] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.215099] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.215197] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.215285] head: 0bfffe0000000002 ffffc1ffc31e0c01 00000000ffffffff 00000000ffffffff [ 20.215332] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 20.215373] page dumped because: kasan: bad access detected [ 20.215656] [ 20.215741] Memory state around the buggy address: [ 20.215919] fff00000c782ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.216032] fff00000c782ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.216154] >fff00000c7830000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.216223] ^ [ 20.216317] fff00000c7830080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.216426] fff00000c7830100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.216492] ==================================================================
[ 13.719684] ================================================================== [ 13.720228] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.720633] Free of addr ffff88810264c101 by task kunit_try_catch/258 [ 13.720862] [ 13.720979] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.721029] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.721041] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.721065] Call Trace: [ 13.721080] <TASK> [ 13.721100] dump_stack_lvl+0x73/0xb0 [ 13.721130] print_report+0xd1/0x650 [ 13.721153] ? __virt_addr_valid+0x1db/0x2d0 [ 13.721177] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.721199] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.721265] kasan_report_invalid_free+0x10a/0x130 [ 13.721293] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.721320] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.721343] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.721366] check_slab_allocation+0x11f/0x130 [ 13.721387] __kasan_mempool_poison_object+0x91/0x1d0 [ 13.721410] mempool_free+0x2ec/0x380 [ 13.721433] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.721457] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 13.721480] ? update_curr+0x5c1/0x810 [ 13.721509] mempool_kmalloc_invalid_free+0xed/0x140 [ 13.721531] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 13.721554] ? schedule+0x7c/0x2e0 [ 13.721576] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.721598] ? __pfx_mempool_kfree+0x10/0x10 [ 13.721622] ? __pfx_read_tsc+0x10/0x10 [ 13.721643] ? ktime_get_ts64+0x86/0x230 [ 13.721666] kunit_try_run_case+0x1a5/0x480 [ 13.721691] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.721739] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.721763] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.721785] ? __kthread_parkme+0x82/0x180 [ 13.721805] ? preempt_count_sub+0x50/0x80 [ 13.721827] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.721849] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.721871] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.721893] kthread+0x337/0x6f0 [ 13.721912] ? trace_preempt_on+0x20/0xc0 [ 13.721935] ? __pfx_kthread+0x10/0x10 [ 13.721955] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.721975] ? calculate_sigpending+0x7b/0xa0 [ 13.722000] ? __pfx_kthread+0x10/0x10 [ 13.722021] ret_from_fork+0x116/0x1d0 [ 13.722038] ? __pfx_kthread+0x10/0x10 [ 13.722058] ret_from_fork_asm+0x1a/0x30 [ 13.722088] </TASK> [ 13.722100] [ 13.731749] Allocated by task 258: [ 13.731925] kasan_save_stack+0x45/0x70 [ 13.732148] kasan_save_track+0x18/0x40 [ 13.732469] kasan_save_alloc_info+0x3b/0x50 [ 13.732694] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 13.732952] remove_element+0x11e/0x190 [ 13.733117] mempool_alloc_preallocated+0x4d/0x90 [ 13.733383] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 13.733649] mempool_kmalloc_invalid_free+0xed/0x140 [ 13.733889] kunit_try_run_case+0x1a5/0x480 [ 13.734066] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.734388] kthread+0x337/0x6f0 [ 13.734564] ret_from_fork+0x116/0x1d0 [ 13.734723] ret_from_fork_asm+0x1a/0x30 [ 13.734915] [ 13.734993] The buggy address belongs to the object at ffff88810264c100 [ 13.734993] which belongs to the cache kmalloc-128 of size 128 [ 13.735866] The buggy address is located 1 bytes inside of [ 13.735866] 128-byte region [ffff88810264c100, ffff88810264c180) [ 13.736522] [ 13.736633] The buggy address belongs to the physical page: [ 13.736868] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10264c [ 13.737262] flags: 0x200000000000000(node=0|zone=2) [ 13.737491] page_type: f5(slab) [ 13.737643] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.737875] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.738308] page dumped because: kasan: bad access detected [ 13.738571] [ 13.738669] Memory state around the buggy address: [ 13.738867] ffff88810264c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.739119] ffff88810264c080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.739799] >ffff88810264c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.740125] ^ [ 13.740397] ffff88810264c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.740625] ffff88810264c200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.740935] ================================================================== [ 13.747452] ================================================================== [ 13.748093] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.748497] Free of addr ffff888103a3c001 by task kunit_try_catch/260 [ 13.748738] [ 13.748872] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.748925] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.748938] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.748962] Call Trace: [ 13.748976] <TASK> [ 13.748996] dump_stack_lvl+0x73/0xb0 [ 13.749031] print_report+0xd1/0x650 [ 13.749054] ? __virt_addr_valid+0x1db/0x2d0 [ 13.749080] ? kasan_addr_to_slab+0x11/0xa0 [ 13.749099] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.749124] kasan_report_invalid_free+0x10a/0x130 [ 13.749147] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.749174] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.749321] __kasan_mempool_poison_object+0x102/0x1d0 [ 13.749348] mempool_free+0x2ec/0x380 [ 13.749372] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 13.749396] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 13.749422] ? __kasan_check_write+0x18/0x20 [ 13.749441] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.749463] ? finish_task_switch.isra.0+0x153/0x700 [ 13.749488] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 13.749512] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 13.749538] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.749563] ? __pfx_mempool_kfree+0x10/0x10 [ 13.749589] ? __pfx_read_tsc+0x10/0x10 [ 13.749610] ? ktime_get_ts64+0x86/0x230 [ 13.749634] kunit_try_run_case+0x1a5/0x480 [ 13.749660] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.749682] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.749708] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.749730] ? __kthread_parkme+0x82/0x180 [ 13.749751] ? preempt_count_sub+0x50/0x80 [ 13.749773] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.749796] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.749818] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.749840] kthread+0x337/0x6f0 [ 13.749859] ? trace_preempt_on+0x20/0xc0 [ 13.749882] ? __pfx_kthread+0x10/0x10 [ 13.749901] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.749922] ? calculate_sigpending+0x7b/0xa0 [ 13.749946] ? __pfx_kthread+0x10/0x10 [ 13.749966] ret_from_fork+0x116/0x1d0 [ 13.749984] ? __pfx_kthread+0x10/0x10 [ 13.750005] ret_from_fork_asm+0x1a/0x30 [ 13.750037] </TASK> [ 13.750048] [ 13.759093] The buggy address belongs to the physical page: [ 13.759540] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a3c [ 13.759910] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.760143] flags: 0x200000000000040(head|node=0|zone=2) [ 13.760491] page_type: f8(unknown) [ 13.760674] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.761020] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.761468] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.761711] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.762027] head: 0200000000000002 ffffea00040e8f01 00000000ffffffff 00000000ffffffff [ 13.762485] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.762802] page dumped because: kasan: bad access detected [ 13.763016] [ 13.763110] Memory state around the buggy address: [ 13.763404] ffff888103a3bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.763623] ffff888103a3bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.763931] >ffff888103a3c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.764861] ^ [ 13.765045] ffff888103a3c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.765695] ffff888103a3c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.765980] ==================================================================