Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.797278] ================================================================== [ 21.797337] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 21.797395] Free of addr fff00000c784c001 by task kunit_try_catch/244 [ 21.797452] [ 21.797485] CPU: 1 UID: 0 PID: 244 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.797568] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.797595] Hardware name: linux,dummy-virt (DT) [ 21.797629] Call trace: [ 21.797651] show_stack+0x20/0x38 (C) [ 21.797702] dump_stack_lvl+0x8c/0xd0 [ 21.797750] print_report+0x118/0x608 [ 21.797799] kasan_report_invalid_free+0xc0/0xe8 [ 21.797851] __kasan_mempool_poison_object+0xfc/0x150 [ 21.797904] mempool_free+0x28c/0x328 [ 21.797950] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 21.798004] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 21.798056] kunit_try_run_case+0x170/0x3f0 [ 21.798107] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.798161] kthread+0x328/0x630 [ 21.799810] ret_from_fork+0x10/0x20 [ 21.799889] [ 21.800069] The buggy address belongs to the physical page: [ 21.800133] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10784c [ 21.800191] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.800249] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.800305] page_type: f8(unknown) [ 21.800343] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.800393] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.801082] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.801561] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.801903] head: 0bfffe0000000002 ffffc1ffc31e1301 00000000ffffffff 00000000ffffffff [ 21.802049] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 21.802318] page dumped because: kasan: bad access detected [ 21.802355] [ 21.802376] Memory state around the buggy address: [ 21.802781] fff00000c784bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.802829] fff00000c784bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.802873] >fff00000c784c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.803391] ^ [ 21.803774] fff00000c784c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.804053] fff00000c784c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.804127] ================================================================== [ 21.775759] ================================================================== [ 21.775832] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 21.775887] Free of addr fff00000c6e94201 by task kunit_try_catch/242 [ 21.775929] [ 21.775960] CPU: 1 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.776042] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.776332] Hardware name: linux,dummy-virt (DT) [ 21.776418] Call trace: [ 21.776606] show_stack+0x20/0x38 (C) [ 21.776696] dump_stack_lvl+0x8c/0xd0 [ 21.776810] print_report+0x118/0x608 [ 21.776906] kasan_report_invalid_free+0xc0/0xe8 [ 21.777054] check_slab_allocation+0xfc/0x108 [ 21.777177] __kasan_mempool_poison_object+0x78/0x150 [ 21.777428] mempool_free+0x28c/0x328 [ 21.777552] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 21.777637] mempool_kmalloc_invalid_free+0xc0/0x118 [ 21.777792] kunit_try_run_case+0x170/0x3f0 [ 21.777892] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.778045] kthread+0x328/0x630 [ 21.778130] ret_from_fork+0x10/0x20 [ 21.778314] [ 21.778504] Allocated by task 242: [ 21.778600] kasan_save_stack+0x3c/0x68 [ 21.778657] kasan_save_track+0x20/0x40 [ 21.778722] kasan_save_alloc_info+0x40/0x58 [ 21.778801] __kasan_mempool_unpoison_object+0x11c/0x180 [ 21.778934] remove_element+0x130/0x1f8 [ 21.779011] mempool_alloc_preallocated+0x58/0xc0 [ 21.779143] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 21.779209] mempool_kmalloc_invalid_free+0xc0/0x118 [ 21.779278] kunit_try_run_case+0x170/0x3f0 [ 21.779526] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.779767] kthread+0x328/0x630 [ 21.779854] ret_from_fork+0x10/0x20 [ 21.779979] [ 21.780044] The buggy address belongs to the object at fff00000c6e94200 [ 21.780044] which belongs to the cache kmalloc-128 of size 128 [ 21.780272] The buggy address is located 1 bytes inside of [ 21.780272] 128-byte region [fff00000c6e94200, fff00000c6e94280) [ 21.780498] [ 21.780558] The buggy address belongs to the physical page: [ 21.780692] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106e94 [ 21.780777] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.780856] page_type: f5(slab) [ 21.780969] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.781075] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.781281] page dumped because: kasan: bad access detected [ 21.781318] [ 21.781337] Memory state around the buggy address: [ 21.781381] fff00000c6e94100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.782021] fff00000c6e94180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.782326] >fff00000c6e94200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.782654] ^ [ 21.782695] fff00000c6e94280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.782739] fff00000c6e94300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.783441] ==================================================================
[ 14.387214] ================================================================== [ 14.388291] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.389063] Free of addr ffff888102ab9801 by task kunit_try_catch/258 [ 14.389724] [ 14.389849] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.389894] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.389906] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.389926] Call Trace: [ 14.389949] <TASK> [ 14.389999] dump_stack_lvl+0x73/0xb0 [ 14.390031] print_report+0xd1/0x650 [ 14.390080] ? __virt_addr_valid+0x1db/0x2d0 [ 14.390105] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.390128] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.390155] kasan_report_invalid_free+0x10a/0x130 [ 14.390182] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.390210] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.390237] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.390262] check_slab_allocation+0x11f/0x130 [ 14.390284] __kasan_mempool_poison_object+0x91/0x1d0 [ 14.390309] mempool_free+0x2ec/0x380 [ 14.390336] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.390363] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 14.390392] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.390415] ? finish_task_switch.isra.0+0x153/0x700 [ 14.390441] mempool_kmalloc_invalid_free+0xed/0x140 [ 14.390465] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 14.390494] ? __pfx_mempool_kmalloc+0x10/0x10 [ 14.390516] ? __pfx_mempool_kfree+0x10/0x10 [ 14.390541] ? __pfx_read_tsc+0x10/0x10 [ 14.390563] ? ktime_get_ts64+0x86/0x230 [ 14.390587] kunit_try_run_case+0x1a5/0x480 [ 14.390611] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.390635] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.390659] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.390682] ? __kthread_parkme+0x82/0x180 [ 14.390703] ? preempt_count_sub+0x50/0x80 [ 14.390731] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.390755] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.390780] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.390805] kthread+0x337/0x6f0 [ 14.390824] ? trace_preempt_on+0x20/0xc0 [ 14.390848] ? __pfx_kthread+0x10/0x10 [ 14.390868] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.390890] ? calculate_sigpending+0x7b/0xa0 [ 14.390914] ? __pfx_kthread+0x10/0x10 [ 14.390945] ret_from_fork+0x116/0x1d0 [ 14.390977] ? __pfx_kthread+0x10/0x10 [ 14.390998] ret_from_fork_asm+0x1a/0x30 [ 14.391029] </TASK> [ 14.391040] [ 14.405903] Allocated by task 258: [ 14.406254] kasan_save_stack+0x45/0x70 [ 14.406458] kasan_save_track+0x18/0x40 [ 14.406636] kasan_save_alloc_info+0x3b/0x50 [ 14.406838] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 14.407306] remove_element+0x11e/0x190 [ 14.407709] mempool_alloc_preallocated+0x4d/0x90 [ 14.408208] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 14.408756] mempool_kmalloc_invalid_free+0xed/0x140 [ 14.409283] kunit_try_run_case+0x1a5/0x480 [ 14.409574] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.409814] kthread+0x337/0x6f0 [ 14.410264] ret_from_fork+0x116/0x1d0 [ 14.410492] ret_from_fork_asm+0x1a/0x30 [ 14.410688] [ 14.410789] The buggy address belongs to the object at ffff888102ab9800 [ 14.410789] which belongs to the cache kmalloc-128 of size 128 [ 14.412145] The buggy address is located 1 bytes inside of [ 14.412145] 128-byte region [ffff888102ab9800, ffff888102ab9880) [ 14.413302] [ 14.413554] The buggy address belongs to the physical page: [ 14.414056] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab9 [ 14.414554] flags: 0x200000000000000(node=0|zone=2) [ 14.414871] page_type: f5(slab) [ 14.415313] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.415692] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.416264] page dumped because: kasan: bad access detected [ 14.416742] [ 14.416828] Memory state around the buggy address: [ 14.417233] ffff888102ab9700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.417746] ffff888102ab9780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.418219] >ffff888102ab9800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.418666] ^ [ 14.418822] ffff888102ab9880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.419593] ffff888102ab9900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.420089] ================================================================== [ 14.423757] ================================================================== [ 14.424264] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.424537] Free of addr ffff88810a62c001 by task kunit_try_catch/260 [ 14.424734] [ 14.424827] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.424875] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.424888] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.424910] Call Trace: [ 14.424922] <TASK> [ 14.424953] dump_stack_lvl+0x73/0xb0 [ 14.424987] print_report+0xd1/0x650 [ 14.425011] ? __virt_addr_valid+0x1db/0x2d0 [ 14.425038] ? kasan_addr_to_slab+0x11/0xa0 [ 14.425059] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.425087] kasan_report_invalid_free+0x10a/0x130 [ 14.425112] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.425141] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.425167] __kasan_mempool_poison_object+0x102/0x1d0 [ 14.425192] mempool_free+0x2ec/0x380 [ 14.425220] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 14.425247] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 14.425277] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.425300] ? finish_task_switch.isra.0+0x153/0x700 [ 14.425327] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 14.425353] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 14.425382] ? __pfx_mempool_kmalloc+0x10/0x10 [ 14.425405] ? __pfx_mempool_kfree+0x10/0x10 [ 14.425429] ? __pfx_read_tsc+0x10/0x10 [ 14.425452] ? ktime_get_ts64+0x86/0x230 [ 14.425477] kunit_try_run_case+0x1a5/0x480 [ 14.425504] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.425527] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.425552] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.425576] ? __kthread_parkme+0x82/0x180 [ 14.425598] ? preempt_count_sub+0x50/0x80 [ 14.425622] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.425646] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.425671] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.425696] kthread+0x337/0x6f0 [ 14.425715] ? trace_preempt_on+0x20/0xc0 [ 14.425739] ? __pfx_kthread+0x10/0x10 [ 14.425759] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.425781] ? calculate_sigpending+0x7b/0xa0 [ 14.425805] ? __pfx_kthread+0x10/0x10 [ 14.425827] ret_from_fork+0x116/0x1d0 [ 14.425845] ? __pfx_kthread+0x10/0x10 [ 14.425866] ret_from_fork_asm+0x1a/0x30 [ 14.425898] </TASK> [ 14.425909] [ 14.444363] The buggy address belongs to the physical page: [ 14.444815] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a62c [ 14.445534] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.446246] flags: 0x200000000000040(head|node=0|zone=2) [ 14.446525] page_type: f8(unknown) [ 14.446701] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.447350] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.447912] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.448787] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.449544] head: 0200000000000002 ffffea0004298b01 00000000ffffffff 00000000ffffffff [ 14.449879] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 14.450826] page dumped because: kasan: bad access detected [ 14.451515] [ 14.451766] Memory state around the buggy address: [ 14.452276] ffff88810a62bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.452578] ffff88810a62bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.452871] >ffff88810a62c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.453511] ^ [ 14.453674] ffff88810a62c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.454249] ffff88810a62c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.454574] ==================================================================