gfs2: fsid=syz:syz.0: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:6 m:20 p:0 gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:9557 [syz-executor.3] gfs2_quota_sync+0x2e6/0x660 fs/gfs2/quota.c:1318 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1560! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9557 Comm: syz-executor.3 Not tainted 6.1.0-rc7-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:1560 [inline] RIP: 0010:gfs2_glock_nq.cold+0x2d3/0x354 fs/gfs2/glock.c:1585 Code: 8e 9c 00 00 00 8b 53 18 44 89 e9 4c 89 f6 48 c7 c7 20 32 97 8a e8 c7 18 f3 ff 48 8b 34 24 ba 01 00 00 00 31 ff e8 9f 60 d5 f9 <0f> 0b e8 98 57 18 f8 4c 8b 4c 24 18 4c 8b 44 24 10 e9 57 fd ff ff RSP: 0018:ffffc90002b2fa48 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888070ff0960 RCX: 0000000000000000 RDX: ffff88801d42d7c0 RSI: ffffffff838a07c7 RDI: ffffffff8a976930 RBP: ffff88805cf0aa38 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88805cf0aa00 R13: 0000000000000001 R14: ffff88801b231270 R15: ffffed100b9e154a FS: 0000000000000000(0000) GS:ffff88802c600000(0063) knlGS:0000000056e60380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000056e68efc CR3: 0000000062560000 CR4: 0000000000150ef0 Call Trace: gfs2_glock_nq_init fs/gfs2/glock.h:264 [inline] do_sync+0x4b9/0xcf0 fs/gfs2/quota.c:910 gfs2_quota_sync+0x2e6/0x660 fs/gfs2/quota.c:1318 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:643 sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56 sync_filesystem+0x8f/0xc0 fs/sync.c:43 generic_shutdown_super+0x74/0x410 fs/super.c:474 kill_block_super+0x9b/0xf0 fs/super.c:1428 gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738 deactivate_locked_super+0x98/0x160 fs/super.c:332 deactivate_super+0xb1/0xd0 fs/super.c:363 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1186 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296 __do_fast_syscall_32+0x72/0xf0 arch/x86/entry/common.c:181 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fa5549 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:00000000ffee9f0c EFLAGS: 00000296 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000ffee9fb0 RCX: 000000000000000a RDX: 00000000f734d000 RSI: 0000000000000000 RDI: 00000000f72a2535 RBP: 00000000ffee9fb0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1560 [inline] RIP: 0010:gfs2_glock_nq.cold+0x2d3/0x354 fs/gfs2/glock.c:1585 Code: 8e 9c 00 00 00 8b 53 18 44 89 e9 4c 89 f6 48 c7 c7 20 32 97 8a e8 c7 18 f3 ff 48 8b 34 24 ba 01 00 00 00 31 ff e8 9f 60 d5 f9 <0f> 0b e8 98 57 18 f8 4c 8b 4c 24 18 4c 8b 44 24 10 e9 57 fd ff ff RSP: 0018:ffffc90002b2fa48 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888070ff0960 RCX: 0000000000000000 RDX: ffff88801d42d7c0 RSI: ffffffff838a07c7 RDI: ffffffff8a976930 RBP: ffff88805cf0aa38 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88805cf0aa00 R13: 0000000000000001 R14: ffff88801b231270 R15: ffffed100b9e154a FS: 0000000000000000(0000) GS:ffff88802c600000(0063) knlGS:0000000056e60380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000056e68efc CR3: 0000000062560000 CR4: 0000000000150ef0 ---------------- 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