Warning: Permanently added '10.128.0.217' (ECDSA) to the list of known hosts. executing program [ 34.268361] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 34.276917] REISERFS (device loop0): using ordered data mode [ 34.283489] reiserfs: using flush barriers [ 34.288874] 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 [ 34.304509] REISERFS (device loop0): checking transaction log (loop0) [ 34.313254] REISERFS (device loop0): Using rupasov hash to sort names [ 34.320978] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 34.330480] [ 34.332106] ====================================================== [ 34.338410] WARNING: possible circular locking dependency detected [ 34.344714] 4.14.299-syzkaller #0 Not tainted [ 34.349190] ------------------------------------------------------ [ 34.355496] syz-executor311/7964 is trying to acquire lock: [ 34.361186] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 34.370002] [ 34.370002] but task is already holding lock: [ 34.375941] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 34.384408] [ 34.384408] which lock already depends on the new lock. [ 34.384408] [ 34.392690] [ 34.392690] the existing dependency chain (in reverse order) is: [ 34.400280] [ 34.400280] -> #2 (sb_writers#10){.+.+}: [ 34.405796] __sb_start_write+0x64/0x260 [ 34.410347] mnt_want_write_file+0xfd/0x3b0 [ 34.415158] reiserfs_ioctl+0x18e/0x8b0 [ 34.419622] do_vfs_ioctl+0x75a/0xff0 [ 34.423910] SyS_ioctl+0x7f/0xb0 [ 34.427769] do_syscall_64+0x1d5/0x640 [ 34.432149] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 34.437826] [ 34.437826] -> #1 (&sbi->lock){+.+.}: [ 34.443092] __mutex_lock+0xc4/0x1310 [ 34.447389] reiserfs_write_lock_nested+0x59/0xd0 [ 34.452727] do_journal_begin_r+0x276/0xde0 [ 34.457547] journal_begin+0x162/0x3d0 [ 34.461932] reiserfs_fill_super+0x18f4/0x2990 [ 34.467008] mount_bdev+0x2b3/0x360 [ 34.471124] mount_fs+0x92/0x2a0 [ 34.474987] vfs_kern_mount.part.0+0x5b/0x470 [ 34.479974] do_mount+0xe65/0x2a30 [ 34.484006] SyS_mount+0xa8/0x120 [ 34.487950] do_syscall_64+0x1d5/0x640 [ 34.492331] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 34.498008] [ 34.498008] -> #0 (&journal->j_mutex){+.+.}: [ 34.503876] lock_acquire+0x170/0x3f0 [ 34.508179] __mutex_lock+0xc4/0x1310 [ 34.512475] do_journal_begin_r+0x26b/0xde0 [ 34.517283] journal_begin+0x162/0x3d0 [ 34.521664] reiserfs_dirty_inode+0xd9/0x200 [ 34.526562] __mark_inode_dirty+0x11e/0xf40 [ 34.531375] reiserfs_ioctl+0x6f6/0x8b0 [ 34.535843] do_vfs_ioctl+0x75a/0xff0 [ 34.540131] SyS_ioctl+0x7f/0xb0 [ 34.543989] do_syscall_64+0x1d5/0x640 [ 34.548369] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 34.554046] [ 34.554046] other info that might help us debug this: [ 34.554046] [ 34.562153] Chain exists of: [ 34.562153] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 34.562153] [ 34.572615] Possible unsafe locking scenario: [ 34.572615] [ 34.578647] CPU0 CPU1 [ 34.583298] ---- ---- [ 34.587931] lock(sb_writers#10); [ 34.591441] lock(&sbi->lock); [ 34.597206] lock(sb_writers#10); [ 34.603232] lock(&journal->j_mutex); [ 34.607093] [ 34.607093] *** DEADLOCK *** [ 34.607093] [ 34.613128] 1 lock held by syz-executor311/7964: [ 34.617849] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 34.626753] [ 34.626753] stack backtrace: [ 34.631224] CPU: 0 PID: 7964 Comm: syz-executor311 Not tainted 4.14.299-syzkaller #0 [ 34.639071] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 34.648394] Call Trace: [ 34.650956] dump_stack+0x1b2/0x281 [ 34.654559] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 34.660331] __lock_acquire+0x2e0e/0x3f20 [ 34.664451] ? trace_hardirqs_on+0x10/0x10 [ 34.668655] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 34.674508] ? unwind_next_frame+0xe54/0x17d0 [ 34.678973] ? unwind_next_frame+0xe54/0x17d0 [ 34.683439] ? deref_stack_reg+0x124/0x1a0 [ 34.687643] lock_acquire+0x170/0x3f0 [ 34.691416] ? do_journal_begin_r+0x26b/0xde0 [ 34.695881] ? do_journal_begin_r+0x26b/0xde0 [ 34.700348] __mutex_lock+0xc4/0x1310 [ 34.704119] ? do_journal_begin_r+0x26b/0xde0 [ 34.708582] ? do_journal_begin_r+0x26b/0xde0 [ 34.713046] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 34.718466] ? __mutex_unlock_slowpath+0x75/0x770 [ 34.723279] ? wait_for_completion_io+0x10/0x10 [ 34.727925] ? __lock_acquire+0x2190/0x3f20 [ 34.732307] do_journal_begin_r+0x26b/0xde0 [ 34.736599] ? do_journal_end+0x4310/0x4310 [ 34.740902] ? trace_hardirqs_on+0x10/0x10 [ 34.745105] ? reiserfs_write_lock+0x75/0xf0 [ 34.749483] ? __mutex_lock+0x360/0x1310 [ 34.753519] journal_begin+0x162/0x3d0 [ 34.757377] reiserfs_dirty_inode+0xd9/0x200 [ 34.761755] ? reiserfs_unfreeze+0xa0/0xa0 [ 34.765961] ? mark_held_locks+0xa6/0xf0 [ 34.769994] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 34.775413] ? reiserfs_unfreeze+0xa0/0xa0 [ 34.779618] __mark_inode_dirty+0x11e/0xf40 [ 34.783913] reiserfs_ioctl+0x6f6/0x8b0 [ 34.787857] ? reiserfs_unpack+0x510/0x510 [ 34.792061] do_vfs_ioctl+0x75a/0xff0 [ 34.795830] ? ioctl_preallocate+0x1a0/0x1a0 [ 34.800207] ? lock_acquire+0x170/0x3f0 [ 34.804149] ? dnotify_flush+0x19/0x2c0 [ 34.808093] ? fput_many+0xe/0x140 [ 34.811609] ? filp_close+0x102/0x140 [ 34.815382] ? security_file_ioctl+0x83/0xb0 [ 34.81975