ceph: No mds server is up or the cluster is laggy overlayfs: fs on './file0' does not support file handles, falling back to index=off. ====================================================== WARNING: possible circular locking dependency detected 4.14.295-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/12355 is trying to acquire lock: (&ovl_i_mutex_dir_key[depth]){++++}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] (&ovl_i_mutex_dir_key[depth]){++++}, at: [] lookup_slow+0x129/0x400 fs/namei.c:1674 but task is already holding lock: (sb_writers#3){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] (sb_writers#3){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (sb_writers#3){.+.+}: percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x64/0x260 fs/super.c:1342 sb_start_write include/linux/fs.h:1551 [inline] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 ovl_create_object+0x75/0x1d0 fs/overlayfs/dir.c:538 lookup_open+0x77a/0x1750 fs/namei.c:3241 do_last fs/namei.c:3334 [inline] path_openat+0xe08/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #0 (&ovl_i_mutex_dir_key[depth]){++++}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 down_read+0x36/0x80 kernel/locking/rwsem.c:24 inode_lock_shared include/linux/fs.h:729 [inline] lookup_slow+0x129/0x400 fs/namei.c:1674 lookup_one_len_unlocked+0x3a0/0x410 fs/namei.c:2595 ovl_lower_positive+0x184/0x350 fs/overlayfs/namei.c:783 ovl_rename+0x47c/0xe50 fs/overlayfs/dir.c:968 vfs_rename+0x560/0x1820 fs/namei.c:4498 SYSC_renameat2 fs/namei.c:4646 [inline] SyS_renameat2+0x95b/0xad0 fs/namei.c:4535 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(sb_writers#3); lock(&ovl_i_mutex_dir_key[depth]); lock(sb_writers#3); lock(&ovl_i_mutex_dir_key[depth]); *** DEADLOCK *** 6 locks held by syz-executor.0/12355: #0: (sb_writers#14){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#14){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->s_vfs_rename_key#2){+.+.}, at: [] lock_rename+0x54/0x280 fs/namei.c:2889 #2: (&ovl_i_mutex_dir_key[depth]#2/1){+.+.}, at: [] inode_lock_nested include/linux/fs.h:754 [inline] #2: (&ovl_i_mutex_dir_key[depth]#2/1){+.+.}, at: [] lock_rename+0xa0/0x280 fs/namei.c:2893 #3: (&ovl_i_mutex_dir_key[depth]#2/2){+.+.}, at: [] inode_lock_nested include/linux/fs.h:754 [inline] #3: (&ovl_i_mutex_dir_key[depth]#2/2){+.+.}, at: [] lock_rename+0xd4/0x280 fs/namei.c:2894 #4: (&ovl_i_mutex_key[depth]#2/4){+.+.}, at: [] inode_lock_nested include/linux/fs.h:754 [inline] #4: (&ovl_i_mutex_key[depth]#2/4){+.+.}, at: [] lock_two_nondirectories+0xb2/0xf0 fs/inode.c:992 #5: (sb_writers#3){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #5: (sb_writers#3){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 stack backtrace: CPU: 0 PID: 12355 Comm: syz-executor.0 Not tainted 4.14.295-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 down_read+0x36/0x80 kernel/locking/rwsem.c:24 inode_lock_shared include/linux/fs.h:729 [inline] lookup_slow+0x129/0x400 fs/namei.c:1674 lookup_one_len_unlocked+0x3a0/0x410 fs/namei.c:2595 ovl_lower_positive+0x184/0x350 fs/overlayfs/namei.c:783 ovl_rename+0x47c/0xe50 fs/overlayfs/dir.c:968 vfs_rename+0x560/0x1820 fs/namei.c:4498 SYSC_renameat2 fs/namei.c:4646 [inline] SyS_renameat2+0x95b/0xad0 fs/namei.c:4535 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f944eddf5a9 RSP: 002b:00007f944d753168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f944ef00f80 RCX: 00007f944eddf5a9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000020000100 RBP: 00007f944ee3a580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd2217cedf R14: 00007f944d753300 R15: 0000000000022000 libceph: mon1 [::6]:6789 socket closed (con state CONNECTING) ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy libceph: mon1 [::6]:6789 socket closed (con state CONNECTING) libceph: mon1 [::6]:6789 socket closed (con state CONNECTING) overlayfs: fs on './file0' does not support file handles, falling back to index=off. libceph: connect [d::]:6789 error -101 libceph: mon0 [d::]:6789 connect error libceph: connect [d::]:6789 error -101 libceph: mon0 [d::]:6789 connect error overlayfs: fs on './file0' does not support file handles, falling back to index=off. ceph: No mds server is up or the cluster is laggy libceph: connect [d::]:6789 error -101 libceph: mon0 [d::]:6789 connect error overlayfs: fs on './file0' does not support file handles, falling back to index=off. ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy audit: type=1800 audit(1664466991.830:10): pid=12471 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="sda1" ino=14009 res=0 audit: type=1804 audit(1664466991.830:11): pid=12471 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/30/file0" dev="sda1" ino=14009 res=1 audit: type=1804 audit(1664466991.830:12): pid=12471 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/30/file0" dev="sda1" ino=14009 res=1 ceph: No mds server is up or the cluster is laggy overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. audit: type=1800 audit(1664466992.700:13): pid=12515 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="sda1" ino=14055 res=0 overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. audit: type=1804 audit(1664466992.710:14): pid=12515 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/31/file0" dev="sda1" ino=14055 res=1 overlayfs: fs on './file0' does not support file handles, falling back to index=off. audit: type=1804 audit(1664466992.710:15): pid=12515 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/31/file0" dev="sda1" ino=14055 res=1 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. audit: type=1800 audit(1664466993.580:16): pid=12537 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="sda1" ino=13987 res=0 overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. audit: type=1804 audit(1664466993.590:17): pid=12537 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/32/file0" dev="sda1" ino=13987 res=1 overlayfs: fs on './file0' does not support file handles, falling back to index=off. audit: type=1804 audit(1664466993.600:18): pid=12537 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/32/file0" dev="sda1" ino=13987 res=1 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. audit: type=1800 audit(1664466994.490:19): pid=12568 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="sda1" ino=14079 res=0 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. kauditd_printk_skb: 11 callbacks suppressed audit: type=1800 audit(1664466997.141:31): pid=12629 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="sda1" ino=14089 res=0 audit: type=1804 audit(1664466997.151:32): pid=12629 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir1388568437/syzkaller.VRb8S3/69/file0" dev="sda1" ino=14089 res=1 audit: type=1804 audit(1664466997.151:33): pid=12629 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir1388568437/syzkaller.VRb8S3/69/file0" dev="sda1" ino=14089 res=1 overlayfs: unrecognized mount option "xino=off" or missing value audit: type=1800 audit(1664466997.151:34): pid=12634 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="file0" dev="sda1" ino=14090 res=0 overlayfs: fs on './file0' does not support file handles, falling back to index=off. audit: type=1804 audit(1664466997.151:35): pid=12634 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir1480373712/syzkaller.9aqRmy/50/file0" dev="sda1" ino=14090 res=1 FAT-fs (loop5): bogus number of reserved sectors FAT-fs (loop5): Can't find a valid FAT filesystem audit: type=1804 audit(1664466997.151:36): pid=12634 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir1480373712/syzkaller.9aqRmy/50/file0" dev="sda1" ino=14090 res=1 FAT-fs (loop5): bogus number of reserved sectors audit: type=1800 audit(1664466998.031:37): pid=12644 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="sda1" ino=14092 res=0 audit: type=1804 audit(1664466998.071:38): pid=12644 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/36/file0" dev="sda1" ino=14092 res=1 FAT-fs (loop5): Can't find a valid FAT filesystem audit: type=1804 audit(1664466998.071:39): pid=12644 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.5" name="/root/syzkaller-testdir2355588128/syzkaller.H9WZw4/36/file0" dev="sda1" ino=14092 res=1 audit: type=1800 audit(1664466998.531:40): pid=12656 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="sda1" ino=13896 res=0 FAT-fs (loop5): bogus number of reserved sectors FAT-fs (loop5): Can't find a valid FAT filesystem FAT-fs (loop5): bogus number of reserved sectors FAT-fs (loop5): Can't find a valid FAT filesystem