gfs2: pid: 8139 gfs2: lock type: 8 req lock state : 1 gfs2: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:5 m:20 gfs2: H: s:EX f:cH e:0 p:8139 [syz-executor.3] gfs2_glock_nq_init fs/gfs2/glock.h:226 [inline] gfs2: H: s:EX f:cH e:0 p:8139 [syz-executor.3] do_sync+0x442/0xc90 fs/gfs2/quota.c:896 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1082! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8139 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:add_to_queue fs/gfs2/glock.c:1082 [inline] RIP: 0010:gfs2_glock_nq.cold+0x276/0x2cd fs/gfs2/glock.c:1107 Code: 0f b6 04 02 84 c0 74 04 3c 03 7e 6e 8b 73 18 44 89 ea 48 c7 c7 60 4f a6 88 e8 02 57 f8 ff 48 8b 74 24 08 31 ff e8 0b cc 0a fb <0f> 0b e8 74 02 9d f9 4c 8b 04 24 e9 aa fd ff ff 31 ed e9 12 fe ff RSP: 0018:ffff8880a0f07a20 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88809e17fcf8 RCX: ffffffff83063ba3 RDX: 0000000000000000 RSI: ffffffff83063bf2 RDI: ffffffff88a67230 RBP: 0000000000001fcb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880aa376938 R13: 0000000000000001 R14: 0000000000000000 R15: ffff888098c58f00 FS: 0000555556e89400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000097f6e000 CR4: 00000000003426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_glock_nq_init fs/gfs2/glock.h:228 [inline] do_sync+0x44a/0xc90 fs/gfs2/quota.c:896 gfs2_quota_sync+0x5d1/0x780 fs/gfs2/quota.c:1303 gfs2_sync_fs+0x40/0xb0 fs/gfs2/super.c:957 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x105/0x250 fs/sync.c:64 generic_shutdown_super+0x70/0x370 fs/super.c:442 kill_block_super+0x97/0xf0 fs/super.c:1185 gfs2_kill_sb+0x12c/0x1a0 fs/gfs2/ops_fstype.c:1390 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fdcc8bf0537 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd368a8e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fdcc8bf0537 RDX: 00007ffd368a8f4a RSI: 000000000000000a RDI: 00007ffd368a8f40 RBP: 00007ffd368a8f40 R08: 00000000ffffffff R09: 00007ffd368a8d10 R10: 0000555556e8a903 R11: 0000000000000246 R12: 00007fdcc8c49b24 R13: 00007ffd368aa000 R14: 0000555556e8a810 R15: 00007ffd368aa040 Modules linked in: ---[ end trace 6e29aaffa56de3b7 ]--- kauditd_printk_skb: 2 callbacks suppressed audit: type=1800 audit(1674404358.278:132): pid=10836 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="file0" dev="sda1" ino=14036 res=0 RIP: 0010:add_to_queue fs/gfs2/glock.c:1082 [inline] RIP: 0010:gfs2_glock_nq.cold+0x276/0x2cd fs/gfs2/glock.c:1107 Code: 0f b6 04 02 84 c0 74 04 3c 03 7e 6e 8b 73 18 44 89 ea 48 c7 c7 60 4f a6 88 e8 02 57 f8 ff 48 8b 74 24 08 31 ff e8 0b cc 0a fb <0f> 0b e8 74 02 9d f9 4c 8b 04 24 e9 aa fd ff ff 31 ed e9 12 fe ff audit: type=1804 audit(1674404358.288:133): pid=10836 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir1523651975/syzkaller.VqDbvR/22/file0" dev="sda1" ino=14036 res=1 RSP: 0018:ffff8880a0f07a20 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88809e17fcf8 RCX: ffffffff83063ba3 RDX: 0000000000000000 RSI: ffffffff83063bf2 RDI: ffffffff88a67230 RBP: 0000000000001fcb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880aa376938 R13: 0000000000000001 R14: 0000000000000000 R15: ffff888098c58f00 FS: 0000555556e89400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000097f6e000 CR4: 00000000003426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400