gfs2: fsid=syz:syz.0: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:5 m:20 p:0
gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:3725 [syz-executor.1] gfs2_quota_sync+0x2e2/0x660 fs/gfs2/quota.c:1310
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1548!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3725 Comm: syz-executor.1 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:add_to_queue fs/gfs2/glock.c:1548 [inline]
RIP: 0010:gfs2_glock_nq.cold+0x2a1/0x2fa fs/gfs2/glock.c:1572
Code: 74 04 3c 03 7e 76 8b 53 18 44 89 e9 4c 89 f6 48 c7 c7 60 58 f6 89 e8 88 3d f3 ff ba 01 00 00 00 4c 89 e6 31 ff e8 10 aa 57 fa <0f> 0b e8 19 64 af f8 4c 8b 04 24 e9 7f fd ff ff 45 31 ff e9 fc fd
RSP: 0000:ffffc90001f1fae8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88806f9aec80 RCX: 0000000000000000
RDX: ffff88804b334240 RSI: ffffffff83656106 RDI: ffffffff89f68dc8
RBP: ffff888018610238 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff836560b2 R11: 0000000000000000 R12: ffff88806f9aec80
R13: 0000000000000001 R14: ffff8880765592c0 R15: 0000000000000001
FS: 0000555557540400(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004cba71 CR3: 00000000735b2000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
gfs2_glock_nq_init fs/gfs2/glock.h:254 [inline]
do_sync+0x4b9/0xcf0 fs/gfs2/quota.c:902
gfs2_quota_sync+0x2e2/0x660 fs/gfs2/quota.c:1310
gfs2_sync_fs+0x40/0xb0 fs/gfs2/super.c:642
sync_filesystem fs/sync.c:56 [inline]
sync_filesystem+0x105/0x260 fs/sync.c:30
generic_shutdown_super+0x70/0x400 fs/super.c:448
kill_block_super+0x97/0xf0 fs/super.c:1397
gfs2_kill_sb+0x104/0x160 fs/gfs2/ops_fstype.c:1735
deactivate_locked_super+0x94/0x160 fs/super.c:335
deactivate_super+0xad/0xd0 fs/super.c:366
cleanup_mnt+0x3a2/0x540 fs/namespace.c:1137
task_work_run+0xdd/0x1a0 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207
__syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7ff8eb5b6f57
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffca9da6618 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007ff8eb5b6f57
RDX: 00007ffca9da66eb RSI: 000000000000000a RDI: 00007ffca9da66e0
RBP: 00007ffca9da66e0 R08: 00000000ffffffff R09: 00007ffca9da64b0
R10: 00005555575418b3 R11: 0000000000000246 R12: 00007ff8eb60f105
R13: 00007ffca9da77a0 R14: 0000555557541810 R15: 00007ffca9da77e0
</TASK>
Modules linked in:
---[ end trace f8afb8dcf8bb318a ]---
RIP: 0010:add_to_queue fs/gfs2/glock.c:1548 [inline]
RIP: 0010:gfs2_glock_nq.cold+0x2a1/0x2fa fs/gfs2/glock.c:1572
Code: 74 04 3c 03 7e 76 8b 53 18 44 89 e9 4c 89 f6 48 c7 c7 60 58 f6 89 e8 88 3d f3 ff ba 01 00 00 00 4c 89 e6 31 ff e8 10 aa 57 fa <0f> 0b e8 19 64 af f8 4c 8b 04 24 e9 7f fd ff ff 45 31 ff e9 fc fd
RSP: 0000:ffffc90001f1fae8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88806f9aec80 RCX: 0000000000000000
RDX: ffff88804b334240 RSI: ffffffff83656106 RDI: ffffffff89f68dc8
RBP: ffff888018610238 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff836560b2 R11: 0000000000000000 R12: ffff88806f9aec80
R13: 0000000000000001 R14: ffff8880765592c0 R15: 0000000000000001
FS: 0000555557540400(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004cba71 CR3: 00000000735b2000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400