EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue overlayfs: fs on './file0' does not support file handles, falling back to index=off. EXT4-fs error (device loop5): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 8192 vs 22 free clusters ====================================================== WARNING: possible circular locking dependency detected 4.14.292-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.1/10482 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_xattr_set+0x21c/0x290 fs/overlayfs/inode.c:227 __vfs_removexattr+0xcf/0x120 fs/xattr.c:416 __vfs_removexattr_locked+0x12e/0x2f0 fs/xattr.c:448 vfs_removexattr+0xb1/0x210 fs/xattr.c:469 removexattr+0x98/0xe0 fs/xattr.c:763 path_removexattr+0xed/0x100 fs/xattr.c:777 SYSC_removexattr fs/xattr.c:791 [inline] SyS_removexattr+0x1e/0x30 fs/xattr.c:788 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_do_remove+0x67/0xb90 fs/overlayfs/dir.c:759 vfs_rmdir.part.0+0x144/0x390 fs/namei.c:3910 vfs_rmdir fs/namei.c:3895 [inline] do_rmdir+0x334/0x3c0 fs/namei.c:3970 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_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.1/10482: #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]#2){+.+.}, at: [] inode_lock include/linux/fs.h:719 [inline] #2: (&ovl_i_mutex_key[depth]#2){+.+.}, 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: 10482 Comm: syz-executor.1 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 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:0x7fb7cc6e2409 RSP: 002b:00007fb7cb057168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fb7cc7f4f80 RCX: 00007fb7cc6e2409 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200004c0 RBP: 00007fb7cc73d367 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc8add438f R14: 00007fb7cb057300 R15: 0000000000022000 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: 16 callbacks suppressed audit: type=1804 audit(1663116998.224:57): pid=10630 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1541768370/syzkaller.9t57N0/25/bus" dev="sda1" ino=14072 res=1 audit: type=1800 audit(1663116998.224:58): pid=10630 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14072 res=0 audit: type=1800 audit(1663116998.254:59): pid=10626 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="loop0" ino=28 res=0 audit: type=1804 audit(1663116998.254:60): pid=10626 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir947780507/syzkaller.s7J70f/28/file0/file0" dev="loop0" ino=28 res=1 audit: type=1804 audit(1663116998.264:61): pid=10626 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir947780507/syzkaller.s7J70f/28/file0/file0" dev="loop0" ino=28 res=1 audit: type=1800 audit(1663116998.624:62): pid=10647 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="sda1" ino=14074 res=0 audit: type=1804 audit(1663116998.634:63): pid=10647 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir947780507/syzkaller.s7J70f/29/file0" dev="sda1" ino=14074 res=1 audit: type=1804 audit(1663116998.634:64): pid=10647 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir947780507/syzkaller.s7J70f/29/file0" dev="sda1" ino=14074 res=1 audit: type=1804 audit(1663116999.624:65): pid=10670 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1541768370/syzkaller.9t57N0/26/bus" dev="sda1" ino=13923 res=1 audit: type=1800 audit(1663116999.624:66): pid=10670 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=13923 res=0 FAT-fs (loop0): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) EXT4-fs (loop2): revision level too high, forcing read-only mode EXT4-fs (loop2): warning: mounting fs with errors, running e2fsck is recommended EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): ext4_check_descriptors: Block bitmap for group 0 overlaps block group descriptors EXT4-fs (loop2): orphan cleanup on readonly fs EXT4-fs error (device loop2): ext4_quota_enable:5737: inode #3: comm syz-executor.2: iget: bad extended attribute block 2031624 EXT4-fs (loop2): Remounting filesystem read-only EXT4-fs error (device loop2): ext4_quota_enable:5739: comm syz-executor.2: Bad quota inode # 3 EXT4-fs warning (device loop2): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop2): Cannot turn on quotas: error -117 EXT4-fs (loop2): mounted filesystem without journal. Opts: errors=remount-ro, EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue overlayfs: unrecognized mount option "nfs_export=on" or missing value x_tables: ip_tables: TPROXY target: used from hooks FORWARD, but only usable from PREROUTING kauditd_printk_skb: 11 callbacks suppressed audit: type=1800 audit(1663117003.375:78): pid=10867 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="loop5" ino=33 res=0 audit: type=1800 audit(1663117003.425:79): pid=10878 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="sda1" ino=13891 res=0 overlayfs: unrecognized mount option "nfs_export=on" or missing value audit: type=1800 audit(1663117003.505:80): pid=10883 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="file0" dev="sda1" ino=14087 res=0 tmpfs: Bad value '82Ôk1' for mount option 'nr_inodes' overlayfs: unrecognized mount option "nfs_export=on" or missing value print_req_error: 6 callbacks suppressed print_req_error: I/O error, dev loop5, sector 0 Quota error (device loop1): v2_read_file_info: Free block number too big (0 >= 0). audit: type=1804 audit(1663117003.575:81): pid=10902 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir3261032808/syzkaller.CX9iXF/28/bus" dev="sda1" ino=14097 res=1 overlayfs: unrecognized mount option "nfs_export=on" or missing value EXT4-fs warning (device loop1): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop5): Mount option "noacl" will be removed by 3.5 Contact linux-ext4@vger.kernel.org if you think we should keep it. EXT4-fs (loop1): mount failed EXT4-fs (loop5): bad geometry: block count 256 exceeds size of device (2 blocks) overlayfs: unrecognized mount option "nfs_export=on" or missing value audit: type=1800 audit(1663117003.575:82): pid=10902 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=14097 res=0 overlayfs: unrecognized mount option "nfs_export=on" or missing value Quota error (device loop1): v2_read_file_info: Free block number too big (0 >= 0). audit: type=1800 audit(1663117003.605:83): pid=10896 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="sda1" ino=14084 res=0 EXT4-fs warning (device loop1): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. audit: type=1800 audit(1663117003.705:84): pid=10925 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="file0" dev="sda1" ino=14089 res=0 EXT4-fs (loop1): mount failed audit: type=1804 audit(1663117003.735:85): pid=10921 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir4119127221/syzkaller.Afz7uJ/42/file0/bus" dev="loop2" ino=34 res=1 print_req_error: I/O error, dev loop1, sector 0 overlayfs: unrecognized mount option "nfs_export=on" or missing value EXT4-fs warning (device loop1): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop1): mount failed unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1 overlayfs: failed to resolve './file0': -2 overlayfs: failed to resolve './file0': -2 EXT4-fs warning (device loop1): ext4_enable_quotas:5779: Failed to enable quota tracking (type=-1, err=-117). Please run e2fsck to fix. EXT4-fs (loop1): mount failed EXT4-fs (sda1): Remounting file system with no journal so ignoring journalled data option EXT4-fs (sda1): re-mounted. Opts: data=writeback,,errors=continue