BUG: kernel NULL pointer dereference, address: 0000000000000058 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 2301b1067 P4D 2301b1067 PUD 230109067 PMD 0 Oops: 0000 [#1] SMP CPU: 0 PID: 2995 Comm: gfs2_quotad Not tainted 5.1.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:gfs2_glock_hold+0x1/0x30 fs/gfs2/glock.c:159 Code: 89 fc 53 48 8d 5f 20 48 89 df e8 1a c9 b3 00 4c 89 e6 31 ff e8 f0 f0 ff ff 48 89 df e8 f8 c9 b3 00 5b 41 5c 5d c3 0f 1f 00 55 <8b> 47 58 48 89 e5 85 c0 78 0b 48 83 c7 20 e8 1c b4 11 00 5d c3 48 RSP: 0018:ffffc9000139bde0 EFLAGS: 00010202 RAX: ffff8882362f6f80 RBX: ffff88822d580000 RCX: ffffc9000139be10 RDX: 0000000000000400 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000139bdf0 R08: 0000000000000001 R09: 0000000000000000 R10: ffff88822d5fa410 R11: 0000000000000001 R12: 0000000000000bb8 R13: ffff88822d5fa000 R14: ffff888220970000 R15: ffff888220971600 FS: 0000000000000000(0000) GS:ffff888237a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000058 CR3: 00000002301e6000 CR4: 0000000000340ef0 Call Trace: gfs2_glock_nq_init fs/gfs2/glock.h:226 [inline] gfs2_statfs_sync+0x67/0x1f0 fs/gfs2/super.c:594 gfs2_quotad+0x204/0x29d fs/gfs2/quota.c:1549 kthread+0x119/0x130 kernel/kthread.c:253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Modules linked in: CR2: 0000000000000058 ---[ end trace 6d87c088630ed95d ]--- RIP: 0010:gfs2_glock_hold+0x1/0x30 fs/gfs2/glock.c:159 Code: 89 fc 53 48 8d 5f 20 48 89 df e8 1a c9 b3 00 4c 89 e6 31 ff e8 f0 f0 ff ff 48 89 df e8 f8 c9 b3 00 5b 41 5c 5d c3 0f 1f 00 55 <8b> 47 58 48 89 e5 85 c0 78 0b 48 83 c7 20 e8 1c b4 11 00 5d c3 48 RSP: 0018:ffffc9000139bde0 EFLAGS: 00010202 RAX: ffff8882362f6f80 RBX: ffff88822d580000 RCX: ffffc9000139be10 RDX: 0000000000000400 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000139bdf0 R08: 0000000000000001 R09: 0000000000000000 R10: ffff88822d5fa410 R11: 0000000000000001 R12: 0000000000000bb8 R13: ffff88822d5fa000 R14: ffff888220970000 R15: ffff888220971600 FS: 0000000000000000(0000) GS:ffff888237a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000058 CR3: 00000002301e6000 CR4: 0000000000340ef0 ---------------- Code disassembly (best guess): 0: 89 fc mov %edi,%esp 2: 53 push %rbx 3: 48 8d 5f 20 lea 0x20(%rdi),%rbx 7: 48 89 df mov %rbx,%rdi a: e8 1a c9 b3 00 call 0xb3c929 f: 4c 89 e6 mov %r12,%rsi 12: 31 ff xor %edi,%edi 14: e8 f0 f0 ff ff call 0xfffff109 19: 48 89 df mov %rbx,%rdi 1c: e8 f8 c9 b3 00 call 0xb3ca19 21: 5b pop %rbx 22: 41 5c pop %r12 24: 5d pop %rbp 25: c3 ret 26: 0f 1f 00 nopl (%rax) 29: 55 push %rbp * 2a: 8b 47 58 mov 0x58(%rdi),%eax <-- trapping instruction 2d: 48 89 e5 mov %rsp,%rbp 30: 85 c0 test %eax,%eax 32: 78 0b js 0x3f 34: 48 83 c7 20 add $0x20,%rdi 38: e8 1c b4 11 00 call 0x11b459 3d: 5d pop %rbp 3e: c3 ret 3f: 48 rex.W