9pnet: Insufficient options for proto=fd 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. ====================================================== WARNING: possible circular locking dependency detected 4.14.292-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.5/10656 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: (&oi->lock){+.+.}, at: [] ovl_nlink_start+0x22f/0x460 fs/overlayfs/util.c:523 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&oi->lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 ovl_copy_up_start+0x40/0xe0 fs/overlayfs/util.c:318 ovl_copy_up_one+0x21f/0x910 fs/overlayfs/copy_up.c:631 ovl_copy_up_flags+0xd5/0x120 fs/overlayfs/copy_up.c:686 ovl_do_remove+0xbb/0xb90 fs/overlayfs/dir.c:763 vfs_unlink+0x230/0x470 fs/namei.c:4029 9pnet: Insufficient options for proto=fd do_unlinkat+0x30c/0x5c0 fs/namei.c:4094 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #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 9pnet: Insufficient options for proto=fd ovl_lower_positive+0x184/0x350 fs/overlayfs/namei.c:783 ovl_do_remove+0x12a/0xb90 fs/overlayfs/dir.c:772 vfs_unlink+0x230/0x470 fs/namei.c:4029 do_unlinkat+0x30c/0x5c0 fs/namei.c:4094 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: Chain exists of: &ovl_i_mutex_dir_key[depth] --> sb_writers#3 --> &oi->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&oi->lock); lock(sb_writers#3); lock(&oi->lock); lock(&ovl_i_mutex_dir_key[depth]); *** DEADLOCK *** 5 locks held by syz-executor.5/10656: #0: (sb_writers#15){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#15){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&ovl_i_mutex_dir_key[depth]#2/1){+.+.}, at: [] inode_lock_nested include/linux/fs.h:754 [inline] #1: (&ovl_i_mutex_dir_key[depth]#2/1){+.+.}, at: [] do_unlinkat+0x201/0x5c0 fs/namei.c:4080 #2: (&ovl_i_mutex_key[depth]){+.+.}, at: [] inode_lock include/linux/fs.h:719 [inline] #2: (&ovl_i_mutex_key[depth]){+.+.}, at: [] vfs_unlink+0xc0/0x470 fs/namei.c:4020 #3: (sb_writers#3){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #3: (sb_writers#3){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #4: (&oi->lock){+.+.}, at: [] ovl_nlink_start+0x22f/0x460 fs/overlayfs/util.c:523 stack backtrace: CPU: 0 PID: 10656 Comm: syz-executor.5 Not tainted 4.14.292-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/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 FAT-fs (loop0): Unrecognized mount option "¸›ø5Hõ O~¯Í9ô‰·»%=í~8ùAn’üO‘’/¹u¯" or missing value 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_do_remove+0x12a/0xb90 fs/overlayfs/dir.c:772 vfs_unlink+0x230/0x470 fs/namei.c:4029 do_unlinkat+0x30c/0x5c0 fs/namei.c:4094 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fb49c9e4409 RSP: 002b:00007fb49b359168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fb49caf6f80 RCX: 00007fb49c9e4409 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200002c0 RBP: 00007fb49ca3f367 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe204a140f R14: 00007fb49b359300 R15: 0000000000022000 audit: type=1804 audit(1663123253.425:39): pid=10688 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir3889874463/syzkaller.RLx6Wl/60/file0" dev="sda1" ino=14059 res=1 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. tmpfs: Bad value 'bind:=' for mount option 'mpol' 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. print_req_error: I/O error, dev loop3, sector 0 audit: type=1804 audit(1663123254.445:40): pid=10764 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir3889874463/syzkaller.RLx6Wl/61/file0" dev="sda1" ino=14092 res=1 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. audit: type=1804 audit(1663123254.455:41): pid=10757 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir910942708/syzkaller.f42Nmj/43/file0" dev="sda1" ino=13980 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: fs on './file0' does not support file handles, falling back to index=off. FAT-fs (loop0): bogus number of FAT sectors FAT-fs (loop0): Can't find a valid FAT filesystem audit: type=1804 audit(1663123255.405:42): pid=10804 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1750430222/syzkaller.xp26NX/58/bus" dev="sda1" ino=14121 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. audit: type=1800 audit(1663123255.455:43): pid=10804 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file0" dev="sda1" ino=14125 res=0 audit: type=1804 audit(1663123255.535:44): pid=10804 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1750430222/syzkaller.xp26NX/58/file0" dev="sda1" ino=14125 res=1 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. audit: type=1804 audit(1663123255.925:45): pid=10841 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1750430222/syzkaller.xp26NX/59/bus" dev="sda1" ino=14116 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. audit: type=1804 audit(1663123255.995:46): pid=10839 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir910942708/syzkaller.f42Nmj/47/bus" dev="sda1" ino=14117 res=1 audit: type=1800 audit(1663123256.005:47): pid=10839 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="sda1" ino=14128 res=0 audit: type=1800 audit(1663123256.005:48): pid=10848 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file0" dev="sda1" ino=14127 res=0 audit: type=1804 audit(1663123256.085:49): pid=10839 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir910942708/syzkaller.f42Nmj/47/file0" dev="sda1" ino=14128 res=1 audit: type=1804 audit(1663123256.095:50): pid=10848 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1750430222/syzkaller.xp26NX/59/file0" dev="sda1" ino=14127 res=1 audit: type=1804 audit(1663123256.145:51): pid=10857 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1010564833/syzkaller.XyfF5M/38/bus" dev="sda1" ino=14113 res=1 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. tmpfs: Bad value 'interleave=relative:9-0-' for mount option 'mpol' overlayfs: fs on './file0' does not support file handles, falling back to index=off. EXT4-fs (loop4): Ignoring removed mblk_io_submit option overlayfs: fs on 'file0' does not support file handles, falling back to index=off. EXT4-fs (loop4): mounted filesystem without journal. Opts: bsdgroups,sb=0x0000000080000001,usrquota,noload,mblk_io_submit,,errors=continue 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. ISO 9660 Extensions: Microsoft Joliet Level 3 overlayfs: failed to resolve './file1': -2 EXT4-fs (loop4): first meta block group too large: 12 (group descriptor block count 1) attempt to access beyond end of device loop0: rw=2049, want=16, limit=15 Buffer I/O error on dev loop0, logical block 15, lost async page write attempt to access beyond end of device loop0: rw=2049, want=16, limit=15 Buffer I/O error on dev loop0, logical block 15, lost async page write overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: failed to resolve './file1': -2 overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: failed to resolve './file1': -2 ISOFS: Unable to identify CD-ROM format. EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop4): ext4_append:77: inode #2: comm syz-executor.4: Logical block already allocated overlayfs: fs on './file0' does not support file handles, falling back to index=off. EXT4-fs error (device loop4): ext4_append:77: inode #2: comm syz-executor.4: Logical block already allocated attempt to access beyond end of device loop1: rw=2049, want=16, limit=15 EXT4-fs error (device loop4): ext4_append:77: inode #2: comm syz-executor.4: Logical block already allocated Buffer I/O error on dev loop1, logical block 15, lost async page write attempt to access beyond end of device loop1: rw=2049, want=16, limit=15 Buffer I/O error on dev loop1, logical block 15, lost async page write 9pnet: Insufficient options for proto=fd overlayfs: fs on './file0' does not support file handles, falling back to index=off. EXT4-fs (loop4): invalid inodes per group: 3 9pnet: Insufficient options for proto=fd print_req_error: I/O error, dev loop4, sector 0 Buffer I/O error on dev loop4, logical block 0, async page read overlayfs: fs on './file0' does not support file handles, falling back to index=off. mmap: syz-executor.0 (11105) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. 9pnet: Insufficient options for proto=fd overlayfs: fs on './file0' does not support file handles, falling back to index=off. 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd overlayfs: failed to resolve './file0': -2 attempt to access beyond end of device loop4: rw=2049, want=128, limit=127 Buffer I/O error on dev loop4, logical block 127, lost async page write overlayfs: failed to resolve './file0': -2 EXT4-fs (loop1): Unsupported filesystem blocksize 67108864 (240 log_block_size) EXT4-fs (loop4): Unsupported blocksize for fs encryption overlayfs: failed to resolve './file0': -2 ISO 9660 Extensions: Microsoft Joliet Level 3 ISO 9660 Extensions: RRIP_1991A tmpfs: Bad value 'bind=static' for mount option 'mpol' overlayfs: failed to resolve './file0': -2 EXT4-fs (loop4): bad s_min_extra_isize: 38091 overlayfs: failed to resolve './file0': -2 ISO 9660 Extensions: Microsoft Joliet Level 3 ISO 9660 Extensions: RRIP_1991A EXT4-fs (loop0): Unrecognized mount option "ÑC`ŽÔ%÷«À¨A7A" or missing value overlayfs: failed to resolve './file0': -2 ISO 9660 Extensions: Microsoft Joliet Level 3 ISO 9660 Extensions: RRIP_1991A kauditd_printk_skb: 14 callbacks suppressed audit: type=1804 audit(1663123261.225:66): pid=11260 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir2422950700/syzkaller.QlbrFt/91/bus" dev="sda1" ino=14143 res=1 ISO 9660 Extensions: Microsoft Joliet Level 3 ISO 9660 Extensions: RRIP_1991A EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue audit: type=1800 audit(1663123262.065:67): pid=11325 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file1" dev="sda1" ino=14159 res=0 audit: type=1800 audit(1663123262.095:68): pid=11325 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file0" dev="sda1" ino=14186 res=0 audit: type=1804 audit(1663123262.125:69): pid=11303 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir1750430222/syzkaller.xp26NX/73/file0/file0" dev="sda1" ino=14186 res=1 EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue audit: type=1800 audit(1663123262.295:70): pid=11343 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="file0" dev="sda1" ino=14055 res=0 audit: type=1804 audit(1663123262.325:71): pid=11343 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir2422950700/syzkaller.QlbrFt/94/file0" dev="sda1" ino=14055 res=1 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop4): ext4_append:77: inode #2: comm syz-executor.4: Logical block already allocated