Re: [syzbot] [mm?] WARNING in move_to_new_folio

Shivank Garg
2025-04-17T09:07:01Z

On 4/17/2025 2:17 PM, syzbot wrote:
> Hello,
>
> syzbot tried to test the proposed patch but the build/boot failed:
>
...
> [ 2.455556][ T9] ------------[ cut here ]------------
> [ 2.455556][ T9] WARNING: CPU: 0 PID: 9 at arch/x86/mm/tlb.c:919 switch_mm_irqs_off+0x686/0x810
> [ 2.455556][ T9] Modules linked in:
> [ 2.455556][ T9] CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Not tainted 6.15.0-rc2-next-20250416-syzkaller-04531-g07246f14ea38 #0 PREEMPT(full)
> [ 2.455556][ T9] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
> [ 2.455556][ T9] Workqueue: events once_deferred
> [ 2.455556][ T9] RIP: 0010:switch_mm_irqs_off+0x686/0x810
> [ 2.455556][ T9] Code: 90 41 f7 c5 00 08 00 00 0f 84 ee fa ff ff 90 0f 0b 90 e9 e5 fa ff ff 90 0f 0b 90 e9 76 fe ff ff 90 0f 0b 90 e9 cc fb ff ff 90 <0f> 0b 90 4d 39 f4 0f 85 eb fb ff ff e9 31 fc ff ff 90 0f 0b 90 e9
> [ 2.455556][ T9] RSP: 0000:ffffc900000e7680 EFLAGS: 00010056
> [ 2.455556][ T9] RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff816ffd4d
> [ 2.455556][ T9] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88801b070940
> [ 2.455556][ T9] RBP: ffffc900000e7750 R08: ffff88801b070947 R09: 1ffff1100360e128
> [ 2.455556][ T9] R10: dffffc0000000000 R11: ffffed100360e129 R12: ffffffff8ee492c0
> [ 2.455556][ T9] R13: ffff88801b070940 R14: ffffffff8ee492c0 R15: 0000000000000000
> [ 2.455556][ T9] FS: 0000000000000000(0000) GS:ffff888124f9c000(0000) knlGS:0000000000000000
> [ 2.455556][ T9] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [ 2.455556][ T9] CR2: ffff88823ffff000 CR3: 000000001b078000 CR4: 00000000003506f0
> [ 2.455556][ T9] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [ 2.455556][ T9] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> [ 2.455556][ T9] Call Trace:
> [ 2.455556][ T9] <TASK>
> [ 2.455556][ T9] ? __pfx_switch_mm_irqs_off+0x10/0x10
> [ 2.455556][ T9] ? __text_poke+0x6bb/0xb40
> [ 2.455556][ T9] ? kasan_check_range+0x28f/0x2a0
> [ 2.455556][ T9] ? serial8250_isa_init_ports+0x6b/0x110
> [ 2.455556][ T9] unuse_temporary_mm+0x9f/0x100
> [ 2.455556][ T9] __text_poke+0x7b6/0xb40
> [ 2.455556][ T9] ? serial8250_isa_init_ports+0x6b/0x110
> [ 2.455556][ T9] ? __pfx_text_poke_memcpy+0x10/0x10
> [ 2.455556][ T9] ? __pfx___text_poke+0x10/0x10
> [ 2.455556][ T9] ? __pfx___mutex_trylock_common+0x10/0x10
> [ 2.455556][ T9] ? __pfx___might_resched+0x10/0x10
> [ 2.455556][ T9] ? rcu_is_watching+0x15/0xb0
> [ 2.455556][ T9] smp_text_poke_batch_finish+0x3e7/0x12c0
> [ 2.455556][ T9] ? arch_jump_label_transform_apply+0x17/0x30
> [ 2.455556][ T9] ? __pfx___mutex_lock+0x10/0x10
> [ 2.455556][ T9] ? __pfx_smp_text_poke_batch_finish+0x10/0x10
> [ 2.455556][ T9] ? arch_jump_label_transform_queue+0x9b/0x100
> [ 2.455556][ T9] ? __jump_label_update+0x387/0x3b0
> [ 2.455556][ T9] arch_jump_label_transform_apply+0x1c/0x30
> [ 2.455556][ T9] static_key_disable_cpuslocked+0xd2/0x1c0
> [ 2.455556][ T9] static_key_disable+0x1a/0x20
> [ 2.455556][ T9] once_deferred+0x70/0xb0
> [ 2.455556][ T9] ? process_scheduled_works+0x9cb/0x18e0
> [ 2.455556][ T9] process_scheduled_works+0xac3/0x18e0
> [ 2.455556][ T9] ? __pfx_process_scheduled_works+0x10/0x10
> [ 2.455556][ T9] ? assign_work+0x367/0x3d0
> [ 2.455556][ T9] worker_thread+0x870/0xd50
> [ 2.455556][ T9] ? __kthread_parkme+0x1a8/0x200
> [ 2.455556][ T9] ? __pfx_worker_thread+0x10/0x10
> [ 2.455556][ T9] kthread+0x7b7/0x940
> [ 2.455556][ T9] ? __pfx_worker_thread+0x10/0x10
> [ 2.455556][ T9] ? __pfx_kthread+0x10/0x10
> [ 2.455556][ T9] ? __pfx_kthread+0x10/0x10
> [ 2.455556][ T9] ? __pfx_kthread+0x10/0x10
> [ 2.455556][ T9] ? __pfx_kthread+0x10/0x10
> [ 2.455556][ T9] ? _raw_spin_unlock_irq+0x23/0x50
> [ 2.455556][ T9] ? lockdep_hardirqs_on+0x9d/0x150
> [ 2.455556][ T9] ? __pfx_kthread+0x10/0x10
> [ 2.455556][ T9] ret_from_fork+0x4b/0x80
> [ 2.455556][ T9] ? __pfx_kthread+0x10/0x10
> [ 2.455556][ T9] ret_from_fork_asm+0x1a/0x30
> [ 2.455556][ T9] </TASK>
> [ 2.455556][ T9] Kernel panic - not syncing: kernel: panic_on_warn set ...

This is some unrelated regression issue. Also, reported here:
https://lore.kernel.org/all/SJ1PR11MB6129E62E3B372932C6B7477FB9BD2@SJ1PR11MB6129.namprd11.prod.outlook.com
https://lore.kernel.org/all/67fce34b.050a0220.3483fc.0026.GAE@google.com

Thanks,
Shivank