syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479400, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934925, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479408, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934926, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479416, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934927, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479424, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934928, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479432, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934929, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479440, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934930, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479448, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934931, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479456, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934932, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479464, nr_sectors = 8 limit=32768 Buffer I/O error on dev loop0, logical block 8589934933, 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: 5354 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+0x9aa/0x9c0 fs/gfs2/lops.c:107 Code: fe e9 24 fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 52 fb ff ff 4c 89 e7 e8 31 71 0e fe e9 45 fb ff ff e8 d7 9e a1 fd 90 <0f> 0b e8 cf 9e a1 fd 90 0f 0b e8 c7 9e a1 fd 90 0f 0b 0f 1f 40 00 RSP: 0018:ffffc9000e25f330 EFLAGS: 00010287 RAX: ffffffff84242689 RBX: ffff88800e517100 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 000000000001f317 RDI: 000000000001f318 RBP: 1ffff11001ca2e3d R08: ffff88805587bbcf R09: 1ffff1100ab0f779 R10: dffffc0000000000 R11: ffffed100ab0f77a R12: dffffc0000000000 R13: ffff88801fc5fd20 R14: ffff88805587bbc8 R15: ffff888034648000 FS: 00007f6ac13066c0(0000) GS:ffff88808c87b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559a0e76d628 CR3: 000000000e4ef000 CR4: 0000000000352ef0 Call Trace: databuf_lo_after_commit+0x15e/0x1b0 fs/gfs2/lops.c:1080 lops_after_commit fs/gfs2/lops.h:51 [inline] __gfs2_log_flush+0xfb6/0x1dc0 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+0x32e/0x550 mm/page-writeback.c:2571 filemap_writeback mm/filemap.c:388 [inline] filemap_fdatawrite_range+0x1ef/0x2f0 mm/filemap.c:413 gfs2_fsync+0xd8/0x370 fs/gfs2/file.c:752 generic_write_sync include/linux/fs.h:2654 [inline] gfs2_file_write_iter+0xee4/0x1130 fs/gfs2/file.c:1168 do_iter_readv_writev+0x619/0x8c0 fs/read_write.c:-1 vfs_writev+0x33c/0x990 fs/read_write.c:1059 do_pwritev fs/read_write.c:1155 [inline] __do_sys_pwritev2 fs/read_write.c:1213 [inline] __se_sys_pwritev2+0x184/0x2a0 fs/read_write.c:1204 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6ac039ce59 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:00007f6ac1305fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f6ac0616090 RCX: 00007f6ac039ce59 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000011 RBP: 00007f6ac0432d6f R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000007000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6ac0616128 R14: 00007f6ac0616090 R15: 00007fff1da20748 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_unpin+0x9aa/0x9c0 fs/gfs2/lops.c:107 Code: fe e9 24 fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 52 fb ff ff 4c 89 e7 e8 31 71 0e fe e9 45 fb ff ff e8 d7 9e a1 fd 90 <0f> 0b e8 cf 9e a1 fd 90 0f 0b e8 c7 9e a1 fd 90 0f 0b 0f 1f 40 00 RSP: 0018:ffffc9000e25f330 EFLAGS: 00010287 RAX: ffffffff84242689 RBX: ffff88800e517100 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 000000000001f317 RDI: 000000000001f318 RBP: 1ffff11001ca2e3d R08: ffff88805587bbcf R09: 1ffff1100ab0f779 R10: dffffc0000000000 R11: ffffed100ab0f77a R12: dffffc0000000000 R13: ffff88801fc5fd20 R14: ffff88805587bbc8 R15: ffff888034648000 FS: 00007f6ac13066c0(0000) GS:ffff88808c87b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8b416dcd00 CR3: 000000000e4ef000 CR4: 0000000000352ef0