do_mmap+0x869/0xfb0 mm/mmap.c:1575 vm_mmap_pgoff+0x1b7/0x290 mm/util.c:519 ksys_mmap_pgoff+0x269/0x620 mm/mmap.c:1624 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ kernel BUG at mm/filemap.c:2096! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 14160 Comm: syz-executor.5 Not tainted 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:find_lock_entries+0xcd9/0x13d0 mm/filemap.c:2096 Code: f6 ff ff e8 d9 f1 d9 ff 4c 8b 7c 24 30 49 83 ef 01 e9 07 f7 ff ff e8 c6 f1 d9 ff 48 c7 c6 e0 ef 94 89 48 89 ef e8 57 93 0d 00 <0f> 0b e8 b0 f1 d9 ff 48 c7 c6 e0 e5 94 89 48 89 ef e8 41 93 0d 00 RSP: 0018:ffffc9000c89f590 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc90014e8a000 RDX: 0000000000040000 RSI: ffffffff819c1ce9 RDI: 0000000000000003 RBP: ffffea0002548000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f5c8f9 R11: 00000000ffffffff R12: ffffea0002548008 R13: 0000000000000400 R14: ffffea0002548020 R15: 0000000000000440 FS: 00007f57d2fe9700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0c36418058 CR3: 000000003f65f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: shmem_undo_range+0x1dd/0x1730 mm/shmem.c:938 shmem_truncate_range mm/shmem.c:1058 [inline] shmem_setattr+0x59f/0x8f0 mm/shmem.c:1117 notify_change+0xaef/0x10c0 fs/attr.c:410 do_truncate+0x13c/0x200 fs/open.c:64 handle_truncate fs/namei.c:3084 [inline] do_open fs/namei.c:3432 [inline] path_openat+0x209b/0x2740 fs/namei.c:3561 do_filp_open+0x1aa/0x400 fs/namei.c:3588 do_sys_openat2+0x16d/0x4d0 fs/open.c:1200 do_sys_open fs/open.c:1216 [inline] __do_sys_creat fs/open.c:1290 [inline] __se_sys_creat fs/open.c:1284 [inline] __x64_sys_creat+0xc9/0x120 fs/open.c:1284 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f57d5a94a39 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f57d2fe9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f57d5b98020 RCX: 00007f57d5a94a39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f57d5aeee8f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd9cd974f R14: 00007f57d2fe9300 R15: 0000000000022000 Modules linked in: ---[ end trace 91027eac4af5afe3 ]--- RIP: 0010:find_lock_entries+0xcd9/0x13d0 mm/filemap.c:2096 Code: f6 ff ff e8 d9 f1 d9 ff 4c 8b 7c 24 30 49 83 ef 01 e9 07 f7 ff ff e8 c6 f1 d9 ff 48 c7 c6 e0 ef 94 89 48 89 ef e8 57 93 0d 00 <0f> 0b e8 b0 f1 d9 ff 48 c7 c6 e0 e5 94 89 48 89 ef e8 41 93 0d 00 RSP: 0018:ffffc9000c89f590 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc90014e8a000 RDX: 0000000000040000 RSI: ffffffff819c1ce9 RDI: 0000000000000003 RBP: ffffea0002548000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f5c8f9 R11: 00000000ffffffff R12: ffffea0002548008 R13: 0000000000000400 R14: ffffea0002548020 R15: 0000000000000440 FS: 00007f57d2fe9700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0c36418058 CR3: 000000003f65f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400