ntfs: volume version 3.1. ntfs: volume version 3.1. ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/22857 is trying to acquire lock: 00000000cc42e80f (&rl->lock){++++}, at: ntfs_read_block fs/ntfs/aops.c:265 [inline] 00000000cc42e80f (&rl->lock){++++}, at: ntfs_readpage+0x1909/0x21b0 fs/ntfs/aops.c:452 but task is already holding lock: 0000000033484829 (&ni->mrec_lock){+.+.}, at: map_mft_record+0x3c/0xc70 fs/ntfs/mft.c:168 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&ni->mrec_lock){+.+.}: syz-executor.5 (3411): drop_caches: 1 map_mft_record+0x3c/0xc70 fs/ntfs/mft.c:168 ntfs_truncate+0x202/0x2820 fs/ntfs/inode.c:2395 ntfs_truncate_vfs fs/ntfs/inode.c:2875 [inline] ntfs_setattr+0x1b6/0x620 fs/ntfs/inode.c:2925 notify_change+0x70b/0xfc0 fs/attr.c:334 do_truncate+0x134/0x1f0 fs/open.c:63 handle_truncate fs/namei.c:3009 [inline] do_last fs/namei.c:3427 [inline] path_openat+0x2308/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&rl->lock){++++}: down_read+0x36/0x80 kernel/locking/rwsem.c:24 ntfs_read_block fs/ntfs/aops.c:265 [inline] ntfs_readpage+0x1909/0x21b0 fs/ntfs/aops.c:452 do_read_cache_page+0x533/0x1170 mm/filemap.c:2828 read_mapping_page include/linux/pagemap.h:402 [inline] ntfs_map_page fs/ntfs/aops.h:89 [inline] ntfs_sync_mft_mirror+0x24f/0x1d00 fs/ntfs/mft.c:494 write_mft_record_nolock+0x13f1/0x16c0 fs/ntfs/mft.c:819 write_mft_record fs/ntfs/mft.h:109 [inline] __ntfs_write_inode+0x609/0xe10 fs/ntfs/inode.c:3064 ntfs_commit_inode fs/ntfs/inode.h:315 [inline] ntfs_put_super+0x1132/0x16f0 fs/ntfs/super.c:2273 generic_shutdown_super+0x144/0x370 fs/super.c:456 kill_block_super+0x97/0xf0 fs/super.c:1185 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ni->mrec_lock); lock(&rl->lock); lock(&ni->mrec_lock); lock(&rl->lock); *** DEADLOCK *** 2 locks held by syz-executor.4/22857: #0: 00000000e90e656b (&type->s_umount_key#80){++++}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359 #1: 0000000033484829 (&ni->mrec_lock){+.+.}, at: map_mft_record+0x3c/0xc70 fs/ntfs/mft.c:168 stack backtrace: CPU: 0 PID: 22857 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_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1222 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2420 [inline] __lock_acquire+0x30c9/0x3ff0 kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 down_read+0x36/0x80 kernel/locking/rwsem.c:24 ntfs_read_block fs/ntfs/aops.c:265 [inline] ntfs_readpage+0x1909/0x21b0 fs/ntfs/aops.c:452 do_read_cache_page+0x533/0x1170 mm/filemap.c:2828 read_mapping_page include/linux/pagemap.h:402 [inline] ntfs_map_page fs/ntfs/aops.h:89 [inline] ntfs_sync_mft_mirror+0x24f/0x1d00 fs/ntfs/mft.c:494 write_mft_record_nolock+0x13f1/0x16c0 fs/ntfs/mft.c:819 write_mft_record fs/ntfs/mft.h:109 [inline] __ntfs_write_inode+0x609/0xe10 fs/ntfs/inode.c:3064 ntfs_commit_inode fs/ntfs/inode.h:315 [inline] ntfs_put_super+0x1132/0x16f0 fs/ntfs/super.c:2273 generic_shutdown_super+0x144/0x370 fs/super.c:456 kill_block_super+0x97/0xf0 fs/super.c:1185 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f805cd8d547 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 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:00007ffeeb73bb18 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f805cd8d547 RDX: 00007ffeeb73bbeb RSI: 000000000000000a RDI: 00007ffeeb73bbe0 RBP: 00007ffeeb73bbe0 R08: 00000000ffffffff R09: 00007ffeeb73b9b0 R10: 00005555555f3903 R11: 0000000000000246 R12: 00007f805cde6b24 R13: 00007ffeeb73cca0 R14: 00005555555f3810 R15: 00007ffeeb73cce0 syz-executor.5 (3411): drop_caches: 1 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. ntfs: volume version 3.1. __ntfs_error: 77 callbacks suppressed ntfs: (device loop1): ntfs_read_locked_index_inode(): $INDEX_ROOT attribute is missing. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.3'. ntfs: (device loop1): ntfs_read_locked_index_inode(): Failed with error code -2 while reading index inode (mft_no 0x18, name_len 2. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. ntfs: (device loop1): load_and_init_quota(): Failed to load $Quota/$Q index. ntfs: (device loop1): load_system_files(): Failed to load $Quota. Mounting read-only. Run chkdsk. syz-executor.5 (3539): drop_caches: 1 BTRFS info (device loop4): max_inline at 5 BTRFS warning (device loop4): excessive commit interval 622039222 BTRFS info (device loop4): force zlib compression, level 3 BTRFS info (device loop4): setting 16 feature flag BTRFS info (device loop4): force zstd compression, level 3 BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.3'. syz-executor.5 (3539): drop_caches: 1 pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'. IPVS: ftp: loaded support on port[0] = 21 BTRFS info (device loop0): max_inline at 5 BTRFS warning (device loop0): excessive commit interval 622039222 BTRFS info (device loop0): force zlib compression, level 3 BTRFS info (device loop0): setting 16 feature flag BTRFS info (device loop0): force zstd compression, level 3 BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by syz-executor.4 (3661) BTRFS info (device loop0): using free space tree BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by systemd-udevd (3711) BTRFS info (device loop0): has skinny extents pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 BTRFS info (device loop4): max_inline at 5 BTRFS warning (device loop4): excessive commit interval 622039222 BTRFS info (device loop4): force zlib compression, level 3 BTRFS info (device loop4): setting 16 feature flag BTRFS info (device loop4): force zstd compression, level 3 BTRFS info (device loop4): using free space tree BTRFS warning (device ): duplicate device /dev/loop0 devid 1 generation 8 scanned by syz-executor.0 (3790) BTRFS info (device loop4): has skinny extents BTRFS warning (device ): duplicate device /dev/loop0 devid 1 generation 8 scanned by systemd-udevd (3921) IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns IPVS: ftp: loaded support on port[0] = 21 pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 9pnet: Could not find request transport: xen CPU: 0 PID: 4109 Comm: syz-executor.1 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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0xf lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0x10 mm/slab_common.c:1590 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node_trace+0x244/0x3b0 mm/slab.c:3666 __do_kmalloc_node mm/slab.c:3688 [inline] __kmalloc_node+0x38/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] seq_buf_alloc fs/seq_file.c:35 [inline] seq_read+0x85c/0x11c0 fs/seq_file.c:207 proc_reg_read+0x1bd/0x2d0 fs/proc/inode.c:231 __vfs_read+0xf7/0x750 fs/read_write.c:416 vfs_read+0x194/0x3c0 fs/read_write.c:452 ksys_read+0x12b/0x2a0 fs/read_write.c:579 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fbd158ab0d9 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:00007fbd13e1d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fbd159caf80 RCX: 00007fbd158ab0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007fbd13e1d1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff9f63af0f R14: 00007fbd13e1d300 R15: 0000000000022000 wlan1: Trigger new scan to find an IBSS to join pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns overlayfs: failed to resolve './file1': -2 9pnet: Could not find request transport: xen pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns wlan1: Trigger new scan to find an IBSS to join pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns pit: kvm: requested 4190 ns i8254 timer period limited to 200000 ns 9pnet: Could not find request transport: xen overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. EXT4-fs (loop5): Ignoring removed mblk_io_submit option EXT4-fs (loop5): mounted filesystem without journal. Opts: mblk_io_submit,usrjquota=,nouid32,grpjquota=,,errors=continue IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 wlan1: Trigger new scan to find an IBSS to join wlan1: Trigger new scan to find an IBSS to join EXT4-fs (loop5): Ignoring removed mblk_io_submit option EXT4-fs (loop5): mounted filesystem without journal. Opts: mblk_io_submit,usrjquota=,nouid32,grpjquota=,,errors=continue IPVS: ftp: loaded support on port[0] = 21 EXT4-fs (loop3): Ignoring removed mblk_io_submit option EXT4-fs (loop3): mounted filesystem without journal. Opts: mblk_io_submit,usrjquota=,nouid32,grpjquota=,,errors=continue