overlayfs: upper fs needs to support d_type. overlayfs: upper fs does not support tmpfile. BUG: spinlock bad magic on CPU#1, syz-executor.0/5289 BUG: unable to handle page fault for address: ffffff8aa75005a0 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD c572067 P4D c572067 PUD 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5289 Comm: syz-executor.0 Not tainted 6.2.0-next-20230303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:task_pid_nr include/linux/sched.h:1568 [inline] RIP: 0010:spin_dump kernel/locking/spinlock_debug.c:63 [inline] RIP: 0010:spin_bug+0x104/0x1c0 kernel/locking/spinlock_debug.c:77 Code: 44 8b 4d 08 74 7d 48 8d bb a0 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 68 <44> 8b 83 a0 05 00 00 48 8d 8b 08 08 00 00 48 8d 7d 04 48 b8 00 00 RSP: 0018:ffffc90005067988 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffff8aa7500000 RCX: 0000000000000000 RDX: 1ffffff154ea00b4 RSI: ffffffff81690f6c RDI: ffffff8aa75005a0 RBP: ffffffff92000b37 R08: 0000000000000005 R09: 00000000000000ff R10: 0000000000000001 R11: 697073203a475542 R12: ffffffff8a4cd220 R13: ffff888026a80000 R14: ffff88802a436440 R15: ffff88806ee92000 FS: 00007f557e29a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffff8aa75005a0 CR3: 00000000297b3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] do_raw_spin_lock+0x219/0x2b0 kernel/locking/spinlock_debug.c:114 spin_lock include/linux/spinlock.h:350 [inline] take_dentry_name_snapshot+0x2b/0x170 fs/dcache.c:315 ovl_check_rename_whiteout fs/overlayfs/super.c:1207 [inline] ovl_make_workdir fs/overlayfs/super.c:1329 [inline] ovl_get_workdir fs/overlayfs/super.c:1444 [inline] ovl_fill_super+0x2090/0x7270 fs/overlayfs/super.c:2000 mount_nodev+0x64/0x120 fs/super.c:1417 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x350 fs/super.c:1501 do_new_mount fs/namespace.c:3042 [inline] path_mount+0x1342/0x1e40 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f557d48c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f557e29a168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f557d5abf80 RCX: 00007f557d48c0f9 RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000 RBP: 00007f557d4e7ae9 R08: 0000000020000480 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd082b324f R14: 00007f557e29a300 R15: 0000000000022000 Modules linked in: CR2: ffffff8aa75005a0 ---[ end trace 0000000000000000 ]--- RIP: 0010:task_pid_nr include/linux/sched.h:1568 [inline] RIP: 0010:spin_dump kernel/locking/spinlock_debug.c:63 [inline] RIP: 0010:spin_bug+0x104/0x1c0 kernel/locking/spinlock_debug.c:77 Code: 44 8b 4d 08 74 7d 48 8d bb a0 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 68 <44> 8b 83 a0 05 00 00 48 8d 8b 08 08 00 00 48 8d 7d 04 48 b8 00 00 RSP: 0018:ffffc90005067988 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffff8aa7500000 RCX: 0000000000000000 RDX: 1ffffff154ea00b4 RSI: ffffffff81690f6c RDI: ffffff8aa75005a0 RBP: ffffffff92000b37 R08: 0000000000000005 R09: 00000000000000ff R10: 0000000000000001 R11: 697073203a475542 R12: ffffffff8a4cd220 R13: ffff888026a80000 R14: ffff88802a436440 R15: ffff88806ee92000 FS: 00007f557e29a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffff8aa75005a0 CR3: 00000000297b3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 44 8b 4d 08 mov 0x8(%rbp),%r9d 4: 74 7d je 0x83 6: 48 8d bb a0 05 00 00 lea 0x5a0(%rbx),%rdi d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 14: fc ff df 17: 48 89 fa mov %rdi,%rdx 1a: 48 c1 ea 03 shr $0x3,%rdx 1e: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax 22: 84 c0 test %al,%al 24: 74 04 je 0x2a 26: 3c 03 cmp $0x3,%al 28: 7e 68 jle 0x92 * 2a: 44 8b 83 a0 05 00 00 mov 0x5a0(%rbx),%r8d <-- trapping instruction 31: 48 8d 8b 08 08 00 00 lea 0x808(%rbx),%rcx 38: 48 8d 7d 04 lea 0x4(%rbp),%rdi 3c: 48 rex.W 3d: b8 .byte 0xb8