BUG: kernel NULL pointer dereference, address: 0000000000000068 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 1055a8067 P4D 1055a8067 PUD 109062067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 7208 Comm: syz-executor.0 Not tainted 5.10.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:78 [inline] RIP: 0010:reiserfs_xattr_set+0x9f/0x160 fs/reiserfs/xattr.c:631 Code: 00 00 80 01 48 83 f8 01 48 19 c0 24 56 48 05 e0 00 00 00 f6 83 80 fe ff ff 40 75 18 48 8b 8e a0 05 00 00 48 8d 14 00 48 01 d0 <48> 83 79 68 00 74 03 48 89 d0 49 01 c4 e8 ff 07 00 00 48 8b 73 28 RSP: 0018:ffffc900035e3c78 EFLAGS: 00010212 RAX: 00000000000000a2 RBX: ffff88810a981d38 RCX: 0000000000000000 RDX: 000000000000006c RSI: ffff888104aea000 RDI: ffff8881090de000 RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000002 R10: ffffc900035e3dd0 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc900035e3dd0 R14: ffff8881054a9170 R15: 0000000000000000 FS: 00007f592c2486c0(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000068 CR3: 00000001054ab000 CR4: 0000000000350ee0 Call Trace: __vfs_setxattr+0x5e/0x80 fs/xattr.c:177 __vfs_setxattr_noperm+0x6b/0x1f0 fs/xattr.c:208 vfs_setxattr+0x66/0x110 fs/xattr.c:283 setxattr+0x120/0x240 fs/xattr.c:548 __do_sys_fsetxattr fs/xattr.c:603 [inline] __se_sys_fsetxattr fs/xattr.c:592 [inline] __x64_sys_fsetxattr+0x98/0xc0 fs/xattr.c:592 do_syscall_64+0x2e/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f592c6e6ce9 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:00007f592c2480c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007f592c806050 RCX: 00007f592c6e6ce9 RDX: 0000000020000400 RSI: 00000000200003c0 RDI: 0000000000000004 RBP: 00007f592c73347a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f592c806050 R15: 00007ffd61ca4f28 Modules linked in: CR2: 0000000000000068 ---[ end trace 6032be78742df4ce ]--- RIP: 0010:reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:78 [inline] RIP: 0010:reiserfs_xattr_set+0x9f/0x160 fs/reiserfs/xattr.c:631 Code: 00 00 80 01 48 83 f8 01 48 19 c0 24 56 48 05 e0 00 00 00 f6 83 80 fe ff ff 40 75 18 48 8b 8e a0 05 00 00 48 8d 14 00 48 01 d0 <48> 83 79 68 00 74 03 48 89 d0 49 01 c4 e8 ff 07 00 00 48 8b 73 28 RSP: 0018:ffffc900035e3c78 EFLAGS: 00010212 RAX: 00000000000000a2 RBX: ffff88810a981d38 RCX: 0000000000000000 RDX: 000000000000006c RSI: ffff888104aea000 RDI: ffff8881090de000 RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000002 R10: ffffc900035e3dd0 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc900035e3dd0 R14: ffff8881054a9170 R15: 0000000000000000 FS: 00007f592c2486c0(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000068 CR3: 00000001054ab000 CR4: 0000000000350ee0 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 80 01 48 addb $0x48,(%rcx) 5: 83 f8 01 cmp $0x1,%eax 8: 48 19 c0 sbb %rax,%rax b: 24 56 and $0x56,%al d: 48 05 e0 00 00 00 add $0xe0,%rax 13: f6 83 80 fe ff ff 40 testb $0x40,-0x180(%rbx) 1a: 75 18 jne 0x34 1c: 48 8b 8e a0 05 00 00 mov 0x5a0(%rsi),%rcx 23: 48 8d 14 00 lea (%rax,%rax,1),%rdx 27: 48 01 d0 add %rdx,%rax * 2a: 48 83 79 68 00 cmpq $0x0,0x68(%rcx) <-- trapping instruction 2f: 74 03 je 0x34 31: 48 89 d0 mov %rdx,%rax 34: 49 01 c4 add %rax,%r12 37: e8 ff 07 00 00 call 0x83b 3c: 48 8b 73 28 mov 0x28(%rbx),%rsi