do_truncate+0x13c/0x200 fs/open.c:64 do_sys_ftruncate+0x544/0x740 fs/open.c:192 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: 2740 Comm: syz-executor.5 Not tainted 5.15.0-rc3-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 59 c5 d9 ff 4c 8b 7c 24 30 49 83 ef 01 e9 07 f7 ff ff e8 46 c5 d9 ff 48 c7 c6 c0 1d 95 89 48 89 ef e8 37 93 0d 00 <0f> 0b e8 30 c5 d9 ff 48 c7 c6 c0 13 95 89 48 89 ef e8 21 93 0d 00 RSP: 0018:ffffc90004d8f9a0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc9000e89f000 RDX: 0000000000040000 RSI: ffffffff819c4639 RDI: 0000000000000003 RBP: ffffea0000f90000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f4abe9 R11: 00000000ffffffff R12: ffffea0000f90008 R13: 0000000000000200 R14: ffffea0000f90020 R15: 00000000000002c0 FS: 00007f60c3cc0700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564556bb8160 CR3: 000000002547d000 CR4: 0000000000350ef0 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 do_sys_ftruncate+0x544/0x740 fs/open.c:192 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:0x7f60c676a709 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:00007f60c3cc0188 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f60c686f020 RCX: 00007f60c676a709 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f60c67c4cb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd321f970f R14: 00007f60c3cc0300 R15: 0000000000022000 Modules linked in: ---[ end trace 4a76085751785127 ]--- RIP: 0010:find_lock_entries+0xcd9/0x13d0 mm/filemap.c:2096 Code: f6 ff ff e8 59 c5 d9 ff 4c 8b 7c 24 30 49 83 ef 01 e9 07 f7 ff ff e8 46 c5 d9 ff 48 c7 c6 c0 1d 95 89 48 89 ef e8 37 93 0d 00 <0f> 0b e8 30 c5 d9 ff 48 c7 c6 c0 13 95 89 48 89 ef e8 21 93 0d 00 RSP: 0018:ffffc90004d8f9a0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc9000e89f000 RDX: 0000000000040000 RSI: ffffffff819c4639 RDI: 0000000000000003 RBP: ffffea0000f90000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f4abe9 R11: 00000000ffffffff R12: ffffea0000f90008 R13: 0000000000000200 R14: ffffea0000f90020 R15: 00000000000002c0 FS: 00007f60c3cc0700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564556bb8160 CR3: 000000002547d000 CR4: 0000000000350ee0