BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 800000010cb35067 P4D 800000010cb35067 PUD 103b35067 PMD 0 Oops: Oops: 0000 [#1] PREEMPT SMP PTI CPU: 0 UID: 0 PID: 3331 Comm: syz.0.15 Not tainted 6.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:strlen+0xb/0x20 lib/string.c:402 Code: d8 5b 41 5e 41 5f c3 cc cc cc cc 90 0f 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 c7 c0 ff ff ff ff <80> 7c 07 01 00 48 8d 40 01 75 f5 c3 cc cc cc cc 0f 1f 44 00 00 90 RSP: 0018:ffffc90002d1fc68 EFLAGS: 00010246 RAX: ffffffffffffffff RBX: ffff888102b40000 RCX: 0000000000000000 RDX: ffffc90002d1fce8 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000001000 R09: 0000000000000000 R10: ffff888102b40000 R11: 0000000000000000 R12: 0000000000000003 R13: 0000000000000001 R14: 0000000000000000 R15: ffff8881771a4000 FS: 00007f38b18596c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010bf94000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: getname_kernel+0x13/0x100 fs/namei.c:232 kern_path+0x12/0x80 fs/namei.c:2716 is_good_dev_path fs/btrfs/volumes.c:760 [inline] btrfs_scan_one_device+0x90/0x450 fs/btrfs/volumes.c:1484 btrfs_get_tree_super fs/btrfs/super.c:1841 [inline] btrfs_get_tree+0xc7/0x770 fs/btrfs/super.c:2114 vfs_get_tree+0x24/0xb0 fs/super.c:1800 fc_mount+0xd/0x40 fs/namespace.c:1231 btrfs_get_tree_subvol fs/btrfs/super.c:2077 [inline] btrfs_get_tree+0x22d/0x770 fs/btrfs/super.c:2115 vfs_get_tree+0x24/0xb0 fs/super.c:1800 vfs_cmd_create+0x53/0xc0 fs/fsopen.c:225 __do_sys_fsconfig fs/fsopen.c:472 [inline] __se_sys_fsconfig+0x32c/0x4c0 fs/fsopen.c:344 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f38b097dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f38b1859038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f38b0b35f80 RCX: 00007f38b097dff9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 00007f38b09f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f38b0b35f80 R15: 00007fffa4b3bf28 Modules linked in: CR2: 0000000000000000 ---[ end trace 0000000000000000 ]--- RIP: 0010:strlen+0xb/0x20 lib/string.c:402 Code: d8 5b 41 5e 41 5f c3 cc cc cc cc 90 0f 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 c7 c0 ff ff ff ff <80> 7c 07 01 00 48 8d 40 01 75 f5 c3 cc cc cc cc 0f 1f 44 00 00 90 RSP: 0018:ffffc90002d1fc68 EFLAGS: 00010246 RAX: ffffffffffffffff RBX: ffff888102b40000 RCX: 0000000000000000 RDX: ffffc90002d1fce8 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000001000 R09: 0000000000000000 R10: ffff888102b40000 R11: 0000000000000000 R12: 0000000000000003 R13: 0000000000000001 R14: 0000000000000000 R15: ffff8881771a4000 FS: 00007f38b18596c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010bf94000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: d8 5b 41 fcomps 0x41(%rbx) 3: 5e pop %rsi 4: 41 5f pop %r15 6: c3 ret 7: cc int3 8: cc int3 9: cc int3 a: cc int3 b: 90 nop c: 0f 0b ud2 e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: f3 0f 1e fa endbr64 23: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax * 2a: 80 7c 07 01 00 cmpb $0x0,0x1(%rdi,%rax,1) <-- trapping instruction 2f: 48 8d 40 01 lea 0x1(%rax),%rax 33: 75 f5 jne 0x2a 35: c3 ret 36: cc int3 37: cc int3 38: cc int3 39: cc int3 3a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 3f: 90 nop