Warning: Permanently added '10.128.10.14' (ECDSA) to the list of known hosts. executing program [ 27.704870] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 27.713563] REISERFS (device loop0): using ordered data mode [ 27.719358] reiserfs: using flush barriers [ 27.725591] 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.742145] REISERFS (device loop0): checking transaction log (loop0) [ 27.750480] REISERFS (device loop0): Using rupasov hash to sort names [ 27.757968] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 27.767631] [ 27.769256] ====================================================== [ 27.775556] WARNING: possible circular locking dependency detected [ 27.781857] 4.14.299-syzkaller #0 Not tainted [ 27.786335] ------------------------------------------------------ [ 27.792636] syz-executor361/7970 is trying to acquire lock: [ 27.798314] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 27.807131] [ 27.807131] but task is already holding lock: [ 27.813072] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 27.821560] [ 27.821560] which lock already depends on the new lock. [ 27.821560] [ 27.829845] [ 27.829845] the existing dependency chain (in reverse order) is: [ 27.837437] [ 27.837437] -> #2 (sb_writers#10){.+.+}: [ 27.842955] __sb_start_write+0x64/0x260 [ 27.847508] mnt_want_write_file+0xfd/0x3b0 [ 27.852326] reiserfs_ioctl+0x18e/0x8b0 [ 27.856807] do_vfs_ioctl+0x75a/0xff0 [ 27.861108] SyS_ioctl+0x7f/0xb0 [ 27.864970] do_syscall_64+0x1d5/0x640 [ 27.869349] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.875034] [ 27.875034] -> #1 (&sbi->lock){+.+.}: [ 27.880290] __mutex_lock+0xc4/0x1310 [ 27.884583] reiserfs_write_lock_nested+0x59/0xd0 [ 27.889918] do_journal_begin_r+0x276/0xde0 [ 27.894732] journal_begin+0x162/0x3d0 [ 27.899113] reiserfs_fill_super+0x18f4/0x2990 [ 27.904186] mount_bdev+0x2b3/0x360 [ 27.908305] mount_fs+0x92/0x2a0 [ 27.912166] vfs_kern_mount.part.0+0x5b/0x470 [ 27.917156] do_mount+0xe65/0x2a30 [ 27.921188] SyS_mount+0xa8/0x120 [ 27.925150] do_syscall_64+0x1d5/0x640 [ 27.929531] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.935217] [ 27.935217] -> #0 (&journal->j_mutex){+.+.}: [ 27.941081] lock_acquire+0x170/0x3f0 [ 27.945383] __mutex_lock+0xc4/0x1310 [ 27.949679] do_journal_begin_r+0x26b/0xde0 [ 27.954490] journal_begin+0x162/0x3d0 [ 27.958869] reiserfs_dirty_inode+0xd9/0x200 [ 27.963769] __mark_inode_dirty+0x11e/0xf40 [ 27.968584] reiserfs_ioctl+0x6f6/0x8b0 [ 27.973051] do_vfs_ioctl+0x75a/0xff0 [ 27.977343] SyS_ioctl+0x7f/0xb0 [ 27.981203] do_syscall_64+0x1d5/0x640 [ 27.985582] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.991262] [ 27.991262] other info that might help us debug this: [ 27.991262] [ 27.999373] Chain exists of: [ 27.999373] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 27.999373] [ 28.009861] Possible unsafe locking scenario: [ 28.009861] [ 28.015889] CPU0 CPU1 [ 28.020526] ---- ---- [ 28.025163] lock(sb_writers#10); [ 28.028676] lock(&sbi->lock); [ 28.034443] lock(sb_writers#10); [ 28.040476] lock(&journal->j_mutex); [ 28.044339] [ 28.044339] *** DEADLOCK *** [ 28.044339] [ 28.050367] 1 lock held by syz-executor361/7970: [ 28.055093] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.063998] [ 28.063998] stack backtrace: [ 28.068467] CPU: 1 PID: 7970 Comm: syz-executor361 Not tainted 4.14.299-syzkaller #0 [ 28.076319] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.085648] Call Trace: [ 28.088459] dump_stack+0x1b2/0x281 [ 28.092391] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.098162] __lock_acquire+0x2e0e/0x3f20 [ 28.102283] ? trace_hardirqs_on+0x10/0x10 [ 28.106491] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 28.112350] ? unwind_next_frame+0xe54/0x17d0 [ 28.116820] ? unwind_next_frame+0xe54/0x17d0 [ 28.121290] ? deref_stack_reg+0x124/0x1a0 [ 28.125511] lock_acquire+0x170/0x3f0 [ 28.129295] ? do_journal_begin_r+0x26b/0xde0 [ 28.133768] ? do_journal_begin_r+0x26b/0xde0 [ 28.138240] __mutex_lock+0xc4/0x1310 [ 28.142015] ? do_journal_begin_r+0x26b/0xde0 [ 28.146579] ? do_journal_begin_r+0x26b/0xde0 [ 28.151048] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.156500] ? __mutex_unlock_slowpath+0x75/0x770 [ 28.161327] ? wait_for_completion_io+0x10/0x10 [ 28.165986] ? __lock_acquire+0x2190/0x3f20 [ 28.170294] do_journal_begin_r+0x26b/0xde0 [ 28.174593] ? do_journal_end+0x4310/0x4310 [ 28.178892] ? trace_hardirqs_on+0x10/0x10 [ 28.183097] ? reiserfs_write_lock+0x75/0xf0 [ 28.187482] ? __mutex_lock+0x360/0x1310 [ 28.191516] journal_begin+0x162/0x3d0 [ 28.195385] reiserfs_dirty_inode+0xd9/0x200 [ 28.199767] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.203975] ? mark_held_locks+0xa6/0xf0 [ 28.208017] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.213701] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.217909] __mark_inode_dirty+0x11e/0xf40 [ 28.222204] reiserfs_ioctl+0x6f6/0x8b0 [ 28.226153] ? reiserfs_unpack+0x510/0x510 [ 28.230365] do_vfs_ioctl+0x75a/0xff0 [ 28.234284] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.239742] ? ioctl_preallocate+0x1a0/0x1a0 [ 28.244149] ? kmem_cache_free+0x23a/0x2b0 [ 28.248371] ? putname+0xcd/0x110 [ 28.251806] ? do_sys_open+0x208/0x410 [ 28.255668] ? fi