gfs2: fsid=syz:syz.0: G: s:EX n:8/0 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:3714 [syz-executor.2] 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: 0 PID: 3714 Comm: syz-executor.2 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 20 8f f6 89 e8 06 31 f3 ff ba 01 00 00 00 4c 89 e6 31 ff e8 88 cc 58 fa <0f> 0b e8 31 8f b0 f8 4c 8b 04 24 e9 7f fd ff ff 45 31 ff e9 fc fd RSP: 0018:ffffc90002047ac8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888044f9e260 RCX: 0000000000000000 RDX: ffff88801f3e8000 RSI: ffffffff8366a5b6 RDI: ffffffff89f6c488 RBP: ffff888078b9e038 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff8366a562 R11: 0000000000000000 R12: ffff888044f9e260 R13: 0000000000000001 R14: ffff88806cf812c0 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88802ca00000(0063) knlGS:000000005810c380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000056ce1404 CR3: 0000000076907000 CR4: 0000000000152ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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_fast_syscall_32+0x72/0xf0 arch/x86/entry/common.c:181 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf6ec2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ffe7dc0c EFLAGS: 00000296 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000ffe7dcb0 RCX: 000000000000000a RDX: 00000000f6ff8000 RSI: 0000000000000000 RDI: 00000000f6f72375 RBP: 00000000ffe7dcb0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 08f42b5586305b55 ]--- 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 20 8f f6 89 e8 06 31 f3 ff ba 01 00 00 00 4c 89 e6 31 ff e8 88 cc 58 fa <0f> 0b e8 31 8f b0 f8 4c 8b 04 24 e9 7f fd ff ff 45 31 ff e9 fc fd RSP: 0018:ffffc90002047ac8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888044f9e260 RCX: 0000000000000000 RDX: ffff88801f3e8000 RSI: ffffffff8366a5b6 RDI: ffffffff89f6c488 RBP: ffff888078b9e038 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff8366a562 R11: 0000000000000000 R12: ffff888044f9e260 R13: 0000000000000001 R14: ffff88806cf812c0 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88802ca00000(0063) knlGS:000000005810c380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000056ce1404 CR3: 0000000076907000 CR4: 0000000000152ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi