============================================ WARNING: possible recursive locking detected 4.19.211-syzkaller #0 Not tainted -------------------------------------------- syz-executor.2/23022 is trying to acquire lock: 000000007afe565a (&type->i_mutex_dir_key#9){++++}, at: inode_lock include/linux/fs.h:748 [inline] 000000007afe565a (&type->i_mutex_dir_key#9){++++}, at: fuse_reverse_inval_entry+0x2e1/0x660 fs/fuse/dir.c:1006 but task is already holding lock: 0000000071e034dd (&type->i_mutex_dir_key#9){++++}, at: inode_lock include/linux/fs.h:748 [inline] 0000000071e034dd (&type->i_mutex_dir_key#9){++++}, 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#9); lock(&type->i_mutex_dir_key#9); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz-executor.2/23022: #0: 00000000197785a2 (&fc->killsb){++++}, at: fuse_notify_delete fs/fuse/dev.c:1582 [inline] #0: 00000000197785a2 (&fc->killsb){++++}, at: fuse_notify fs/fuse/dev.c:1819 [inline] #0: 00000000197785a2 (&fc->killsb){++++}, at: fuse_dev_do_write+0x2343/0x2bc0 fs/fuse/dev.c:1894 #1: 0000000071e034dd (&type->i_mutex_dir_key#9){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 0000000071e034dd (&type->i_mutex_dir_key#9){++++}, at: fuse_reverse_inval_entry+0xaa/0x660 fs/fuse/dir.c:987 stack backtrace: CPU: 0 PID: 23022 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/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:0x7f7c4826f5a9 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:00007f7c467e2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7c4838ff80 RCX: 00007f7c4826f5a9 RDX: 000000000000002c RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f7c482ca7b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc695f526f R14: 00007f7c467e2300 R15: 0000000000022000 ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Missing length entry in mapping pairs array. ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Invalid length in mapping pairs array. ntfs: (device loop1): ntfs_read_block(): Failed to read from inode 0x1, attribute type 0x80, vcn 0x0, offset 0x0 because its location on disk could not be determined even after retrying (error code -5). ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Missing length entry in mapping pairs array. ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Invalid length in mapping pairs array. ntfs: (device loop1): ntfs_read_block(): Failed to read from inode 0x1, attribute type 0x80, vcn 0x0, offset 0x800 because its location on disk could not be determined even after retrying (error code -5). ntfs: (device loop1): check_mft_mirror(): Failed to read $MFTMirr. ntfs: volume version 3.1. attempt to access beyond end of device loop3: rw=1, want=2138, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2140, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2142, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2147, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2148, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2151, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2153, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2156, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2158, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2159, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2162, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2163, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2164, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2166, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2167, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2169, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2171, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2173, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2174, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2175, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2183, limit=2048 kauditd_printk_skb: 1 callbacks suppressed audit: type=1800 audit(1666964174.791:172): pid=23000 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.4" name="SYSV00000000" dev="hugetlbfs" ino=524301 res=0 audit: type=1804 audit(1666964174.961:173): pid=23068 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3207771116/syzkaller.zU96FC/345/file0/bus" dev="loop3" ino=1296 res=1 ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Missing length entry in mapping pairs array. ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Invalid length in mapping pairs array. attempt to access beyond end of device ntfs: (device loop1): ntfs_read_block(): Failed to read from inode 0x1, attribute type 0x80, vcn 0x0, offset 0x0 because its location on disk could not be determined even after retrying (error code -5). loop3: rw=1, want=2138, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2140, limit=2048 attempt to access beyond end of device ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Missing length entry in mapping pairs array. loop3: rw=1, want=2142, limit=2048 attempt to access beyond end of device ntfs: (device loop1): ntfs_mapping_pairs_decompress(): Invalid length in mapping pairs array. ntfs: (device loop1): ntfs_read_block(): Failed to read from inode 0x1, attribute type 0x80, vcn 0x0, offset 0x800 because its location on disk could not be determined even after retrying (error code -5). loop3: rw=1, want=2147, limit=2048 ntfs: (device loop1): check_mft_mirror(): Failed to read $MFTMirr. ntfs: (device loop1): load_system_files(): $MFTMirr does not match $MFT. Mounting read-only. Run ntfsfix and/or chkdsk. attempt to access beyond end of device loop3: rw=1, want=2148, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2151, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2153, limit=2048 attempt to access beyond end of device ntfs: volume version 3.1. loop3: rw=1, want=2156, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2158, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2159, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2162, limit=2048 attempt to access beyond end of device loop3: rw=1, want=2163, limit=2048 buffer_io_error: 37 callbacks suppressed Buffer I/O error on dev loop3, logical block 2162, lost async page write attempt to access beyond end of device loop3: rw=1, want=2164, limit=2048 Buffer I/O error on dev loop3, logical block 2163, lost async page write attempt to access beyond end of device loop3: rw=1, want=2166, limit=2048 Buffer I/O error on dev loop3, logical block 2165, lost async page write attempt to access beyond end of device loop3: rw=1, want=2167, limit=2048 Buffer I/O error on dev loop3, logical block 2166, lost async page write attempt to access beyond end of device loop3: rw=1, want=2169, limit=2048 Buffer I/O error on dev loop3, logical block 2168, lost async page write attempt to access beyond end of device loop3: rw=1, want=2171, limit=2048 Buffer I/O error on dev loop3, logical block 2170, lost async page write attempt to access beyond end of device loop3: rw=1, want=2173, limit=2048 Buffer I/O error on dev loop3, logical block 2172, lost async page write attempt to access beyond end of device loop3: rw=1, want=2174, limit=2048 Buffer I/O error on dev loop3, logical block 2173, lost async page write attempt to access beyond end of device loop3: rw=1, want=2175, limit=2048 Buffer I/O error on dev loop3, logical block 2174, lost async page write attempt to access beyond end of device loop3: rw=1, want=2183, limit=2048 bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered disabled state ntfs: volume version 3.1. device team0 entered promiscuous mode device team_slave_0 entered promiscuous mode device team_slave_1 entered promiscuous mode bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered forwarding state ntfs: volume version 3.1. hid-generic 0000:0803:0000.0001: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0001 failed with error -22 hid-generic 0000:0803:0000.0002: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0002 failed with error -22 hid-generic 0000:0803:0000.0003: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0003 failed with error -22 hid-generic 0000:0803:0000.0004: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0004 failed with error -22 hid-generic 0000:0803:0000.0005: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0005 failed with error -22 hid-generic 0000:0803:0000.0006: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0006 failed with error -22 hid-generic 0000:0803:0000.0007: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0007 failed with error -22 hid-generic 0000:0803:0000.0008: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0008 failed with error -22 hid-generic 0000:0803:0000.0009: item fetching failed at offset 1/2 hid-generic: probe of 0000:0803:0000.0009 failed with error -22