loop0: detected capacity change from 0 to 32768 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS (format 1801)... gfs2: fsid=syz:syz.0: journal 0 mapped with 9 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount gfs2: fsid=syz:syz.0: found 1 quota changes 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: 5322 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 13 8a eb fd e9 c7 fa ff ff e8 49 13 7a fd 90 <0f> 0b e8 41 13 7a fd 90 0f 0b e8 39 13 7a fd 90 0f 0b 66 0f 1f 44 RSP: 0018:ffffc9000dbb7270 EFLAGS: 00010283 RAX: ffffffff844db8e7 RBX: ffff888042bc1100 RCX: 0000000000100000 RDX: ffffc9000e93a000 RSI: 0000000000001b85 RDI: 0000000000001b86 RBP: 1ffff1100857823d R08: ffff88803252c707 R09: 1ffff110064a58e0 R10: dffffc0000000000 R11: ffffed10064a58e1 R12: ffff888042bef850 R13: dffffc0000000000 R14: ffff88803252c700 R15: ffff888038eb4000 FS: 00007f9f7b1ad6c0(0000) GS:ffff88808c2cd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f26dac48b50 CR3: 000000001303e000 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:2560 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:2686 [inline] gfs2_file_write_iter+0xf77/0x1170 fs/gfs2/file.c:1172 aio_write+0x5d0/0x870 fs/aio.c:1687 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x798/0x13d0 fs/aio.c:2106 __do_sys_io_submit fs/aio.c:2165 [inline] __se_sys_io_submit+0x195/0x340 fs/aio.c:2135 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9f7a39e159 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:00007f9f7b1acfe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f9f7a625fa0 RCX: 00007f9f7a39e159 RDX: 0000200000000700 RSI: 0000000000000001 RDI: 00007f9f7b163000 RBP: 00007f9f7a435024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9f7a626038 R14: 00007f9f7a625fa0 R15: 00007ffdd4069ee8 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 13 8a eb fd e9 c7 fa ff ff e8 49 13 7a fd 90 <0f> 0b e8 41 13 7a fd 90 0f 0b e8 39 13 7a fd 90 0f 0b 66 0f 1f 44 RSP: 0018:ffffc9000dbb7270 EFLAGS: 00010283 RAX: ffffffff844db8e7 RBX: ffff888042bc1100 RCX: 0000000000100000 RDX: ffffc9000e93a000 RSI: 0000000000001b85 RDI: 0000000000001b86 RBP: 1ffff1100857823d R08: ffff88803252c707 R09: 1ffff110064a58e0 R10: dffffc0000000000 R11: ffffed10064a58e1 R12: ffff888042bef850 R13: dffffc0000000000 R14: ffff88803252c700 R15: ffff888038eb4000 FS: 00007f9f7b1ad6c0(0000) GS:ffff88808c2cd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9f7b18bff8 CR3: 000000001303e000 CR4: 0000000000352ef0