XFS (loop2): Quotacheck: Done. REISERFS (device loop4): checking transaction log (loop4) REISERFS (device loop4): Using r5 hash to sort names REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage. ====================================================== WARNING: possible circular locking dependency detected 4.14.305-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/11097 is trying to acquire lock: (&type->i_mutex_dir_key#12){+.+.}, at: [] inode_lock include/linux/fs.h:719 [inline] (&type->i_mutex_dir_key#12){+.+.}, at: [] do_last fs/namei.c:3331 [inline] (&type->i_mutex_dir_key#12){+.+.}, at: [] path_openat+0xde2/0x2970 fs/namei.c:3571 but task is already holding lock: (sb_writers#18){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] (sb_writers#18){.+.+}, 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: -> #2 (sb_writers#18){.+.+}: 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 -> #1 (&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 lookup_one_len+0x279/0x3a0 fs/namei.c:2539 reiserfs_lookup_privroot+0x92/0x270 fs/reiserfs/xattr.c:970 reiserfs_fill_super+0x1772/0x2990 fs/reiserfs/super.c:2199 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 -> #0 (&type->i_mutex_dir_key#12){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 down_write+0x34/0x90 kernel/locking/rwsem.c:54 inode_lock include/linux/fs.h:719 [inline] do_last fs/namei.c:3331 [inline] path_openat+0xde2/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+0x5e/0xd3 other info that might help us debug this: Chain exists of: &type->i_mutex_dir_key#12 --> &sbi->lock --> sb_writers#18 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(sb_writers#18); lock(&sbi->lock); lock(sb_writers#18); lock(&type->i_mutex_dir_key#12); *** DEADLOCK *** 1 lock held by syz-executor.4/11097: #0: (sb_writers#18){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#18){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 stack backtrace: CPU: 1 PID: 11097 Comm: syz-executor.4 Not tainted 4.14.305-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/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 down_write+0x34/0x90 kernel/locking/rwsem.c:54 inode_lock include/linux/fs.h:719 [inline] do_last fs/namei.c:3331 [inline] path_openat+0xde2/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+0x5e/0xd3 RIP: 0033:0x7f376f29c0f9 RSP: 002b:00007f376d80e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f376f3bbf80 RCX: 00007f376f29c0f9 RDX: 0000000000000000 RSI: 0000000000143042 RDI: 0000000020002000 RBP: 00007f376f2f7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc7c4e660f R14: 00007f376d80e300 R15: 0000000000022000 XFS (loop0): DAX enabled. Warning: EXPERIMENTAL, use at your own risk XFS (loop0): DAX unsupported by block device. Turning off DAX. XFS (loop0): Mounting V4 Filesystem XFS (loop0): Ending clean mount XFS (loop0): Quotacheck needed: Please wait. XFS (loop0): Quotacheck: Done. XFS (loop1): DAX enabled. Warning: EXPERIMENTAL, use at your own risk kauditd_printk_skb: 3 callbacks suppressed audit: type=1804 audit(1676442512.737:38): pid=11082 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir1665742084/syzkaller.pD9nP7/55/file0/bus" dev="loop0" ino=43 res=1 XFS (loop1): DAX unsupported by block device. Turning off DAX. XFS (loop1): Mounting V4 Filesystem XFS (loop2): Unmounting Filesystem XFS (loop1): Ending clean mount audit: type=1804 audit(1676442512.837:39): pid=11172 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir1665742084/syzkaller.pD9nP7/55/file0/bus" dev="loop0" ino=43 res=1 XFS (loop1): Quotacheck needed: Please wait. XFS (loop1): Quotacheck: Done. audit: type=1804 audit(1676442512.977:40): pid=11125 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir91394965/syzkaller.99YPUg/43/file0/bus" dev="loop1" ino=43 res=1 audit: type=1804 audit(1676442513.077:41): pid=11180 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir91394965/syzkaller.99YPUg/43/file0/bus" dev="loop1" ino=43 res=1 XFS (loop0): Unmounting Filesystem audit: type=1804 audit(1676442513.527:42): pid=11186 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1590411596/syzkaller.aYws2L/40/file0/bus" dev="ramfs" ino=32604 res=1 audit: type=1804 audit(1676442513.527:43): pid=11189 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir832758960/syzkaller.0siE2i/37/file0/bus" dev="ramfs" ino=33266 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676442513.567:44): pid=11189 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir832758960/syzkaller.0siE2i/37/file0/bus" dev="ramfs" ino=33266 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676442513.577:45): pid=11186 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir1590411596/syzkaller.aYws2L/40/file0/bus" dev="ramfs" ino=32604 res=1 XFS (loop1): Unmounting Filesystem audit: type=1804 audit(1676442514.228:46): pid=11215 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir832758960/syzkaller.0siE2i/38/file0/bus" dev="ramfs" ino=33304 res=1 audit: type=1804 audit(1676442514.268:47): pid=11215 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir832758960/syzkaller.0siE2i/38/file0/bus" dev="ramfs" ino=33304 res=1 XFS (loop2): DAX enabled. Warning: EXPERIMENTAL, use at your own risk XFS (loop2): DAX unsupported by block device. Turning off DAX. XFS (loop2): Mounting V4 Filesystem ntfs: volume version 3.1. XFS (loop2): Ending clean mount XFS (loop2): Quotacheck needed: Please wait. XFS (loop0): DAX enabled. Warning: EXPERIMENTAL, use at your own risk XFS (loop0): DAX unsupported by block device. Turning off DAX. XFS (loop2): Quotacheck: Done. XFS (loop0): Mounting V4 Filesystem ntfs: volume version 3.1. XFS (loop0): Ending clean mount XFS (loop0): Quotacheck needed: Please wait. XFS (loop0): Quotacheck: Done. ntfs: volume version 3.1. XFS (loop1): DAX enabled. Warning: EXPERIMENTAL, use at your own risk XFS (loop1): DAX unsupported by block device. Turning off DAX. XFS (loop1): Mounting V4 Filesystem XFS (loop1): Ending clean mount ntfs: volume version 3.1. XFS (loop1): Quotacheck needed: Please wait. XFS (loop1): Quotacheck: Done. syz-executor.0 (11275) used greatest stack depth: 22960 bytes left XFS (loop0): Unmounting Filesystem XFS (loop2): Unmounting Filesystem XFS (loop1): Unmounting Filesystem kauditd_printk_skb: 12 callbacks suppressed audit: type=1804 audit(1676442519.658:60): pid=11374 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3815806568/syzkaller.nQRlcj/36/bus" dev="sda1" ino=14069 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1676442520.698:61): pid=11374 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir3815806568/syzkaller.nQRlcj/36/bus" dev="sda1" ino=14069 res=1 bridge0: port 3(bond0) entered blocking state bridge0: port 3(bond0) entered disabled state device bond0 entered promiscuous mode device bond_slave_0 entered promiscuous mode device bond_slave_1 entered promiscuous mode bridge0: port 3(bond0) entered blocking state bridge0: port 3(bond0) entered forwarding state EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 batman_adv: batadv0: adding TT local entry ba:00:22:07:ff:ff to non-existent VLAN 256 audit: type=1804 audit(1676442521.458:62): pid=11480 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3815806568/syzkaller.nQRlcj/37/bus" dev="sda1" ino=14106 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1676442521.618:63): pid=11507 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1590411596/syzkaller.aYws2L/46/bus" dev="sda1" ino=14096 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. audit: type=1804 audit(1676442521.668:64): pid=11511 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir3815806568/syzkaller.nQRlcj/37/bus" dev="sda1" ino=14106 res=1 audit: type=1804 audit(1676442521.888:65): pid=11525 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir1590411596/syzkaller.aYws2L/46/bus" dev="sda1" ino=14096 res=1