syz.0.0: attempt to access beyond end of device loop0: rw=8390657, sector=68719479088, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934886, lost async page write ------------[ cut here ]------------ kernel BUG at fs/gfs2/lops.c:107! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5312 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:gfs2_unpin+0xa18/0xa30 fs/gfs2/lops.c:107 Code: fd e9 a5 fa ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c d4 fa ff ff 4c 89 e7 e8 b3 f2 f0 fd e9 c7 fa ff ff e8 19 bc 81 fd 90 <0f> 0b e8 11 bc 81 fd 90 0f 0b e8 09 bc 81 fd 90 0f 0b 66 0f 1f 44 RSP: 0018:ffffc9000e34f350 EFLAGS: 00010283 RAX: ffffffff844555c7 RBX: ffff888042611100 RCX: 0000000000100000 RDX: ffffc9000eb72000 RSI: 00000000000019b8 RDI: 00000000000019b9 RBP: 1ffff110084c223d R08: ffff888042eeb627 R09: 1ffff110085dd6c4 R10: dffffc0000000000 R11: ffffed10085dd6c5 R12: ffff888043997850 R13: dffffc0000000000 R14: ffff888042eeb620 R15: ffff888012e3c000 FS: 00007f64c03f56c0(0000) GS:ffff88808c53e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002480 CR3: 00000000445fc000 CR4: 0000000000352ef0 Call Trace: databuf_lo_after_commit+0x165/0x1b0 fs/gfs2/lops.c:1080 lops_after_commit fs/gfs2/lops.h:51 [inline] __gfs2_log_flush+0xf6e/0x1d90 fs/gfs2/log.c:1152 gfs2_log_flush+0x34/0x50 fs/gfs2/log.c:1216 gfs2_jdata_writepages+0xf9/0x150 fs/gfs2/aops.c:371 do_writepages+0x338/0x560 mm/page-writeback.c:2571 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x1ef/0x2f0 mm/filemap.c:412 gfs2_fsync+0xd0/0x350 fs/gfs2/file.c:752 generic_write_sync include/linux/fs.h:2666 [inline] gfs2_file_write_iter+0xf77/0x1170 fs/gfs2/file.c:1172 do_iter_readv_writev+0x612/0x8c0 fs/read_write.c:-1 vfs_writev+0x343/0x990 fs/read_write.c:1058 do_pwritev fs/read_write.c:1154 [inline] __do_sys_pwritev2 fs/read_write.c:1212 [inline] __se_sys_pwritev2+0x177/0x2a0 fs/read_write.c:1203 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f64c3f9e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f64c03f4fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f64c4225fa0 RCX: 00007f64c3f9e0d9 RDX: 0000000000000007 RSI: 00002000000009c0 RDI: 0000000000000006 RBP: 00007f64c4035024 R08: 0000000000000009 R09: 0000000000000006 R10: 000000000000000f R11: 0000000000000246 R12: 0000000000000000 R13: 00007f64c4226038 R14: 00007f64c4225fa0 R15: 00007ffc1ded3a38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_unpin+0xa18/0xa30 fs/gfs2/lops.c:107 Code: fd e9 a5 fa ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c d4 fa ff ff 4c 89 e7 e8 b3 f2 f0 fd e9 c7 fa ff ff e8 19 bc 81 fd 90 <0f> 0b e8 11 bc 81 fd 90 0f 0b e8 09 bc 81 fd 90 0f 0b 66 0f 1f 44 RSP: 0018:ffffc9000e34f350 EFLAGS: 00010283 RAX: ffffffff844555c7 RBX: ffff888042611100 RCX: 0000000000100000 RDX: ffffc9000eb72000 RSI: 00000000000019b8 RDI: 00000000000019b9 RBP: 1ffff110084c223d R08: ffff888042eeb627 R09: 1ffff110085dd6c4 R10: dffffc0000000000 R11: ffffed10085dd6c5 R12: ffff888043997850 R13: dffffc0000000000 R14: ffff888042eeb620 R15: ffff888012e3c000 FS: 00007f64c03f56c0(0000) GS:ffff88808c53e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b3a93d3168 CR3: 00000000445fc000 CR4: 0000000000352ef0