BUG: sleeping function called from invalid context at mm/util.c:743 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6375, name: syz.4.85 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by syz.4.85/6375: #0: ffff888148d4da48 (&mapping->i_private_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #0: ffff888148d4da48 (&mapping->i_private_lock){+.+.}-{3:3}, at: __buffer_migrate_folio+0x240/0x620 mm/migrate.c:853 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 6375 Comm: syz.4.85 Not tainted 6.15.0-rc3-syzkaller-00076-ge72e9e693307 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 __might_resched+0x495/0x610 kernel/sched/core.c:8818 folio_mc_copy+0x141/0x1d0 mm/util.c:743 __migrate_folio mm/migrate.c:758 [inline] filemap_migrate_folio+0xba/0x4c0 mm/migrate.c:943 __buffer_migrate_folio+0x430/0x620 mm/migrate.c:874 move_to_new_folio+0x2df/0xb10 mm/migrate.c:1050 migrate_folio_move mm/migrate.c:1358 [inline] migrate_folios_move mm/migrate.c:1710 [inline] migrate_pages_batch+0x1c34/0x2830 mm/migrate.c:1957 migrate_pages_sync mm/migrate.c:1987 [inline] migrate_pages+0x1b3b/0x2850 mm/migrate.c:2096 do_mbind mm/mempolicy.c:1425 [inline] kernel_mbind mm/mempolicy.c:1568 [inline] __do_sys_mbind mm/mempolicy.c:1642 [inline] __se_sys_mbind+0xa3e/0xc30 mm/mempolicy.c:1638 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xb4/0x110 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x34/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf70fe539 Code: 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f50ee55c EFLAGS: 00000206 ORIG_RAX: 0000000000000112 RAX: ffffffffffffffda RBX: 0000000080000000 RCX: 0000000000600000 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 4: 10 07 adc %al,(%rdi) 6: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi a: 10 08 adc %cl,(%rax) c: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 ret 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 90 nop 33: 90 nop 34: 90 nop 35: 90 nop 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop