Warning: Permanently added '10.128.1.38' (ECDSA) to the list of known hosts. executing program [ 26.130534] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 26.140377] REISERFS (device loop0): using ordered data mode [ 26.146409] reiserfs: using flush barriers [ 26.151388] 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 [ 26.167285] REISERFS (device loop0): checking transaction log (loop0) [ 26.175202] REISERFS (device loop0): Using rupasov hash to sort names [ 26.182689] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 26.191718] [ 26.193339] ====================================================== [ 26.199633] WARNING: possible circular locking dependency detected [ 26.205931] 4.14.298-syzkaller #0 Not tainted [ 26.210404] ------------------------------------------------------ [ 26.216699] syz-executor121/7977 is trying to acquire lock: [ 26.222376] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 26.231192] [ 26.231192] but task is already holding lock: [ 26.237130] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 26.245598] [ 26.245598] which lock already depends on the new lock. [ 26.245598] [ 26.253884] [ 26.253884] the existing dependency chain (in reverse order) is: [ 26.261471] [ 26.261471] -> #2 (sb_writers#10){.+.+}: [ 26.266990] __sb_start_write+0x64/0x260 [ 26.271551] mnt_want_write_file+0xfd/0x3b0 [ 26.276364] reiserfs_ioctl+0x18e/0x8b0 [ 26.280831] do_vfs_ioctl+0x75a/0xff0 [ 26.285125] SyS_ioctl+0x7f/0xb0 [ 26.288984] do_syscall_64+0x1d5/0x640 [ 26.293362] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 26.299043] [ 26.299043] -> #1 (&sbi->lock){+.+.}: [ 26.304296] __mutex_lock+0xc4/0x1310 [ 26.308594] reiserfs_write_lock_nested+0x59/0xd0 [ 26.313928] do_journal_begin_r+0x276/0xde0 [ 26.318737] journal_begin+0x162/0x3d0 [ 26.323115] reiserfs_fill_super+0x18f4/0x2990 [ 26.328184] mount_bdev+0x2b3/0x360 [ 26.332299] mount_fs+0x92/0x2a0 [ 26.336156] vfs_kern_mount.part.0+0x5b/0x470 [ 26.341140] do_mount+0xe65/0x2a30 [ 26.345172] SyS_mount+0xa8/0x120 [ 26.349117] do_syscall_64+0x1d5/0x640 [ 26.353498] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 26.359173] [ 26.359173] -> #0 (&journal->j_mutex){+.+.}: [ 26.365035] lock_acquire+0x170/0x3f0 [ 26.369587] __mutex_lock+0xc4/0x1310 [ 26.373882] do_journal_begin_r+0x26b/0xde0 [ 26.378691] journal_begin+0x162/0x3d0 [ 26.383067] reiserfs_dirty_inode+0xd9/0x200 [ 26.387964] __mark_inode_dirty+0x11e/0xf40 [ 26.392774] reiserfs_ioctl+0x6f6/0x8b0 [ 26.397236] do_vfs_ioctl+0x75a/0xff0 [ 26.401531] SyS_ioctl+0x7f/0xb0 [ 26.405410] do_syscall_64+0x1d5/0x640 [ 26.409791] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 26.415468] [ 26.415468] other info that might help us debug this: [ 26.415468] [ 26.423575] Chain exists of: [ 26.423575] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 26.423575] [ 26.434057] Possible unsafe locking scenario: [ 26.434057] [ 26.440081] CPU0 CPU1 [ 26.444714] ---- ---- [ 26.449348] lock(sb_writers#10); [ 26.452858] lock(&sbi->lock); [ 26.458620] lock(sb_writers#10); [ 26.464648] lock(&journal->j_mutex); [ 26.468504] [ 26.468504] *** DEADLOCK *** [ 26.468504] [ 26.474530] 1 lock held by syz-executor121/7977: [ 26.479252] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 26.488151] [ 26.488151] stack backtrace: [ 26.492617] CPU: 1 PID: 7977 Comm: syz-executor121 Not tainted 4.14.298-syzkaller #0 [ 26.500559] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 26.509884] Call Trace: [ 26.512445] dump_stack+0x1b2/0x281 [ 26.516044] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 26.521814] __lock_acquire+0x2e0e/0x3f20 [ 26.525936] ? trace_hardirqs_on+0x10/0x10 [ 26.530140] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 26.535991] ? unwind_next_frame+0xe54/0x17d0 [ 26.540456] ? unwind_next_frame+0xe54/0x17d0 [ 26.544920] ? deref_stack_reg+0x124/0x1a0 [ 26.549123] lock_acquire+0x170/0x3f0 [ 26.552895] ? do_journal_begin_r+0x26b/0xde0 [ 26.557362] ? do_journal_begin_r+0x26b/0xde0 [ 26.561833] __mutex_lock+0xc4/0x1310 [ 26.565602] ? do_journal_begin_r+0x26b/0xde0 [ 26.570071] ? do_journal_begin_r+0x26b/0xde0 [ 26.574534] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 26.579952] ? __mutex_unlock_slowpath+0x75/0x770 [ 26.584767] ? wait_for_completion_io+0x10/0x10 [ 26.589408] ? __lock_acquire+0x2190/0x3f20 [ 26.593699] do_journal_begin_r+0x26b/0xde0 [ 26.597991] ? do_journal_end+0x4310/0x4310 [ 26.602282] ? trace_hardirqs_on+0x10/0x10 [ 26.606486] ? reiserfs_write_lock+0x75/0xf0 [ 26.610866] ? __mutex_lock+0x360/0x1310 [ 26.614895] journal_begin+0x162/0x3d0 [ 26.618762] reiserfs_dirty_inode+0xd9/0x200 [ 26.623140] ? reiserfs_unfreeze+0xa0/0xa0 [ 26.627343] ? mark_held_locks+0xa6/0xf0 [ 26.631373] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 26.636791] ? reiserfs_unfreeze+0xa0/0xa0 [ 26.640999] __mark_inode_dirty+0x11e/0xf40 [ 26.645289] reiserfs_ioctl+0x6f6/0x8b0 [ 26.649234] ? reiserfs_unpack+0x510/0x510 [ 26.653446] do_vfs_ioctl+0x75a/0xff0 [ 26.657222] ? getname_flags+0x2a2/0x550 [ 26.661256] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 26.666251] ? ioctl_preallocate+0x1a0/0x1a0 [ 26.670634] ? getname_flags+0x22e/0x550 [ 26.674666] ? do_sys_open+0x208/0x410 [ 26.678524] ? filp_open+0x60/0x60 [ 26.682