BTRFS error (device loop3): superblock checksum mismatch REISERFS (device loop2): Using r5 hash to sort names REISERFS (device loop2): Created .reiserfs_priv - reserved for xattr storage. ====================================================== WARNING: possible circular locking dependency detected 4.14.301-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.2/10656 is trying to acquire lock: (sb_writers#14){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] (sb_writers#14){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 fs/namespace.c:497 but task is already holding lock: (&sbi->lock){+.+.}, at: [] reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&sbi->lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 reiserfs_lookup+0x130/0x400 fs/reiserfs/namei.c:363 lookup_real fs/namei.c:1555 [inline] __lookup_hash fs/namei.c:1575 [inline] __lookup_hash+0x1bb/0x270 fs/namei.c:1563 lookup_one_len+0x279/0x3a0 fs/namei.c:2539 reiserfs_lookup_privroot+0x92/0x270 fs/reiserfs/xattr.c:970 reiserfs_fill_super+0x1d12/0x2990 fs/reiserfs/super.c:2187 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 -> #1 (&type->i_mutex_dir_key#9){+.+.}: down_write+0x34/0x90 kernel/locking/rwsem.c:54 inode_lock include/linux/fs.h:719 [inline] do_last fs/namei.c:3331 [inline] path_openat+0xde2/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#14){.+.+}: 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_file+0xfd/0x3b0 fs/namespace.c:497 reiserfs_ioctl+0x18e/0x8b0 fs/reiserfs/ioctl.c:110 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 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: Chain exists of: sb_writers#14 --> &type->i_mutex_dir_key#9 --> &sbi->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&sbi->lock); lock(&type->i_mutex_dir_key#9); lock(&sbi->lock); lock(sb_writers#14); *** DEADLOCK *** 1 lock held by syz-executor.2/10656: #0: (&sbi->lock){+.+.}, at: [] reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 stack backtrace: CPU: 1 PID: 10656 Comm: syz-executor.2 Not tainted 4.14.301-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 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_file+0xfd/0x3b0 fs/namespace.c:497 reiserfs_ioctl+0x18e/0x8b0 fs/reiserfs/ioctl.c:110 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f12e670e0d9 RSP: 002b:00007f12e4c80168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f12e682df80 RCX: 00007f12e670e0d9 RDX: 0000000020000040 RSI: 0000000040087602 RDI: 0000000000000003 RBP: 00007f12e6769ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeca99dfcf R14: 00007f12e4c80300 R15: 0000000000022000 BTRFS error (device loop3): open_ctree failed BTRFS error (device loop5): unsupported checksum algorithm 1 BTRFS error (device loop5): superblock checksum mismatch BTRFS error (device loop5): open_ctree failed REISERFS (device loop2): found reiserfs format "3.6" with non-standard journal REISERFS (device loop2): using ordered data mode reiserfs: using flush barriers REISERFS (device loop2): journal params: device loop2, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop2): checking transaction log (loop2) REISERFS (device loop2): Using r5 hash to sort names REISERFS (device loop2): Created .reiserfs_priv - reserved for xattr storage. BTRFS error (device loop3): unsupported checksum algorithm 1 BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed REISERFS (device loop2): found reiserfs format "3.6" with non-standard journal REISERFS (device loop2): using ordered data mode reiserfs: using flush barriers REISERFS (device loop2): journal params: device loop2, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop2): checking transaction log (loop2) REISERFS (device loop2): Using r5 hash to sort names REISERFS (device loop2): Created .reiserfs_priv - reserved for xattr storage. REISERFS (device loop2): found reiserfs format "3.6" with non-standard journal REISERFS (device loop2): using ordered data mode reiserfs: using flush barriers REISERFS (device loop2): journal params: device loop2, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop2): checking transaction log (loop2) REISERFS (device loop2): Using r5 hash to sort names REISERFS (device loop2): Created .reiserfs_priv - reserved for xattr storage. EXT4-fs (loop1): old and new quota format mixing print_req_error: I/O error, dev loop1, sector 0 Buffer I/O error on dev loop1, logical block 0, async page read print_req_error: I/O error, dev loop1, sector 4 Buffer I/O error on dev loop1, logical block 2, async page read print_req_error: I/O error, dev loop1, sector 6 Buffer I/O error on dev loop1, logical block 3, async page read EXT4-fs (loop1): old and new quota format mixing print_req_error: I/O error, dev loop1, sector 0 Buffer I/O error on dev loop1, logical block 0, async page read print_req_error: I/O error, dev loop1, sector 4 Buffer I/O error on dev loop1, logical block 2, async page read print_req_error: I/O error, dev loop1, sector 6 Buffer I/O error on dev loop1, logical block 3, async page read BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop4 BTRFS info (device loop4): using free space tree BTRFS error (device loop4): cannot mount because of unsupported optional features (0x800) BTRFS error (device loop4): open_ctree failed EXT4-fs (loop1): old and new quota format mixing EXT4-fs (loop3): Unrecognized mount option "journal_ioprio=0x000000000000000ú™§˜2" or missing value sd 0:0:1:0: [sg0] tag#6368 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK sd 0:0:1:0: [sg0] tag#6368 CDB: Service action out(16), sa=0x1e sd 0:0:1:0: [sg0] tag#6368 CDB[00]: 9f 9e 6e b3 04 d5 f8 21 a9 be 1f 0a a0 17 a2 57 sd 0:0:1:0: [sg0] tag#6368 CDB[10]: 2a ef da 0b 61 d9 8c fc f3 d0 75 37 7b bb 83 36 sd 0:0:1:0: [sg0] tag#6368 CDB[20]: 48 27 d8 fd bc 16 30 fd 7f 79 eb 88 f4 58 9a 55 sd 0:0:1:0: [sg0] tag#6368 CDB[30]: e5 1c 3d e0 a2 b0 e6 c2 f7 3e 1c 75 05 da 6b 19 sd 0:0:1:0: [sg0] tag#6368 CDB[40]: 47 33 4b e9 5d f2 af b0 a3 83 dc 82 e6 74 31 db sd 0:0:1:0: [sg0] tag#6368 CDB[50]: e9 3e 7a 10 a1 01 62 57 5c 9a 71 16 19 19 2d 9c sd 0:0:1:0: [sg0] tag#6368 CDB[60]: 14 95 57 98 8b 74 ff 03 22 sd 0:0:1:0: [sg0] tag#6370 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK sd 0:0:1:0: [sg0] tag#6370 CDB: Service action out(16), sa=0x1e sd 0:0:1:0: [sg0] tag#6370 CDB[00]: 9f 9e 6e b3 04 d5 f8 21 a9 be 1f 0a a0 17 a2 57 sd 0:0:1:0: [sg0] tag#6370 CDB[10]: 2a ef da 0b 61 d9 8c fc f3 d0 75 37 7b bb 83 36 EXT4-fs (loop1): old and new quota format mixing sd 0:0:1:0: [sg0] tag#6370 CDB[20]: 48 27 d8 fd bc 16 30 fd 7f 79 eb 88 f4 58 9a 55 sd 0:0:1:0: [sg0] tag#6370 CDB[30]: e5 1c 3d e0 a2 b0 e6 c2 f7 3e 1c 75 05 da 6b 19 sd 0:0:1:0: [sg0] tag#6370 CDB[40]: 47 33 4b e9 5d f2 af b0 a3 83 dc 82 e6 74 31 db sd 0:0:1:0: [sg0] tag#6370 CDB[50]: e9 3e 7a 10 a1 01 62 57 5c 9a 71 16 19 19 2d 9c sd 0:0:1:0: [sg0] tag#6370 CDB[60]: 14 95 57 98 8b 74 ff 03 22 print_req_error: I/O error, dev loop1, sector 0 Buffer I/O error on dev loop1, logical block 0, async page read print_req_error: I/O error, dev loop1, sector 4 print_req_error: I/O error, dev loop3, sector 0 Buffer I/O error on dev loop1, logical block 2, async page read Buffer I/O error on dev loop3, logical block 0, async page read print_req_error: I/O error, dev loop1, sector 6 Buffer I/O error on dev loop3, logical block 2, async page read sd 0:0:1:0: [sg0] tag#6368 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK sd 0:0:1:0: [sg0] tag#6370 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK sd 0:0:1:0: [sg0] tag#6368 CDB: Service action out(16), sa=0x1e sd 0:0:1:0: [sg0] tag#6370 CDB: Service action out(16), sa=0x1e sd 0:0:1:0: [sg0] tag#6368 CDB[00]: 9f 9e 6e b3 04 d5 f8 21 a9 be 1f 0a a0 17 a2 57 sd 0:0:1:0: [sg0] tag#6370 CDB[00]: 9f 9e 6e b3 04 d5 f8 21 a9 be 1f 0a a0 17 a2 57 sd 0:0:1:0: [sg0] tag#6368 CDB[10]: 2a ef da 0b 61 d9 8c fc f3 d0 75 37 7b bb 83 36 sd 0:0:1:0: [sg0] tag#6370 CDB[10]: 2a ef da 0b 61 d9 8c fc f3 d0 75 37 7b bb 83 36 sd 0:0:1:0: [sg0] tag#6368 CDB[20]: 48 27 d8 fd bc 16 30 fd 7f 79 eb 88 f4 58 9a 55 sd 0:0:1:0: [sg0] tag#6370 CDB[20]: 48 27 d8 fd bc 16 30 fd 7f 79 eb 88 f4 58 9a 55 sd 0:0:1:0: [sg0] tag#6368 CDB[30]: e5 1c 3d e0 a2 b0 e6 c2 f7 3e 1c 75 05 da 6b 19 sd 0:0:1:0: [sg0] tag#6370 CDB[30]: e5 1c 3d e0 a2 b0 e6 c2 f7 3e 1c 75 05 da 6b 19 sd 0:0:1:0: [sg0] tag#6368 CDB[40]: 47 33 4b e9 5d f2 af b0 a3 83 dc 82 e6 74 31 db sd 0:0:1:0: [sg0] tag#6370 CDB[40]: 47 33 4b e9 5d f2 af b0 a3 83 dc 82 e6 74 31 db sd 0:0:1:0: [sg0] tag#6368 CDB[50]: e9 3e 7a 10 a1 01 62 57 5c 9a 71 16 19 19 2d 9c sd 0:0:1:0: [sg0] tag#6370 CDB[50]: e9 3e 7a 10 a1 01 62 57 5c 9a 71 16 19 19 2d 9c sd 0:0:1:0: [sg0] tag#6368 CDB[60]: 14 95 57 98 8b 74 ff 03 22 sd 0:0:1:0: [sg0] tag#6370 CDB[60]: 14 95 57 98 8b 74 ff 03 22 EXT4-fs (loop3): Unrecognized mount option "journal_ioprio=0x000000000000000ú™§˜2" or missing value sd 0:0:1:0: [sg0] tag#6368 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK sd 0:0:1:0: [sg0] tag#6368 CDB: Service action out(16), sa=0x1e sd 0:0:1:0: [sg0] tag#6368 CDB[00]: 9f 9e 6e b3 04 d5 f8 21 a9 be 1f 0a a0 17 a2 57 sd 0:0:1:0: [sg0] tag#6368 CDB[10]: 2a ef da 0b 61 d9 8c fc f3 d0 75 37 7b bb 83 36 sd 0:0:1:0: [sg0] tag#6368 CDB[20]: 48 27 d8 fd bc 16 30 fd 7f 79 eb 88 f4 58 9a 55 sd 0:0:1:0: [sg0] tag#6368 CDB[30]: e5 1c 3d e0 a2 b0 e6 c2 f7 3e 1c 75 05 da 6b 19 sd 0:0:1:0: [sg0] tag#6368 CDB[40]: 47 33 4b e9 5d f2 af b0 a3 83 dc 82 e6 74 31 db sd 0:0:1:0: [sg0] tag#6368 CDB[50]: e9 3e 7a 10 a1 01 62 57 5c 9a 71 16 19 19 2d 9c BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2245 sd 0:0:1:0: [sg0] tag#6368 CDB[60]: 14 95 57 98 8b 74 ff 03 22 in_atomic(): 1, irqs_disabled(): 1, pid: 11179, name: syz-executor.4 INFO: lockdep is turned off. irq event stamp: 0 hardirqs last enabled at (0): [< (null)>] (null) hardirqs last disabled at (0): [] copy_process.part.0+0x1229/0x71c0 kernel/fork.c:1731 softirqs last enabled at (0): [] copy_process.part.0+0x12d0/0x71c0 kernel/fork.c:1734 softirqs last disabled at (0): [< (null)>] (null) Preemption disabled at: [< (null)>] (null) EXT4-fs (loop3): Unrecognized mount option "journal_ioprio=0x000000000000000ú™§˜2" or missing value CPU: 0 PID: 11179 Comm: syz-executor.4 Not tainted 4.14.301-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 do_con_write+0xd0/0x19b0 drivers/tty/vt/vt.c:2245 con_write+0x21/0xa0 drivers/tty/vt/vt.c:2822 gsmld_write+0xbb/0x120 drivers/tty/n_gsm.c:2548 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x410/0x740 drivers/tty/tty_io.c:1043 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fa6e69280d9 RSP: 002b:00007fa6e4e9a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa6e6a47f80 RCX: 00007fa6e69280d9 RDX: 0000000000001006 RSI: 0000000020001040 RDI: 0000000000000005 RBP: 00007fa6e6983ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc78cf12ef R14: 00007fa6e4e9a300 R15: 0000000000022000 FAT-fs (md0): Unrecognized mount option "overlay" or missing value sd 0:0:1:0: [sg0] tag#6370 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK sd 0:0:1:0: [sg0] tag#6370 CDB: Service action out(16), sa=0x1e sd 0:0:1:0: [sg0] tag#6370 CDB[00]: 9f 9e 6e b3 04 d5 f8 21 a9 be 1f 0a a0 17 a2 57 sd 0:0:1:0: [sg0] tag#6370 CDB[10]: 2a ef da 0b 61 d9 8c fc f3 d0 75 37 7b bb 83 36 sd 0:0:1:0: [sg0] tag#6370 CDB[20]: 48 27 d8 fd bc 16 30 fd 7f 79 eb 88 f4 58 9a 55 BUG: scheduling while atomic: syz-executor.3/11209/0x00000002 sd 0:0:1:0: [sg0] tag#6370 CDB[30]: e5 1c 3d e0 a2 b0 e6 c2 f7 3e 1c 75 05 da 6b 19 sd 0:0:1:0: [sg0] tag#6370 CDB[40]: 47 33 4b e9 5d f2 af b0 a3 83 dc 82 e6 74 31 db INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [< (null)>] (null) sd 0:0:1:0: [sg0] tag#6370 CDB[50]: e9 3e 7a 10 a1 01 62 57 5c 9a 71 16 19 19 2d 9c sd 0:0:1:0: [sg0] tag#6370 CDB[60]: 14 95 57 98 8b 74 ff 03 22 sd 0:0:1:0: [sg0] tag#6370 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK