============================================ WARNING: possible recursive locking detected 4.19.211-syzkaller #0 Not tainted -------------------------------------------- syz-executor.4/26554 is trying to acquire lock: 00000000e3e231f7 (&type->i_mutex_dir_key#10){++++}, at: inode_lock include/linux/fs.h:748 [inline] 00000000e3e231f7 (&type->i_mutex_dir_key#10){++++}, at: fuse_reverse_inval_entry+0x2e1/0x660 fs/fuse/dir.c:1006 but task is already holding lock: 00000000d6bd1706 (&type->i_mutex_dir_key#10){++++}, at: inode_lock include/linux/fs.h:748 [inline] 00000000d6bd1706 (&type->i_mutex_dir_key#10){++++}, 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#10); lock(&type->i_mutex_dir_key#10); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz-executor.4/26554: #0: 00000000cd4572f2 (&fc->killsb){++++}, at: fuse_notify_delete fs/fuse/dev.c:1582 [inline] #0: 00000000cd4572f2 (&fc->killsb){++++}, at: fuse_notify fs/fuse/dev.c:1819 [inline] #0: 00000000cd4572f2 (&fc->killsb){++++}, at: fuse_dev_do_write+0x2343/0x2bc0 fs/fuse/dev.c:1894 #1: 00000000d6bd1706 (&type->i_mutex_dir_key#10){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000d6bd1706 (&type->i_mutex_dir_key#10){++++}, at: fuse_reverse_inval_entry+0xaa/0x660 fs/fuse/dir.c:987 stack backtrace: CPU: 0 PID: 26554 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:0x7f3b020ff0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007f3b00650168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3b0221f050 RCX: 00007f3b020ff0d9 RDX: 000000000000002a RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007f3b0215aae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff4619406f R14: 00007f3b00650300 R15: 0000000000022000 netlink: 140 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 140 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 140 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 140 bytes leftover after parsing attributes in process `syz-executor.1'. nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: error (device loop4): udf_read_tagged: read failed, block=256, location=256 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop4): udf_load_vrs: No VRS found netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: error (device loop4): udf_read_tagged: read failed, block=256, location=256 UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: error (device loop3): udf_read_tagged: read failed, block=256, location=256 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: Scanning with blocksize 1024 failed UDF-fs: Scanning with blocksize 2048 failed UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: error (device loop3): udf_read_tagged: read failed, block=256, location=256 UDF-fs: Scanning with blocksize 2048 failed UDF-fs: Scanning with blocksize 1024 failed UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: error (device loop4): udf_read_tagged: read failed, block=256, location=256 UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: error (device loop5): udf_read_tagged: read failed, block=256, location=256 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop3): udf_load_vrs: No VRS found UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop3): udf_load_vrs: No VRS found netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'. UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: Scanning with blocksize 2048 failed UDF-fs: Scanning with blocksize 2048 failed UDF-fs: error (device loop5): udf_read_tagged: read failed, block=256, location=256 UDF-fs: error (device loop3): udf_read_tagged: read failed, block=256, location=256 UDF-fs: error (device loop4): udf_read_tagged: read failed, block=256, location=256 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'. UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop5): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: error (device loop5): udf_read_tagged: read failed, block=256, location=256 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value XFS (loop4): correcting sb_features alignment problem XFS (loop4): Mounting V4 Filesystem XFS (loop4): Ending clean mount XFS (loop4): Unmounting Filesystem XFS (loop4): bad version XFS (loop4): Metadata corruption detected at xfs_sb_write_verify+0x149/0x430 fs/xfs/libxfs/xfs_sb.c:763, xfs_sb block 0xffffffffffffffff XFS (loop4): Unmount and run xfs_repair XFS (loop4): First 128 bytes of corrupted metadata buffer: 00000000a02ee6f8: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 00000000422fcbdb: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000ef628638: 86 ec fd a0 08 9a 46 1f b0 78 1b 43 af ed eb c1 ......F..x.C.... 000000005602a9ed: 00 00 00 00 00 00 80 10 00 00 00 00 00 00 00 20 ............... 000000001a989817: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 000000007f20e3b0: 00 00 00 08 00 00 80 00 00 00 00 02 00 00 00 00 ................ 0000000035f75645: 00 00 07 e0 b4 b4 02 00 01 00 00 02 00 00 00 00 ................ 000000005c2331bc: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ XFS (loop4): xfs_do_force_shutdown(0x8) called from line 1424 of file fs/xfs/xfs_buf.c. Return address = 00000000868a342f XFS (loop4): Corruption of in-memory data detected. Shutting down filesystem XFS (loop4): Please umount the filesystem and rectify the problem(s) XFS (loop0): correcting sb_features alignment problem overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value XFS (loop0): Mounting V4 Filesystem XFS (loop0): Ending clean mount XFS (loop0): Unmounting Filesystem XFS (loop0): bad version XFS (loop0): Metadata corruption detected at xfs_sb_write_verify+0x149/0x430 fs/xfs/libxfs/xfs_sb.c:763, xfs_sb block 0xffffffffffffffff XFS (loop0): Unmount and run xfs_repair XFS (loop0): First 128 bytes of corrupted metadata buffer: 00000000c7130c61: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 000000009a010b34: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000000b69bd9d: 86 ec fd a0 08 9a 46 1f b0 78 1b 43 af ed eb c1 ......F..x.C.... 0000000094345761: 00 00 00 00 00 00 80 10 00 00 00 00 00 00 00 20 ............... 00000000306c2f6f: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 00000000342daa63: 00 00 00 08 00 00 80 00 00 00 00 02 00 00 00 00 ................ 00000000d55d7689: 00 00 07 e0 b4 b4 02 00 01 00 00 02 00 00 00 00 ................ 000000001fb45065: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ XFS (loop0): xfs_do_force_shutdown(0x8) called from line 1424 of file fs/xfs/xfs_buf.c. Return address = 00000000868a342f XFS (loop0): Corruption of in-memory data detected. Shutting down filesystem XFS (loop0): Please umount the filesystem and rectify the problem(s) XFS (loop4): correcting sb_features alignment problem XFS (loop4): Mounting V4 Filesystem XFS (loop4): Ending clean mount XFS (loop4): Unmounting Filesystem XFS (loop4): bad version XFS (loop4): Metadata corruption detected at xfs_sb_write_verify+0x149/0x430 fs/xfs/libxfs/xfs_sb.c:763, xfs_sb block 0xffffffffffffffff XFS (loop4): Unmount and run xfs_repair XFS (loop4): First 128 bytes of corrupted metadata buffer: 0000000087eb09c6: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 000000008e57c1d6: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000005dca4b5d: 86 ec fd a0 08 9a 46 1f b0 78 1b 43 af ed eb c1 ......F..x.C.... 000000004f630d6e: 00 00 00 00 00 00 80 10 00 00 00 00 00 00 00 20 ............... 00000000513f23eb: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 0000000018a60a37: 00 00 00 08 00 00 80 00 00 00 00 02 00 00 00 00 ................ 000000003d8d8db1: 00 00 07 e0 b4 b4 02 00 01 00 00 02 00 00 00 00 ................ 00000000b3f625bb: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ XFS (loop4): xfs_do_force_shutdown(0x8) called from line 1424 of file fs/xfs/xfs_buf.c. Return address = 00000000868a342f XFS (loop4): Corruption of in-memory data detected. Shutting down filesystem XFS (loop4): Please umount the filesystem and rectify the problem(s) overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value XFS (loop0): correcting sb_features alignment problem XFS (loop0): Mounting V4 Filesystem XFS (loop0): Ending clean mount XFS (loop0): Unmounting Filesystem XFS (loop0): bad version XFS (loop0): Metadata corruption detected at xfs_sb_write_verify+0x149/0x430 fs/xfs/libxfs/xfs_sb.c:763, xfs_sb block 0xffffffffffffffff XFS (loop0): Unmount and run xfs_repair XFS (loop0): First 128 bytes of corrupted metadata buffer: 00000000273b86f9: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 0000000067fe59c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000008a83d89d: 86 ec fd a0 08 9a 46 1f b0 78 1b 43 af ed eb c1 ......F..x.C.... XFS (loop4): correcting sb_features alignment problem 0000000057fd788b: 00 00 00 00 00 00 80 10 00 00 00 00 00 00 00 20 ............... XFS (loop4): Mounting V4 Filesystem 000000006f1fa6de: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 000000005ab17d7d: 00 00 00 08 00 00 80 00 00 00 00 02 00 00 00 00 ................ XFS (loop4): Ending clean mount 000000006ce625ba: 00 00 07 e0 b4 b4 02 00 01 00 00 02 00 00 00 00 ................ 000000005cad7499: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ XFS (loop0): xfs_do_force_shutdown(0x8) called from line 1424 of file fs/xfs/xfs_buf.c. Return address = 00000000868a342f XFS (loop0): Corruption of in-memory data detected. Shutting down filesystem XFS (loop0): Please umount the filesystem and rectify the problem(s) XFS (loop4): Unmounting Filesystem XFS (loop4): bad version XFS (loop4): Metadata corruption detected at xfs_sb_write_verify+0x149/0x430 fs/xfs/libxfs/xfs_sb.c:763, xfs_sb block 0xffffffffffffffff XFS (loop4): Unmount and run xfs_repair XFS (loop4): First 128 bytes of corrupted metadata buffer: 000000002d84265e: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 0000000071c69ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000eabf3325: 86 ec fd a0 08 9a 46 1f b0 78 1b 43 af ed eb c1 ......F..x.C.... 000000000a6dc461: 00 00 00 00 00 00 80 10 00 00 00 00 00 00 00 20 ............... 000000001da8e424: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 000000003778ab44: 00 00 00 08 00 00 80 00 00 00 00 02 00 00 00 00 ................ 0000000018878acc: 00 00 07 e0 b4 b4 02 00 01 00 00 02 00 00 00 00 ................ 0000000095384e37: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value XFS (loop4): xfs_do_force_shutdown(0x8) called from line 1424 of file fs/xfs/xfs_buf.c. Return address = 00000000868a342f overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value XFS (loop4): Corruption of in-memory data detected. Shutting down filesystem XFS (loop4): Please umount the filesystem and rectify the problem(s) overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value XFS (loop0): correcting sb_features alignment problem XFS (loop0): Mounting V4 Filesystem XFS (loop0): Ending clean mount XFS (loop4): correcting sb_features alignment problem XFS (loop4): Mounting V4 Filesystem XFS (loop0): Unmounting Filesystem XFS (loop4): Ending clean mount XFS (loop0): bad version XFS (loop0): Metadata corruption detected at xfs_sb_write_verify+0x149/0x430 fs/xfs/libxfs/xfs_sb.c:763, xfs_sb block 0xffffffffffffffff XFS (loop0): Unmount and run xfs_repair XFS (loop0): First 128 bytes of corrupted metadata buffer: 0000000091c3a94d: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 00000000820da66d: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ XFS (loop4): Unmounting Filesystem XFS (loop4): bad version XFS (loop4): Metadata corruption detected at xfs_sb_write_verify+0x149/0x430 fs/xfs/libxfs/xfs_sb.c:763, xfs_sb block 0xffffffffffffffff 00000000c28c2c37: 86 ec fd a0 08 9a 46 1f b0 78 1b 43 af ed eb c1 ......F..x.C.... XFS (loop4): Unmount and run xfs_repair XFS (loop4): First 128 bytes of corrupted metadata buffer: 00000000e95f15b6: 00 00 00 00 00 00 80 10 00 00 00 00 00 00 00 20 ............... 00000000fbe0c6b1: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 00000000d68071b3: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 0000000014e9477e: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000086e9152c: 86 ec fd a0 08 9a 46 1f b0 78 1b 43 af ed eb c1 ......F..x.C.... 000000007000dffa: 00 00 00 00 00 00 80 10 00 00 00 00 00 00 00 20 ............... 000000000afa7b24: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 000000000da0797b: 00 00 00 08 00 00 80 00 00 00 00 02 00 00 00 00 ................ 00000000311cd1c2: 00 00 07 e0 b4 b4 02 00 01 00 00 02 00 00 00 00 ................ 00000000a89ebb4c: 00 00 00 08 00 00 80 00 00 00 00 02 00 00 00 00 ................ 00000000cd3bc7af: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ XFS (loop4): xfs_do_force_shutdown(0x8) called from line 1424 of file fs/xfs/xfs_buf.c. Return address = 00000000868a342f XFS (loop4): Corruption of in-memory data detected. Shutting down filesystem XFS (loop4): Please umount the filesystem and rectify the problem(s) 00000000cc5b24fc: 00 00 07 e0 b4 b4 02 00 01 00 00 02 00 00 00 00 ................ 00000000fae76357: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ XFS (loop0): xfs_do_force_shutdown(0x8) called from line 1424 of file fs/xfs/xfs_buf.c. Return address = 00000000868a342f XFS (loop0): Corruption of in-memory data detected. Shutting down filesystem XFS (loop0): Please umount the filesystem and rectify the problem(s) nla_parse: 1 callbacks suppressed netlink: 31 bytes leftover after parsing attributes in process `syz-executor.0'. overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value netlink: 31 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 31 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 31 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 31 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 31 bytes leftover after parsing attributes in process `syz-executor.2'. overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value netlink: 31 bytes leftover after parsing attributes in process `syz-executor.0'. overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value overlayfs: unrecognized mount option "fowner>0000000000000006092918446744073709551615" or missing value