gfs2: fsid=syz:syz.s: new: statfs_by_dentry fs/statfs.c:66 [inline] gfs2: fsid=syz:syz.s: new: vfs_get_fsid+0x17f/0x270 fs/statfs.c:77 gfs2: fsid=syz:syz.s: pid: 5434 gfs2: fsid=syz:syz.s: lock type: 3 req lock state : 3 gfs2: fsid=syz:syz.s: G: s:SH n:3/12 f:qobn t:SH d:EX/0 a:0 v:0 r:4 m:20 p:0 gfs2: fsid=syz:syz.s: H: s:SH f:aH e:0 p:5434 [syz-executor.3] statfs_by_dentry fs/statfs.c:66 [inline] gfs2: fsid=syz:syz.s: H: s:SH f:aH e:0 p:5434 [syz-executor.3] vfs_get_fsid+0x17f/0x270 fs/statfs.c:77 gfs2: fsid=syz:syz.s: R: n:18 f:80000000 b:0/0 i:0 q:0 r:0 e:0 gfs2: fsid=syz:syz.s: L: f:00 b:0 i:0 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1562! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5434 Comm: syz-executor.3 Not tainted 6.1.87-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:add_to_queue fs/gfs2/glock.c:1562 [inline] RIP: 0010:gfs2_glock_nq+0x166f/0x18a0 fs/gfs2/glock.c:1587 Code: 2c fe 0f b7 4d 00 48 c7 c7 00 90 30 8b 48 8b 74 24 20 89 da e8 32 f5 d2 06 31 ff 48 8b 74 24 28 ba 01 00 00 00 e8 e1 72 ff ff <0f> 0b 89 d9 80 e1 07 fe c1 38 c1 0f 8c 8c ee ff ff 48 89 df e8 d8 RSP: 0018:ffffc9000633fa78 EFLAGS: 00010246 RAX: b1551e0f6792dd00 RBX: 0000000000000003 RCX: 1ffff92000c67f00 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffff88801fc1a092 R08: dffffc0000000000 R09: ffffed100fad5c11 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880541fa600 R13: ffff88801fc1a070 R14: ffff88801fc1a030 R15: 1ffff11003f83403 FS: 00007f473f76e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffe0 CR3: 000000007748e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_glock_nq_init fs/gfs2/glock.h:264 [inline] gfs2_statfs_slow fs/gfs2/super.c:823 [inline] gfs2_statfs+0x352/0x8a0 fs/gfs2/super.c:897 statfs_by_dentry fs/statfs.c:66 [inline] vfs_get_fsid+0x17f/0x270 fs/statfs.c:77 fanotify_test_fsid+0xa4/0x370 fs/notify/fanotify/fanotify_user.c:1516 do_fanotify_mark+0x7ff/0xe00 fs/notify/fanotify/fanotify_user.c:1763 __do_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1840 [inline] __se_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1836 [inline] __x64_sys_fanotify_mark+0xb1/0xc0 fs/notify/fanotify/fanotify_user.c:1836 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f473ea7dea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f473f76e0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000012d RAX: ffffffffffffffda RBX: 00007f473ebabf80 RCX: 00007f473ea7dea9 RDX: 000000004800103d RSI: 0000000000000001 RDI: 0000000000000009 RBP: 00007f473eaca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f473ebabf80 R15: 00007ffef3d00de8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1562 [inline] RIP: 0010:gfs2_glock_nq+0x166f/0x18a0 fs/gfs2/glock.c:1587 Code: 2c fe 0f b7 4d 00 48 c7 c7 00 90 30 8b 48 8b 74 24 20 89 da e8 32 f5 d2 06 31 ff 48 8b 74 24 28 ba 01 00 00 00 e8 e1 72 ff ff <0f> 0b 89 d9 80 e1 07 fe c1 38 c1 0f 8c 8c ee ff ff 48 89 df e8 d8 RSP: 0018:ffffc9000633fa78 EFLAGS: 00010246 RAX: b1551e0f6792dd00 RBX: 0000000000000003 RCX: 1ffff92000c67f00 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffff88801fc1a092 R08: dffffc0000000000 R09: ffffed100fad5c11 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880541fa600 R13: ffff88801fc1a070 R14: ffff88801fc1a030 R15: 1ffff11003f83403 FS: 00007f473f76e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffe0 CR3: 000000007748e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400