Warning: Permanently added '10.128.0.178' (ECDSA) to the list of known hosts. executing program [ 27.930355] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 27.939035] REISERFS (device loop0): using ordered data mode [ 27.945118] reiserfs: using flush barriers [ 27.950824] REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 [ 27.966808] REISERFS (device loop0): checking transaction log (loop0) [ 27.974671] REISERFS (device loop0): Using rupasov hash to sort names [ 27.981960] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 27.995883] [ 27.997505] ====================================================== [ 28.003796] WARNING: possible circular locking dependency detected [ 28.010090] 4.14.299-syzkaller #0 Not tainted [ 28.014564] ------------------------------------------------------ [ 28.020858] syz-executor561/7979 is trying to acquire lock: [ 28.026533] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 28.035347] [ 28.035347] but task is already holding lock: [ 28.041285] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.049752] [ 28.049752] which lock already depends on the new lock. [ 28.049752] [ 28.058034] [ 28.058034] the existing dependency chain (in reverse order) is: [ 28.065621] [ 28.065621] -> #2 (sb_writers#10){.+.+}: [ 28.071139] __sb_start_write+0x64/0x260 [ 28.075690] mnt_want_write_file+0xfd/0x3b0 [ 28.080504] reiserfs_ioctl+0x18e/0x8b0 [ 28.084970] do_vfs_ioctl+0x75a/0xff0 [ 28.089261] SyS_ioctl+0x7f/0xb0 [ 28.093119] do_syscall_64+0x1d5/0x640 [ 28.097503] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.103177] [ 28.103177] -> #1 (&sbi->lock){+.+.}: [ 28.108430] __mutex_lock+0xc4/0x1310 [ 28.112724] reiserfs_write_lock_nested+0x59/0xd0 [ 28.118056] do_journal_begin_r+0x276/0xde0 [ 28.122865] journal_begin+0x162/0x3d0 [ 28.127244] reiserfs_fill_super+0x18f4/0x2990 [ 28.132320] mount_bdev+0x2b3/0x360 [ 28.136435] mount_fs+0x92/0x2a0 [ 28.140291] vfs_kern_mount.part.0+0x5b/0x470 [ 28.145277] do_mount+0xe65/0x2a30 [ 28.149310] SyS_mount+0xa8/0x120 [ 28.153254] do_syscall_64+0x1d5/0x640 [ 28.157633] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.163309] [ 28.163309] -> #0 (&journal->j_mutex){+.+.}: [ 28.169170] lock_acquire+0x170/0x3f0 [ 28.173462] __mutex_lock+0xc4/0x1310 [ 28.177753] do_journal_begin_r+0x26b/0xde0 [ 28.182565] journal_begin+0x162/0x3d0 [ 28.186942] reiserfs_dirty_inode+0xd9/0x200 [ 28.191842] __mark_inode_dirty+0x11e/0xf40 [ 28.196652] reiserfs_ioctl+0x6f6/0x8b0 [ 28.201118] do_vfs_ioctl+0x75a/0xff0 [ 28.205406] SyS_ioctl+0x7f/0xb0 [ 28.209264] do_syscall_64+0x1d5/0x640 [ 28.213643] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.219320] [ 28.219320] other info that might help us debug this: [ 28.219320] [ 28.227427] Chain exists of: [ 28.227427] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 28.227427] [ 28.237887] Possible unsafe locking scenario: [ 28.237887] [ 28.243910] CPU0 CPU1 [ 28.248545] ---- ---- [ 28.253176] lock(sb_writers#10); [ 28.256686] lock(&sbi->lock); [ 28.262472] lock(sb_writers#10); [ 28.268504] lock(&journal->j_mutex); [ 28.272359] [ 28.272359] *** DEADLOCK *** [ 28.272359] [ 28.278387] 1 lock held by syz-executor561/7979: [ 28.283106] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.292006] [ 28.292006] stack backtrace: [ 28.296471] CPU: 1 PID: 7979 Comm: syz-executor561 Not tainted 4.14.299-syzkaller #0 [ 28.304322] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.313644] Call Trace: [ 28.316203] dump_stack+0x1b2/0x281 [ 28.319801] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.325570] __lock_acquire+0x2e0e/0x3f20 [ 28.329687] ? trace_hardirqs_on+0x10/0x10 [ 28.333893] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 28.339746] ? unwind_next_frame+0xe54/0x17d0 [ 28.344210] ? unwind_next_frame+0xe54/0x17d0 [ 28.348673] ? deref_stack_reg+0x124/0x1a0 [ 28.352875] lock_acquire+0x170/0x3f0 [ 28.356649] ? do_journal_begin_r+0x26b/0xde0 [ 28.361111] ? do_journal_begin_r+0x26b/0xde0 [ 28.365578] __mutex_lock+0xc4/0x1310 [ 28.369346] ? do_journal_begin_r+0x26b/0xde0 [ 28.373808] ? do_journal_begin_r+0x26b/0xde0 [ 28.378276] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.383698] ? __mutex_unlock_slowpath+0x75/0x770 [ 28.388511] ? wait_for_completion_io+0x10/0x10 [ 28.393147] ? __lock_acquire+0x2190/0x3f20 [ 28.397440] do_journal_begin_r+0x26b/0xde0 [ 28.401732] ? do_journal_end+0x4310/0x4310 [ 28.406024] ? trace_hardirqs_on+0x10/0x10 [ 28.410226] ? reiserfs_write_lock+0x75/0xf0 [ 28.414602] ? __mutex_lock+0x360/0x1310 [ 28.418632] journal_begin+0x162/0x3d0 [ 28.422493] reiserfs_dirty_inode+0xd9/0x200 [ 28.426872] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.431074] ? mark_held_locks+0xa6/0xf0 [ 28.435108] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.440529] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.444734] __mark_inode_dirty+0x11e/0xf40 [ 28.449024] reiserfs_ioctl+0x6f6/0x8b0 [ 28.452966] ? reiserfs_unpack+0x510/0x510 [ 28.457170] do_vfs_ioctl+0x75a/0xff0 [ 28.460940] ? getname_flags+0x2a2/0x550 [ 28.464970] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 28.469953] ? ioctl_preallocate+0x1a0/0x1a0 [ 28.474330] ? getname_flags+0x22e/0x550 [ 28.478358] ? do_sys_open+0x208/0x410 [ 28.4