overlayfs: upper fs does not support tmpfile. BUG: spinlock bad magic on CPU#1, syz-executor.5/7337 BUG: unable to handle page fault for address: ffffff8aa6b885a0 #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: 7337 Comm: syz-executor.5 Not tainted 6.3.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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:ffffc9000ae5f988 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffff8aa6b88000 RCX: 0000000000000000 RDX: 1ffffff154d710b4 RSI: ffffffff8167778c RDI: ffffff8aa6b885a0 RBP: ffffffff920016f7 R08: 0000000000000005 R09: 00000000000000ff R10: 0000000000000001 R11: 697073203a475542 R12: ffffffff8a4cbee0 R13: ffff8880237357c0 R14: ffff888026b2b440 R15: ffff888073d49028 FS: 00007f23658b8700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffff8aa6b885a0 CR3: 00000000287df000 CR4: 0000000000350ee0 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:1426 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x350 fs/super.c:1510 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:0x7f2364a8c0f9 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:00007f23658b8168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2364babf80 RCX: 00007f2364a8c0f9 RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000 RBP: 00007f2364ae7b39 R08: 00000000200001c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff14125e7f R14: 00007f23658b8300 R15: 0000000000022000 Modules linked in: CR2: ffffff8aa6b885a0 ---[ 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:ffffc9000ae5f988 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffff8aa6b88000 RCX: 0000000000000000 RDX: 1ffffff154d710b4 RSI: ffffffff8167778c RDI: ffffff8aa6b885a0 RBP: ffffffff920016f7 R08: 0000000000000005 R09: 00000000000000ff R10: 0000000000000001 R11: 697073203a475542 R12: ffffffff8a4cbee0 R13: ffff8880237357c0 R14: ffff888026b2b440 R15: ffff888073d49028 FS: 00007f23658b8700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffff8aa6b885a0 CR3: 00000000287df000 CR4: 0000000000350ee0 ---------------- 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