Warning: Permanently added '10.128.15.206' (ECDSA) to the list of known hosts. executing program [ 28.148655] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 28.157252] REISERFS (device loop0): using ordered data mode [ 28.163940] reiserfs: using flush barriers [ 28.169711] 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 [ 28.185349] REISERFS (device loop0): checking transaction log (loop0) [ 28.193745] REISERFS (device loop0): Using rupasov hash to sort names [ 28.201433] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 28.210992] [ 28.212615] ====================================================== [ 28.218914] WARNING: possible circular locking dependency detected [ 28.225219] 4.14.298-syzkaller #0 Not tainted [ 28.229698] ------------------------------------------------------ [ 28.235996] syz-executor418/7992 is trying to acquire lock: [ 28.241680] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 28.250496] [ 28.250496] but task is already holding lock: [ 28.256439] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.264907] [ 28.264907] which lock already depends on the new lock. [ 28.264907] [ 28.273191] [ 28.273191] the existing dependency chain (in reverse order) is: [ 28.280793] [ 28.280793] -> #2 (sb_writers#10){.+.+}: [ 28.286308] __sb_start_write+0x64/0x260 [ 28.290858] mnt_want_write_file+0xfd/0x3b0 [ 28.295675] reiserfs_ioctl+0x18e/0x8b0 [ 28.300138] do_vfs_ioctl+0x75a/0xff0 [ 28.304426] SyS_ioctl+0x7f/0xb0 [ 28.308285] do_syscall_64+0x1d5/0x640 [ 28.312663] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.318340] [ 28.318340] -> #1 (&sbi->lock){+.+.}: [ 28.323594] __mutex_lock+0xc4/0x1310 [ 28.327887] reiserfs_write_lock_nested+0x59/0xd0 [ 28.333222] do_journal_begin_r+0x276/0xde0 [ 28.338035] journal_begin+0x162/0x3d0 [ 28.342416] reiserfs_fill_super+0x18f4/0x2990 [ 28.347489] mount_bdev+0x2b3/0x360 [ 28.351618] mount_fs+0x92/0x2a0 [ 28.355492] vfs_kern_mount.part.0+0x5b/0x470 [ 28.360483] do_mount+0xe65/0x2a30 [ 28.364516] SyS_mount+0xa8/0x120 [ 28.368468] do_syscall_64+0x1d5/0x640 [ 28.372848] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.378525] [ 28.378525] -> #0 (&journal->j_mutex){+.+.}: [ 28.384387] lock_acquire+0x170/0x3f0 [ 28.388676] __mutex_lock+0xc4/0x1310 [ 28.392966] do_journal_begin_r+0x26b/0xde0 [ 28.397778] journal_begin+0x162/0x3d0 [ 28.402164] reiserfs_dirty_inode+0xd9/0x200 [ 28.407065] __mark_inode_dirty+0x11e/0xf40 [ 28.411876] reiserfs_ioctl+0x6f6/0x8b0 [ 28.416342] do_vfs_ioctl+0x75a/0xff0 [ 28.420634] SyS_ioctl+0x7f/0xb0 [ 28.424493] do_syscall_64+0x1d5/0x640 [ 28.428871] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.434549] [ 28.434549] other info that might help us debug this: [ 28.434549] [ 28.442658] Chain exists of: [ 28.442658] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 28.442658] [ 28.453122] Possible unsafe locking scenario: [ 28.453122] [ 28.459150] CPU0 CPU1 [ 28.463786] ---- ---- [ 28.468420] lock(sb_writers#10); [ 28.471931] lock(&sbi->lock); [ 28.477695] lock(sb_writers#10); [ 28.483724] lock(&journal->j_mutex); [ 28.487581] [ 28.487581] *** DEADLOCK *** [ 28.487581] [ 28.493609] 1 lock held by syz-executor418/7992: [ 28.498332] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.507234] [ 28.507234] stack backtrace: [ 28.511702] CPU: 0 PID: 7992 Comm: syz-executor418 Not tainted 4.14.298-syzkaller #0 [ 28.519549] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.528872] Call Trace: [ 28.531433] dump_stack+0x1b2/0x281 [ 28.535034] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.540807] __lock_acquire+0x2e0e/0x3f20 [ 28.544931] ? trace_hardirqs_on+0x10/0x10 [ 28.549138] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 28.554999] ? unwind_next_frame+0xe54/0x17d0 [ 28.559466] ? unwind_next_frame+0xe54/0x17d0 [ 28.563930] ? deref_stack_reg+0x124/0x1a0 [ 28.568134] lock_acquire+0x170/0x3f0 [ 28.571906] ? do_journal_begin_r+0x26b/0xde0 [ 28.576370] ? do_journal_begin_r+0x26b/0xde0 [ 28.580836] __mutex_lock+0xc4/0x1310 [ 28.584606] ? do_journal_begin_r+0x26b/0xde0 [ 28.589071] ? do_journal_begin_r+0x26b/0xde0 [ 28.593537] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.598962] ? __mutex_unlock_slowpath+0x75/0x770 [ 28.603778] ? wait_for_completion_io+0x10/0x10 [ 28.608419] ? __lock_acquire+0x2190/0x3f20 [ 28.612710] do_journal_begin_r+0x26b/0xde0 [ 28.617004] ? do_journal_end+0x4310/0x4310 [ 28.621296] ? trace_hardirqs_on+0x10/0x10 [ 28.625502] ? reiserfs_write_lock+0x75/0xf0 [ 28.629885] ? __mutex_lock+0x360/0x1310 [ 28.633916] journal_begin+0x162/0x3d0 [ 28.637776] reiserfs_dirty_inode+0xd9/0x200 [ 28.642158] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.646373] ? mark_held_locks+0xa6/0xf0 [ 28.650407] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.655827] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.660033] __mark_inode_dirty+0x11e/0xf40 [ 28.664327] reiserfs_ioctl+0x6f6/0x8b0 [ 28.668273] ? reiserfs_unpack+0x510/0x510 [ 28.672483] do_vfs_ioctl+0x75a/0xff0 [ 28.676256] ? getname_flags+0x2a2/0x550 [ 28.680289] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 28.685275] ? ioctl_preallocate+0x1a0/0x1a0 [ 28.689653] ? getname_flags+0x22e/0x550 [ 28.693687] ? do_sys_open+0x208/0x410 [ 28.697545] ? filp_open+0x60/0x60 [