vma ffff888111755a50 start 0000000020c2a000 end 0000000021000000 mm ffff88810069bd40 prot 25 anon_vma 0000000000000000 vm_ops 0000000000000000 pgoff 20c2a file 0000000000000000 private_data 0000000000000000 flags: 0x100077(read|write|exec|mayread|maywrite|mayexec|account) ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:731! invalid opcode: 0000 [#1] PREEMPT SMP CPU: 1 PID: 2277 Comm: syz-executor.0 Not tainted 6.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:vma_assert_write_locked include/linux/mm.h:731 [inline] RIP: 0010:vma_assert_write_locked include/linux/mm.h:727 [inline] RIP: 0010:vma_replace_policy+0x15f/0x170 mm/mempolicy.c:783 Code: 0f 85 5f ff ff ff 48 8b 3d 26 b3 7a 03 48 89 ee 89 44 24 04 e8 42 b8 00 00 8b 44 24 04 e9 43 ff ff ff 48 89 df e8 91 21 fa ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 66 0f 1f 00 53 RSP: 0018:ffffc900028a3e08 EFLAGS: 00010296 RAX: 0000000000000110 RBX: ffff888111755a50 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff82daaa97 RDI: 00000000ffffffff RBP: ffff8881027b5060 R08: 0000000000000000 R09: ffffffff832964c0 R10: ffffc900028a3c80 R11: ffffffff83376508 R12: ffff88810069bd40 R13: 0000000020ffffff R14: ffff88810069bd40 R15: ffff8881027b5060 FS: 00007fb9cb6606c0(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000208f9f09 CR3: 0000000111662000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_mbind+0x385/0x4f0 mm/mempolicy.c:1345 kernel_mbind+0xae/0xc0 mm/mempolicy.c:1502 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb9ca87cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb9cb6600c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 00007fb9ca99bf80 RCX: 00007fb9ca87cae9 RDX: 0000000000000004 RSI: 0000000000c00000 RDI: 0000000020400000 RBP: 00007fb9ca8c847a R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fb9ca99bf80 R15: 00007ffec90e9b18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vma_assert_write_locked include/linux/mm.h:731 [inline] RIP: 0010:vma_assert_write_locked include/linux/mm.h:727 [inline] RIP: 0010:vma_replace_policy+0x15f/0x170 mm/mempolicy.c:783 Code: 0f 85 5f ff ff ff 48 8b 3d 26 b3 7a 03 48 89 ee 89 44 24 04 e8 42 b8 00 00 8b 44 24 04 e9 43 ff ff ff 48 89 df e8 91 21 fa ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 66 0f 1f 00 53 RSP: 0018:ffffc900028a3e08 EFLAGS: 00010296 RAX: 0000000000000110 RBX: ffff888111755a50 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff82daaa97 RDI: 00000000ffffffff RBP: ffff8881027b5060 R08: 0000000000000000 R09: ffffffff832964c0 R10: ffffc900028a3c80 R11: ffffffff83376508 R12: ffff88810069bd40 R13: 0000000020ffffff R14: ffff88810069bd40 R15: ffff8881027b5060 FS: 00007fb9cb6606c0(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000208f9f09 CR3: 0000000111662000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400