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 3 extents in 0ms
gfs2: fsid=syz:syz.0: first mount done, others may mount
gfs2: fsid=syz:syz.0: found 1 quota changes
loop0: detected capacity change from 32768 to 0
gfs2: fsid=syz:syz.0: quota exceeded for group 0
loop0: writeback error on inode 9410, offset 0, sector 18822
gfs2: fsid=syz:syz.0: Error -5 writing to journal, jid=0
CPU: 0 UID: 60928 PID: 5345 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~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
gfs2_withdraw+0xc3/0x1b0 fs/gfs2/util.c:250
gfs2_end_log_write+0xcd/0x7c0 fs/gfs2/lops.c:212
gfs2_log_submit_bio+0x99/0xe0 fs/gfs2/lops.c:247
gfs2_log_flush+0xb0f/0x24c0 fs/gfs2/log.c:1099
do_sync+0xa1d/0xc60 fs/gfs2/quota.c:981
gfs2_quota_unlock+0x6f8/0x8a0 fs/gfs2/quota.c:1186
gfs2_iomap_begin_write fs/gfs2/bmap.c:-1 [inline]
gfs2_iomap_begin+0xbe3/0x1170 fs/gfs2/bmap.c:1133
iomap_iter+0x5ef/0xeb0 fs/iomap/iter.c:110
iomap_file_buffered_write+0x7f9/0x9c0 fs/iomap/buffered-io.c:1187
gfs2_file_buffered_write+0x4ed/0x880 fs/gfs2/file.c:1061
gfs2_file_write_iter+0x94e/0x1100 fs/gfs2/file.c:1166
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x5c9/0xb30 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd040b8f7c9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd041ae8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd040de5fa0 RCX: 00007fd040b8f7c9
RDX: 0000000000001006 RSI: 00002000000005c0 RDI: 0000000000000004
RBP: 00007fd040c13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd040de6038 R14: 00007fd040de5fa0 R15: 00007ffdc991a918
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: 5345 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~bpo12+1 04/01/2014
RIP: 0010:qd_put+0x18a/0x190 fs/gfs2/quota.c:331
Code: e7 e8 fa 8a 22 fe e9 ee fe ff ff 89 e9 80 e1 07 80 c1 03 38 c1 7c 83 48 89 ef e8 d1 8b 22 fe e9 76 ff ff ff e8 27 e0 ba fd 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000ea4f3e8 EFLAGS: 00010293
RAX: ffffffff84062579 RBX: ffff8880540d5000 RCX: ffff8880001ea4c0
RDX: 0000000000000000 RSI: 00000000ffffff80 RDI: 0000000000000000
RBP: 00000000ffffff80 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001d49e64 R12: ffff8880540d5070
R13: dffffc0000000000 R14: ffff8880540d5030 R15: 1ffff1100a81aa0e
FS: 00007fd041ae86c0(0000) GS:ffff88808d416000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdc9919f40 CR3: 00000000114fb000 CR4: 0000000000352ef0
Call Trace:
gfs2_quota_unhold+0x1c9/0x690 fs/gfs2/quota.c:653
gfs2_quota_unlock+0x7bd/0x8a0 fs/gfs2/quota.c:1191
gfs2_iomap_begin_write fs/gfs2/bmap.c:-1 [inline]
gfs2_iomap_begin+0xbe3/0x1170 fs/gfs2/bmap.c:1133
iomap_iter+0x5ef/0xeb0 fs/iomap/iter.c:110
iomap_file_buffered_write+0x7f9/0x9c0 fs/iomap/buffered-io.c:1187
gfs2_file_buffered_write+0x4ed/0x880 fs/gfs2/file.c:1061
gfs2_file_write_iter+0x94e/0x1100 fs/gfs2/file.c:1166
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x5c9/0xb30 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd040b8f7c9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd041ae8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd040de5fa0 RCX: 00007fd040b8f7c9
RDX: 0000000000001006 RSI: 00002000000005c0 RDI: 0000000000000004
RBP: 00007fd040c13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd040de6038 R14: 00007fd040de5fa0 R15: 00007ffdc991a918
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:qd_put+0x18a/0x190 fs/gfs2/quota.c:331
Code: e7 e8 fa 8a 22 fe e9 ee fe ff ff 89 e9 80 e1 07 80 c1 03 38 c1 7c 83 48 89 ef e8 d1 8b 22 fe e9 76 ff ff ff e8 27 e0 ba fd 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000ea4f3e8 EFLAGS: 00010293
RAX: ffffffff84062579 RBX: ffff8880540d5000 RCX: ffff8880001ea4c0
RDX: 0000000000000000 RSI: 00000000ffffff80 RDI: 0000000000000000
RBP: 00000000ffffff80 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001d49e64 R12: ffff8880540d5070
R13: dffffc0000000000 R14: ffff8880540d5030 R15: 1ffff1100a81aa0e
FS: 00007fd041ae86c0(0000) GS:ffff88808d416000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdc9919f40 CR3: 00000000114fb000 CR4: 0000000000352ef0