loop0: rw=2049, sector=18886, nr_sectors = 62 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=19012, nr_sectors = 136 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=19150, nr_sectors = 52 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=19204, nr_sectors = 250 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=19456, nr_sectors = 250 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=19708, nr_sectors = 250 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=19960, nr_sectors = 250 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=20212, nr_sectors = 250 limit=64 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=20464, nr_sectors = 250 limit=64 gfs2: fsid=syz:syz.0: Error -5 writing to journal, jid=0 CPU: 0 UID: 60928 PID: 5328 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 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 gfs2_withdraw+0xc3/0x1b0 fs/gfs2/util.c:249 gfs2_end_log_write+0xcd/0x6f0 fs/gfs2/lops.c:212 gfs2_log_submit_write+0x7e/0xb0 fs/gfs2/lops.c:245 __gfs2_log_flush+0xb2a/0x1dc0 fs/gfs2/log.c:1141 gfs2_log_flush+0x34/0x50 fs/gfs2/log.c:1216 do_sync+0xa48/0xcb0 fs/gfs2/quota.c:982 gfs2_quota_unlock+0x707/0x8b0 fs/gfs2/quota.c:1187 gfs2_quota_lock_check fs/gfs2/quota.h:57 [inline] gfs2_iomap_begin_write fs/gfs2/bmap.c:1036 [inline] gfs2_iomap_begin+0xafc/0x12c0 fs/gfs2/bmap.c:1133 iomap_iter+0x600/0xf90 fs/iomap/iter.c:110 iomap_file_buffered_write+0x92f/0xb30 fs/iomap/buffered-io.c:1224 gfs2_file_buffered_write+0x4eb/0x870 fs/gfs2/file.c:1061 gfs2_file_write_iter+0x976/0x1130 fs/gfs2/file.c:1166 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 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:0x7fe79479ce59 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:00007fe7956affe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe794a16090 RCX: 00007fe79479ce59 RDX: 0000000000001006 RSI: 00002000000005c0 RDI: 0000000000000004 RBP: 00007fe794832d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe794a16128 R14: 00007fe794a16090 R15: 00007ffd70b642f8 gfs2: fsid=syz:syz.0: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/quota.c:331! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 60928 PID: 5328 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:qd_put+0x1a2/0x1b0 fs/gfs2/quota.c:331 Code: 0a fe e9 da fe ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 6f ff ff ff 48 89 ef e8 b9 d2 0a fe e9 62 ff ff ff e8 5f eb 9d fd 90 <0f> 0b 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000f8873c8 EFLAGS: 00010283 RAX: ffffffff8427dac1 RBX: ffff8880479f83f0 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000000491cc RDI: 00000000000491cd RBP: 00000000ffffff80 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001f10e60 R12: ffff8880479f8460 R13: dffffc0000000000 R14: ffff8880479f8420 R15: 1ffff11008f3f08c FS: 00007fe7956b06c0(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000350000 CR3: 0000000044737000 CR4: 0000000000352ef0 Call Trace: gfs2_quota_unhold+0x1c9/0x690 fs/gfs2/quota.c:654 gfs2_quota_unlock+0x7cc/0x8b0 fs/gfs2/quota.c:1192 gfs2_quota_lock_check fs/gfs2/quota.h:57 [inline] gfs2_iomap_begin_write fs/gfs2/bmap.c:1036 [inline] gfs2_iomap_begin+0xafc/0x12c0 fs/gfs2/bmap.c:1133 iomap_iter+0x600/0xf90 fs/iomap/iter.c:110 iomap_file_buffered_write+0x92f/0xb30 fs/iomap/buffered-io.c:1224 gfs2_file_buffered_write+0x4eb/0x870 fs/gfs2/file.c:1061 gfs2_file_write_iter+0x976/0x1130 fs/gfs2/file.c:1166 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 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:0x7fe79479ce59 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:00007fe7956affe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe794a16090 RCX: 00007fe79479ce59 RDX: 0000000000001006 RSI: 00002000000005c0 RDI: 0000000000000004 RBP: 00007fe794832d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe794a16128 R14: 00007fe794a16090 R15: 00007ffd70b642f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:qd_put+0x1a2/0x1b0 fs/gfs2/quota.c:331 Code: 0a fe e9 da fe ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 6f ff ff ff 48 89 ef e8 b9 d2 0a fe e9 62 ff ff ff e8 5f eb 9d fd 90 <0f> 0b 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000f8873c8 EFLAGS: 00010283 RAX: ffffffff8427dac1 RBX: ffff8880479f83f0 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000000491cc RDI: 00000000000491cd RBP: 00000000ffffff80 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001f10e60 R12: ffff8880479f8460 R13: dffffc0000000000 R14: ffff8880479f8420 R15: 1ffff11008f3f08c FS: 00007fe7956b06c0(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000350000 CR3: 0000000044737000 CR4: 0000000000352ef0