ntfs: volume version 3.1. ====================================================== WARNING: possible circular locking dependency detected 4.14.307-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/10001 is trying to acquire lock: (sb_writers#3){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] (sb_writers#3){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 but task is already holding lock: (&iint->mutex){+.+.}, at: [] process_measurement+0x270/0xb20 security/integrity/ima/ima_main.c:225 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&iint->mutex){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 process_measurement+0x270/0xb20 security/integrity/ima/ima_main.c:225 do_last fs/namei.c:3435 [inline] path_openat+0x10ad/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 -> #0 (sb_writers#3){.+.+}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 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+0x3a/0xb0 fs/namespace.c:386 ovl_open_maybe_copy_up+0xcf/0x130 fs/overlayfs/inode.c:344 ovl_d_real+0xbc/0x350 fs/overlayfs/super.c:88 d_real include/linux/dcache.h:587 [inline] vfs_open+0x19e/0x220 fs/open.c:882 dentry_open+0xa7/0x210 fs/open.c:905 ima_calc_file_hash+0x51c/0x780 security/integrity/ima/ima_crypto.c:452 ima_collect_measurement+0x39d/0x430 security/integrity/ima/ima_api.c:227 process_measurement+0x78b/0xb20 security/integrity/ima/ima_main.c:264 do_last fs/namei.c:3435 [inline] path_openat+0x10ad/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: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&iint->mutex); lock(sb_writers#3); lock(&iint->mutex); lock(sb_writers#3); *** DEADLOCK *** 1 lock held by syz-executor.0/10001: #0: (&iint->mutex){+.+.}, at: [] process_measurement+0x270/0xb20 security/integrity/ima/ima_main.c:225 stack backtrace: CPU: 1 PID: 10001 Comm: syz-executor.0 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/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 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+0x3a/0xb0 fs/namespace.c:386 ovl_open_maybe_copy_up+0xcf/0x130 fs/overlayfs/inode.c:344 ovl_d_real+0xbc/0x350 fs/overlayfs/super.c:88 d_real include/linux/dcache.h:587 [inline] vfs_open+0x19e/0x220 fs/open.c:882 dentry_open+0xa7/0x210 fs/open.c:905 ima_calc_file_hash+0x51c/0x780 security/integrity/ima/ima_crypto.c:452 ima_collect_measurement+0x39d/0x430 security/integrity/ima/ima_api.c:227 process_measurement+0x78b/0xb20 security/integrity/ima/ima_main.c:264 do_last fs/namei.c:3435 [inline] path_openat+0x10ad/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:0x7ff0eab2b0f9 RSP: 002b:00007ff0e909d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ff0eac4af80 RCX: 00007ff0eab2b0f9 RDX: 0000000000000003 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 00007ff0eab86ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4398532f R14: 00007ff0e909d300 R15: 0000000000022000 XFS (loop1): Mounting V4 Filesystem XFS (loop1): Ending clean mount XFS (loop1): Unmounting Filesystem ntfs: (device loop4): parse_ntfs_boot_sector(): Mft record size (524288) exceeds the PAGE_SIZE on your system (4096). This is not supported. Sorry. XFS (loop1): Mounting V4 Filesystem XFS (loop1): Ending clean mount XFS (loop1): Unmounting Filesystem XFS (loop1): Mounting V4 Filesystem XFS (loop1): Ending clean mount XFS (loop1): Unmounting Filesystem IPVS: ftp: loaded support on port[0] = 21 EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop1): mounted filesystem without journal. Opts: stripe=0x0000000000000001,jqfmt=vfsv0,,errors=continue EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem ntfs: (device loop5): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel. ntfs: (device loop5): ntfs_attr_find(): Inode is corrupt. Run chkdsk. ntfs: (device loop5): ntfs_read_inode_mount(): Failed to lookup $MFT/$DATA attribute extent. $MFT is corrupt. Run chkdsk. EXT4-fs (loop4): mounted filesystem without journal. Opts: stripe=0x0000000000000001,jqfmt=vfsv0,,errors=continue ntfs: (device loop3): parse_ntfs_boot_sector(): Mft record size (2097152) exceeds the PAGE_SIZE on your system (4096). This is not supported. Sorry. ntfs: (device loop5): ntfs_read_inode_mount(): Failed. Marking inode as bad. ntfs: (device loop5): ntfs_fill_super(): Failed to load essential metadata. ntfs: (device loop3): parse_ntfs_boot_sector(): Mft record size (2097152) exceeds the PAGE_SIZE on your system (4096). This is not supported. Sorry. BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 BTRFS info (device loop0): unrecognized mount option 'nossd_spread' [EXT4 FS bs=2048, gc=1, bpg=16384, ipg=32, mo=a80ec018, mo2=0002] System zones: 0-2, 18-18, 34-35 EXT4-fs (loop2): mounted filesystem without journal. Opts: debug,barrier,quota,usrquota,,errors=continue BTRFS error (device loop0): open_ctree failed SQUASHFS error: squashfs_read_data failed to read block 0x736 SQUASHFS error: Unable to read metadata cache entry [736] SQUASHFS error: squashfs_read_data failed to read block 0x4e8 ntfs: (device loop3): parse_ntfs_boot_sector(): Mft record size (2097152) exceeds the PAGE_SIZE on your system (4096). This is not supported. Sorry. audit: type=1800 audit(1677740411.037:10): pid=10517 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.1" name="file1" dev="loop1" ino=5 res=0 BTRFS: device fsid a6a605fc-d5f1-4e66-8595-3726e2b761d6 devid 1 transid 8 /dev/loop4 BTRFS error (device loop4): unsupported checksum algorithm 3 BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS: device fsid 24c7a497-3402-47dd-bef8-82358f5f30e0 devid 1 transid 8 /dev/loop5 BTRFS info (device loop5): using free space tree BTRFS info (device loop0): unrecognized mount option 'nossd_spread' BTRFS info (device loop5): has skinny extents BTRFS error (device loop0): open_ctree failed SQUASHFS error: squashfs_read_data failed to read block 0x736 SQUASHFS error: Unable to read metadata cache entry [736] SQUASHFS error: squashfs_read_data failed to read block 0x4e8 BTRFS error (device loop4): unsupported checksum algorithm 3 BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS info (device loop0): unrecognized mount option 'nossd_spread' BTRFS error (device loop0): open_ctree failed BTRFS info (device loop5): using free space tree BTRFS info (device loop5): has skinny extents F2FS-fs (loop1): invalid crc value BTRFS error (device loop4): unsupported checksum algorithm 3 F2FS-fs (loop1): Found nat_bits in checkpoint BTRFS info (device loop0): unrecognized mount option 'nossd_spread' BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop0): open_ctree failed F2FS-fs (loop1): Cannot turn on journaled quota: error -2 BTRFS error (device loop4): open_ctree failed F2FS-fs (loop1): Mounted with checkpoint version = 48b305e5 kauditd_printk_skb: 4 callbacks suppressed audit: type=1804 audit(1677740413.247:14): pid=10652 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir207698129/syzkaller.bzAOf1/52/file1" dev="sda1" ino=13933 res=1 BTRFS info (device loop3): using free space tree BTRFS info (device loop3): has skinny extents BTRFS error (device loop4): unsupported checksum algorithm 3 BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed audit: type=1804 audit(1677740413.837:15): pid=10740 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir207698129/syzkaller.bzAOf1/53/file1" dev="sda1" ino=14032 res=1 F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): Found nat_bits in checkpoint F2FS-fs (loop0): Cannot turn on journaled quota: error -2 F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents F2FS-fs (loop1): invalid crc value F2FS-fs (loop1): Found nat_bits in checkpoint ====================================================== WARNING: the mand mount option is being deprecated and will be removed in v5.15! ====================================================== EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support! EXT4-fs (loop3): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop3): orphan cleanup on readonly fs EXT4-fs error (device loop3): ext4_xattr_ibody_find:2194: inode #15: comm syz-executor.3: corrupted in-inode xattr EXT4-fs error (device loop3): ext4_orphan_get:1244: comm syz-executor.3: couldn't read orphan inode 15 (err -117) EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents dccp_v6_rcv: dropped packet with invalid checksum