REISERFS warning (device loop4): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are! REISERFS warning (device loop4): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 4) not found (pos 2) REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage. ====================================================== WARNING: possible circular locking dependency detected 4.14.303-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/10626 is trying to acquire lock: (sb_writers#14){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] (sb_writers#14){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 fs/namespace.c:497 but task is already holding lock: (&sbi->lock){+.+.}, at: [] reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&sbi->lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 reiserfs_lookup+0x130/0x400 fs/reiserfs/namei.c:363 lookup_real fs/namei.c:1555 [inline] __lookup_hash fs/namei.c:1575 [inline] __lookup_hash+0x1bb/0x270 fs/namei.c:1563 filename_create+0x156/0x3f0 fs/namei.c:3677 user_path_create fs/namei.c:3734 [inline] SYSC_mknodat fs/namei.c:3795 [inline] SyS_mknodat+0x13f/0x470 fs/namei.c:3783 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 -> #1 (&type->i_mutex_dir_key#8/1){+.+.}: down_write_nested+0x36/0x90 kernel/locking/rwsem.c:172 inode_lock_nested include/linux/fs.h:754 [inline] filename_create+0x12a/0x3f0 fs/namei.c:3676 user_path_create fs/namei.c:3734 [inline] SYSC_mknodat fs/namei.c:3795 [inline] SyS_mknodat+0x13f/0x470 fs/namei.c:3783 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 -> #0 (sb_writers#14){.+.+}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 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_file+0xfd/0x3b0 fs/namespace.c:497 reiserfs_ioctl+0x18e/0x8b0 fs/reiserfs/ioctl.c:110 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 other info that might help us debug this: Chain exists of: sb_writers#14 --> &type->i_mutex_dir_key#8/1 --> &sbi->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&sbi->lock); lock(&type->i_mutex_dir_key#8/1); lock(&sbi->lock); lock(sb_writers#14); *** DEADLOCK *** 1 lock held by syz-executor.4/10626: #0: (&sbi->lock){+.+.}, at: [] reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 stack backtrace: CPU: 1 PID: 10626 Comm: syz-executor.4 Not tainted 4.14.303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 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 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_file+0xfd/0x3b0 fs/namespace.c:497 reiserfs_ioctl+0x18e/0x8b0 fs/reiserfs/ioctl.c:110 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f8519ffa0c9 RSP: 002b:00007f851856c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f851a119f80 RCX: 00007f8519ffa0c9 RDX: 0000000000000000 RSI: 0000000040087602 RDI: 0000000000000004 RBP: 00007f851a055ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd04246ff R14: 00007f851856c300 R15: 0000000000022000 BTRFS info (device loop1): enabling inode map caching BTRFS info (device loop1): force clearing of disk cache BTRFS info (device loop1): disabling free space tree BTRFS info (device loop1): has skinny extents REISERFS (device loop4): found reiserfs format "3.6" with non-standard journal REISERFS (device loop4): using ordered data mode reiserfs: using flush barriers REISERFS (device loop4): journal params: device loop4, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop4): checking transaction log (loop4) REISERFS (device loop4): Using r5 hash to sort names REISERFS warning (device loop4): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are! REISERFS warning (device loop4): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 4) not found (pos 2) BTRFS info (device loop1): clearing free space tree BTRFS info (device loop1): clearing 1 ro feature flag BTRFS info (device loop1): clearing 2 ro feature flag REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage. BTRFS info (device loop1): checking UUID tree REISERFS (device loop4): found reiserfs format "3.6" with non-standard journal REISERFS (device loop4): using ordered data mode reiserfs: using flush barriers REISERFS (device loop4): journal params: device loop4, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop4): checking transaction log (loop4) REISERFS (device loop4): Using r5 hash to sort names REISERFS warning (device loop4): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are! REISERFS warning (device loop4): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 4) not found (pos 2) REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage. BTRFS info (device loop3): enabling inode map caching BTRFS info (device loop3): force clearing of disk cache BTRFS info (device loop3): disabling free space tree BTRFS info (device loop3): has skinny extents REISERFS (device loop4): found reiserfs format "3.6" with non-standard journal REISERFS (device loop4): using ordered data mode reiserfs: using flush barriers REISERFS (device loop4): journal params: device loop4, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop4): checking transaction log (loop4) REISERFS (device loop4): Using r5 hash to sort names REISERFS warning (device loop4): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are! REISERFS warning (device loop4): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 4) not found (pos 2) BTRFS info (device loop3): clearing free space tree BTRFS info (device loop3): clearing 1 ro feature flag REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage. BTRFS info (device loop3): clearing 2 ro feature flag BTRFS info (device loop3): checking UUID tree BTRFS info (device loop3): enabling inode map caching BTRFS info (device loop3): force clearing of disk cache BTRFS info (device loop3): disabling free space tree BTRFS info (device loop3): has skinny extents BTRFS info (device loop3): clearing free space tree BTRFS info (device loop3): clearing 1 ro feature flag BTRFS info (device loop3): clearing 2 ro feature flag BTRFS info (device loop3): checking UUID tree BTRFS info (device loop3): enabling inode map caching BTRFS info (device loop3): force clearing of disk cache BTRFS info (device loop3): disabling free space tree BTRFS info (device loop3): has skinny extents BTRFS info (device loop3): clearing free space tree BTRFS info (device loop3): clearing 1 ro feature flag BTRFS info (device loop3): clearing 2 ro feature flag BTRFS info (device loop3): checking UUID tree XFS (loop2): Mounting V4 Filesystem XFS (loop2): Ending clean mount XFS (loop2): Quotacheck needed: Please wait. XFS (loop2): Quotacheck: Done. syz-executor.2 (11093) used greatest stack depth: 24008 bytes left XFS (loop2): Unmounting Filesystem XFS (loop2): Mounting V4 Filesystem XFS (loop2): Ending clean mount XFS (loop2): Quotacheck needed: Please wait. XFS (loop2): Quotacheck: Done. XFS (loop2): Unmounting Filesystem XFS (loop2): Mounting V4 Filesystem XFS (loop2): Ending clean mount XFS (loop2): Quotacheck needed: Please wait. XFS (loop2): Quotacheck: Done. XFS (loop2): Unmounting Filesystem XFS (loop2): Mounting V4 Filesystem XFS (loop2): Ending clean mount XFS (loop2): Quotacheck needed: Please wait. XFS (loop2): Quotacheck: Done. XFS (loop2): Unmounting Filesystem ntfs: volume version 3.1. ntfs: (device loop1): ntfs_cluster_alloc(): Failed to allocate clusters, aborting (error -28). ntfs: (device loop1): ntfs_attr_extend_allocation(): Cannot extend allocation of inode 0x43, attribute type 0x80, because the allocation of clusters failed with error code -28. EXT4-fs (loop3): Unrecognized mount option "0xffffffffffffffff" or missing value ntfs: volume version 3.1. ntfs: volume version 3.1. ntfs: (device loop0): ntfs_cluster_alloc(): Failed to allocate clusters, aborting (error -28). ntfs: (device loop4): ntfs_cluster_alloc(): Failed to allocate clusters, aborting (error -28). ntfs: (device loop0): ntfs_attr_extend_allocation(): Cannot extend allocation of inode 0x43, attribute type 0x80, because the allocation of clusters failed with error code -28. ntfs: (device loop4): ntfs_attr_extend_allocation(): Cannot extend allocation of inode 0x43, attribute type 0x80, because the allocation of clusters failed with error code -28. EXT4-fs (loop3): Unrecognized mount option "0xffffffffffffffff" or missing value EXT4-fs (loop2): Unrecognized mount option "0xffffffffffffffff" or missing value ntfs: volume version 3.1. ntfs: (device loop1): ntfs_cluster_alloc(): Failed to allocate clusters, aborting (error -28). ntfs: (device loop1): ntfs_attr_extend_allocation(): Cannot extend allocation of inode 0x43, attribute type 0x80, because the allocation of clusters failed with error code -28. EXT4-fs (loop3): Unrecognized mount option "0xffffffffffffffff" or missing value ntfs: volume version 3.1. ntfs: (device loop0): ntfs_cluster_alloc(): Failed to allocate clusters, aborting (error -28). ntfs: (device loop0): ntfs_attr_extend_allocation(): Cannot extend allocation of inode 0x43, attribute type 0x80, because the allocation of clusters failed with error code -28. ntfs: volume version 3.1. ntfs: volume version 3.1. EXT4-fs (loop2): Unrecognized mount option "0xffffffffffffffff" or missing value EXT4-fs (loop5): Unrecognized mount option "0xffffffffffffffff" or missing value EXT4-fs (loop3): Unrecognized mount option "0xffffffffffffffff" or missing value ntfs: volume version 3.1. EXT4-fs (loop2): Unrecognized mount option "0xffffffffffffffff" or missing value ntfs: volume version 3.1. ntfs: volume version 3.1. EXT4-fs (loop5): Unrecognized mount option "0xffffffffffffffff" or missing value EXT4-fs (loop3): Unrecognized mount option "0xffffffffffffffff" or missing value EXT4-fs (loop0): Unrecognized mount option "0xffffffffffffffff" or missing value EXT4-fs (loop5): Unrecognized mount option "0xffffffffffffffff" or missing value ntfs: volume version 3.1. EXT4-fs (loop3): Unrecognized mount option "0xffffffffffffffff" or missing value