Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.801902] ================================================================== [ 34.802108] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 34.802278] Free of addr fff00000c59fbb01 by task kunit_try_catch/252 [ 34.802395] [ 34.802487] CPU: 1 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 34.802735] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.802809] Hardware name: linux,dummy-virt (DT) [ 34.802894] Call trace: [ 34.802958] show_stack+0x20/0x38 (C) [ 34.803084] dump_stack_lvl+0x8c/0xd0 [ 34.803206] print_report+0x118/0x608 [ 34.803329] kasan_report_invalid_free+0xc0/0xe8 [ 34.803478] check_slab_allocation+0xfc/0x108 [ 34.803626] __kasan_mempool_poison_object+0x78/0x150 [ 34.803750] mempool_free+0x28c/0x328 [ 34.803900] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 34.804055] mempool_kmalloc_invalid_free+0xc0/0x118 [ 34.805938] kunit_try_run_case+0x170/0x3f0 [ 34.806127] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.806573] kthread+0x328/0x630 [ 34.806784] ret_from_fork+0x10/0x20 [ 34.806907] [ 34.806955] Allocated by task 252: [ 34.807029] kasan_save_stack+0x3c/0x68 [ 34.807137] kasan_save_track+0x20/0x40 [ 34.807249] kasan_save_alloc_info+0x40/0x58 [ 34.807343] __kasan_mempool_unpoison_object+0x11c/0x180 [ 34.807556] remove_element+0x130/0x1f8 [ 34.807865] mempool_alloc_preallocated+0x58/0xc0 [ 34.808083] mempool_kmalloc_invalid_free_helper+0x94/0x2a8 [ 34.808192] mempool_kmalloc_invalid_free+0xc0/0x118 [ 34.808289] kunit_try_run_case+0x170/0x3f0 [ 34.808418] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.808532] kthread+0x328/0x630 [ 34.808808] ret_from_fork+0x10/0x20 [ 34.808926] [ 34.809001] The buggy address belongs to the object at fff00000c59fbb00 [ 34.809001] which belongs to the cache kmalloc-128 of size 128 [ 34.809206] The buggy address is located 1 bytes inside of [ 34.809206] 128-byte region [fff00000c59fbb00, fff00000c59fbb80) [ 34.809395] [ 34.809559] The buggy address belongs to the physical page: [ 34.809668] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059fb [ 34.809820] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.809943] page_type: f5(slab) [ 34.810077] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 34.810187] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 34.810275] page dumped because: kasan: bad access detected [ 34.810334] [ 34.810369] Memory state around the buggy address: [ 34.810647] fff00000c59fba00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.810784] fff00000c59fba80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.810920] >fff00000c59fbb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.811129] ^ [ 34.811218] fff00000c59fbb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.811323] fff00000c59fbc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.811449] ================================================================== [ 34.834163] ================================================================== [ 34.834352] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 34.834516] Free of addr fff00000c5a48001 by task kunit_try_catch/254 [ 34.836080] [ 34.836196] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 34.836449] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.836514] Hardware name: linux,dummy-virt (DT) [ 34.836597] Call trace: [ 34.836666] show_stack+0x20/0x38 (C) [ 34.836780] dump_stack_lvl+0x8c/0xd0 [ 34.836837] print_report+0x118/0x608 [ 34.836895] kasan_report_invalid_free+0xc0/0xe8 [ 34.836950] __kasan_mempool_poison_object+0xfc/0x150 [ 34.837009] mempool_free+0x28c/0x328 [ 34.837059] mempool_kmalloc_invalid_free_helper+0x118/0x2a8 [ 34.837119] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 34.837179] kunit_try_run_case+0x170/0x3f0 [ 34.837235] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.837294] kthread+0x328/0x630 [ 34.837341] ret_from_fork+0x10/0x20 [ 34.837399] [ 34.837428] The buggy address belongs to the physical page: [ 34.837470] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a48 [ 34.837537] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 34.837592] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 34.838071] page_type: f8(unknown) [ 34.838369] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 34.838656] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 34.839067] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 34.839183] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 34.839852] head: 0bfffe0000000002 ffffc1ffc3169201 00000000ffffffff 00000000ffffffff [ 34.840250] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 34.840356] page dumped because: kasan: bad access detected [ 34.840426] [ 34.840460] Memory state around the buggy address: [ 34.840959] fff00000c5a47f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.841128] fff00000c5a47f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.841246] >fff00000c5a48000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.841353] ^ [ 34.841427] fff00000c5a48080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.841545] fff00000c5a48100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.841665] ==================================================================
[ 27.569189] ================================================================== [ 27.570234] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.570780] Free of addr ffff88810232ae01 by task kunit_try_catch/270 [ 27.571257] [ 27.571433] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 27.571552] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.571583] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.571633] Call Trace: [ 27.571665] <TASK> [ 27.571702] dump_stack_lvl+0x73/0xb0 [ 27.571764] print_report+0xd1/0x650 [ 27.571808] ? __virt_addr_valid+0x1db/0x2d0 [ 27.571853] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.571907] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.571960] kasan_report_invalid_free+0x10a/0x130 [ 27.572012] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.572061] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.572105] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.572150] check_slab_allocation+0x11f/0x130 [ 27.572190] __kasan_mempool_poison_object+0x91/0x1d0 [ 27.572231] mempool_free+0x2ec/0x380 [ 27.572283] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.572337] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 27.572394] ? __kasan_check_write+0x18/0x20 [ 27.572614] ? __pfx_sched_clock_cpu+0x10/0x10 [ 27.572678] ? finish_task_switch.isra.0+0x153/0x700 [ 27.572736] mempool_kmalloc_invalid_free+0xed/0x140 [ 27.572778] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 27.572831] ? __pfx_mempool_kmalloc+0x10/0x10 [ 27.572859] ? __pfx_mempool_kfree+0x10/0x10 [ 27.572885] ? __pfx_read_tsc+0x10/0x10 [ 27.572910] ? ktime_get_ts64+0x86/0x230 [ 27.572939] kunit_try_run_case+0x1a5/0x480 [ 27.572967] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.572991] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.573016] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.573041] ? __kthread_parkme+0x82/0x180 [ 27.573063] ? preempt_count_sub+0x50/0x80 [ 27.573088] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.573113] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.573138] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.573173] kthread+0x337/0x6f0 [ 27.573202] ? trace_preempt_on+0x20/0xc0 [ 27.573226] ? __pfx_kthread+0x10/0x10 [ 27.573250] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.573272] ? calculate_sigpending+0x7b/0xa0 [ 27.573297] ? __pfx_kthread+0x10/0x10 [ 27.573320] ret_from_fork+0x116/0x1d0 [ 27.573339] ? __pfx_kthread+0x10/0x10 [ 27.573361] ret_from_fork_asm+0x1a/0x30 [ 27.573393] </TASK> [ 27.573406] [ 27.590457] Allocated by task 270: [ 27.591483] kasan_save_stack+0x45/0x70 [ 27.592099] kasan_save_track+0x18/0x40 [ 27.592493] kasan_save_alloc_info+0x3b/0x50 [ 27.592934] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 27.593340] remove_element+0x11e/0x190 [ 27.593786] mempool_alloc_preallocated+0x4d/0x90 [ 27.594307] mempool_kmalloc_invalid_free_helper+0x83/0x2e0 [ 27.595135] mempool_kmalloc_invalid_free+0xed/0x140 [ 27.595436] kunit_try_run_case+0x1a5/0x480 [ 27.595831] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.596317] kthread+0x337/0x6f0 [ 27.596586] ret_from_fork+0x116/0x1d0 [ 27.596880] ret_from_fork_asm+0x1a/0x30 [ 27.597285] [ 27.597475] The buggy address belongs to the object at ffff88810232ae00 [ 27.597475] which belongs to the cache kmalloc-128 of size 128 [ 27.598381] The buggy address is located 1 bytes inside of [ 27.598381] 128-byte region [ffff88810232ae00, ffff88810232ae80) [ 27.599524] [ 27.599781] The buggy address belongs to the physical page: [ 27.600101] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10232a [ 27.600876] flags: 0x200000000000000(node=0|zone=2) [ 27.601334] page_type: f5(slab) [ 27.601828] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 27.602204] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 27.602916] page dumped because: kasan: bad access detected [ 27.603688] [ 27.603846] Memory state around the buggy address: [ 27.604465] ffff88810232ad00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.604888] ffff88810232ad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.605419] >ffff88810232ae00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.606061] ^ [ 27.606292] ffff88810232ae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.606796] ffff88810232af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.607575] ================================================================== [ 27.614280] ================================================================== [ 27.615187] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.615682] Free of addr ffff888102a64001 by task kunit_try_catch/272 [ 27.616255] [ 27.616463] CPU: 1 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 27.616591] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.616621] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.616669] Call Trace: [ 27.616700] <TASK> [ 27.616743] dump_stack_lvl+0x73/0xb0 [ 27.616817] print_report+0xd1/0x650 [ 27.616867] ? __virt_addr_valid+0x1db/0x2d0 [ 27.617059] ? kasan_addr_to_slab+0x11/0xa0 [ 27.617112] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.617161] kasan_report_invalid_free+0x10a/0x130 [ 27.617207] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.617259] ? mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.617309] __kasan_mempool_poison_object+0x102/0x1d0 [ 27.617368] mempool_free+0x2ec/0x380 [ 27.617453] mempool_kmalloc_invalid_free_helper+0x132/0x2e0 [ 27.617508] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 27.617561] ? __kasan_check_write+0x18/0x20 [ 27.617727] ? __pfx_sched_clock_cpu+0x10/0x10 [ 27.617799] ? finish_task_switch.isra.0+0x153/0x700 [ 27.617854] mempool_kmalloc_large_invalid_free+0xed/0x140 [ 27.617899] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 27.617929] ? __pfx_mempool_kmalloc+0x10/0x10 [ 27.617953] ? __pfx_mempool_kfree+0x10/0x10 [ 27.617979] ? __pfx_read_tsc+0x10/0x10 [ 27.618003] ? ktime_get_ts64+0x86/0x230 [ 27.618045] kunit_try_run_case+0x1a5/0x480 [ 27.618077] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.618101] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.618127] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.618158] ? __kthread_parkme+0x82/0x180 [ 27.618196] ? preempt_count_sub+0x50/0x80 [ 27.618221] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.618246] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.618270] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.618294] kthread+0x337/0x6f0 [ 27.618316] ? trace_preempt_on+0x20/0xc0 [ 27.618343] ? __pfx_kthread+0x10/0x10 [ 27.618365] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.618387] ? calculate_sigpending+0x7b/0xa0 [ 27.618414] ? __pfx_kthread+0x10/0x10 [ 27.618436] ret_from_fork+0x116/0x1d0 [ 27.618479] ? __pfx_kthread+0x10/0x10 [ 27.618502] ret_from_fork_asm+0x1a/0x30 [ 27.618537] </TASK> [ 27.618557] [ 27.633693] The buggy address belongs to the physical page: [ 27.633996] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a64 [ 27.634862] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 27.635710] flags: 0x200000000000040(head|node=0|zone=2) [ 27.637066] page_type: f8(unknown) [ 27.637301] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 27.638089] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 27.638356] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 27.638630] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 27.638890] head: 0200000000000002 ffffea00040a9901 00000000ffffffff 00000000ffffffff [ 27.639143] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 27.639387] page dumped because: kasan: bad access detected [ 27.640737] [ 27.640865] Memory state around the buggy address: [ 27.641062] ffff888102a63f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.641321] ffff888102a63f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.643698] >ffff888102a64000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.644355] ^ [ 27.644572] ffff888102a64080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.644806] ffff888102a64100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.645010] ==================================================================