============================================ WARNING: possible recursive locking detected 4.19.211-syzkaller #0 Not tainted -------------------------------------------- syz-executor.4/15808 is trying to acquire lock: 0000000021d9a6e6 (&type->i_mutex_dir_key#8){++++}, at: inode_lock include/linux/fs.h:748 [inline] 0000000021d9a6e6 (&type->i_mutex_dir_key#8){++++}, at: fuse_reverse_inval_entry+0x2e1/0x660 fs/fuse/dir.c:1006 but task is already holding lock: 00000000fa48d02a (&type->i_mutex_dir_key#8){++++}, at: inode_lock include/linux/fs.h:748 [inline] 00000000fa48d02a (&type->i_mutex_dir_key#8){++++}, at: fuse_reverse_inval_entry+0xaa/0x660 fs/fuse/dir.c:987 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&type->i_mutex_dir_key#8); lock(&type->i_mutex_dir_key#8); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz-executor.4/15808: #0: 00000000f281b7e5 (&fc->killsb){.+.+}, at: fuse_notify_delete fs/fuse/dev.c:1582 [inline] #0: 00000000f281b7e5 (&fc->killsb){.+.+}, at: fuse_notify fs/fuse/dev.c:1819 [inline] #0: 00000000f281b7e5 (&fc->killsb){.+.+}, at: fuse_dev_do_write+0x2343/0x2bc0 fs/fuse/dev.c:1894 #1: 00000000fa48d02a (&type->i_mutex_dir_key#8){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000fa48d02a (&type->i_mutex_dir_key#8){++++}, at: fuse_reverse_inval_entry+0xaa/0x660 fs/fuse/dir.c:987 stack backtrace: CPU: 0 PID: 15808 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:1764 [inline] check_deadlock kernel/locking/lockdep.c:1808 [inline] validate_chain kernel/locking/lockdep.c:2404 [inline] __lock_acquire.cold+0x121/0x57e kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 down_write+0x34/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:748 [inline] fuse_reverse_inval_entry+0x2e1/0x660 fs/fuse/dir.c:1006 fuse_notify_delete fs/fuse/dev.c:1585 [inline] fuse_notify fs/fuse/dev.c:1819 [inline] fuse_dev_do_write+0x239e/0x2bc0 fs/fuse/dev.c:1894 fuse_dev_write+0x153/0x1e0 fs/fuse/dev.c:1978 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f9c75dea5a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9c7435d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9c75f0af80 RCX: 00007f9c75dea5a9 RDX: 000000000000002c RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f9c75e457b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 ntfs: (device loop2): parse_options(): Unrecognized mount option `;J$s>5g 7Ń4Jv1ĠfnR !Ƞa `k# O1^:?A**yG . R13: 00007ffe45d5ca7f R14: 00007f9c7435d300 R15: 0000000000022000 ntfs: (device loop2): parse_options(): Unrecognized mount option 0T!%9 ss}:N~OB>LDbƹ0t *}OG4Fmj )VNJC`-]}MҨWo!ph{7. Process accounting resumed EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue Process accounting resumed Process accounting resumed Process accounting resumed audit: type=1804 audit(1667754053.747:41): pid=15980 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/83/bus" dev="sda1" ino=13909 res=1 audit: type=1804 audit(1667754053.747:42): pid=15980 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/83/bus" dev="sda1" ino=13909 res=1 audit: type=1804 audit(1667754053.747:43): pid=15980 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/83/bus" dev="sda1" ino=13909 res=1 Process accounting resumed audit: type=1804 audit(1667754053.867:44): pid=15996 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir1729244821/syzkaller.CNav5F/96/bus" dev="sda1" ino=13909 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. overlayfs: unrecognized mount option "upper./bus" or missing value 9pnet: Insufficient options for proto=fd audit: type=1804 audit(1667754054.007:45): pid=16007 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/84/bus" dev="sda1" ino=13919 res=1 9pnet: Could not find request transport: xen audit: type=1804 audit(1667754054.007:46): pid=16007 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/84/bus" dev="sda1" ino=13919 res=1 audit: type=1804 audit(1667754054.007:47): pid=16007 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/84/bus" dev="sda1" ino=13919 res=1 overlayfs: unrecognized mount option "upper./bus" or missing value TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. overlayfs: unrecognized mount option "upper./bus" or missing value TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. 9pnet: Insufficient options for proto=fd 9pnet: Could not find request transport: xen audit: type=1804 audit(1667754054.017:48): pid=16007 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/84/bus" dev="sda1" ino=13919 res=1 nla_parse: 4 callbacks suppressed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. device lo entered promiscuous mode kauditd_printk_skb: 91 callbacks suppressed audit: type=1804 audit(1667754058.478:140): pid=16305 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/88/bus" dev="sda1" ino=14325 res=1 audit: type=1804 audit(1667754058.518:141): pid=16307 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2574109132/syzkaller.XyHTpm/87/bus" dev="sda1" ino=14326 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. audit: type=1804 audit(1667754058.798:142): pid=16319 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/88/bus" dev="sda1" ino=14325 res=1 audit: type=1804 audit(1667754059.178:143): pid=16307 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir2574109132/syzkaller.XyHTpm/87/bus" dev="sda1" ino=14326 res=1 bridge0: port 3(erspan0) entered blocking state bridge0: port 3(erspan0) entered disabled state device erspan0 entered promiscuous mode bridge0: port 3(erspan0) entered blocking state bridge0: port 3(erspan0) entered forwarding state Y4`Ҙ: renamed from lo Bluetooth: hci0: command 0x0406 tx timeout audit: type=1804 audit(1667754059.988:144): pid=16367 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2574109132/syzkaller.XyHTpm/88/bus" dev="sda1" ino=14056 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. audit: type=1804 audit(1667754060.328:145): pid=16423 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/89/bus" dev="sda1" ino=14054 res=1 nla_parse: 6 callbacks suppressed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1804 audit(1667754060.928:146): pid=16488 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2574109132/syzkaller.XyHTpm/89/bus" dev="sda1" ino=13888 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) audit: type=1804 audit(1667754061.328:147): pid=16526 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/90/bus" dev="sda1" ino=13909 res=1 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. audit: type=1804 audit(1667754061.948:148): pid=16552 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2574109132/syzkaller.XyHTpm/90/bus" dev="sda1" ino=13885 res=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. audit: type=1804 audit(1667754062.338:149): pid=16583 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir70895989/syzkaller.2RNm7X/91/bus" dev="sda1" ino=14335 res=1