Warning: Permanently added '10.128.1.44' (ECDSA) to the list of known hosts. executing program [ 28.034474] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 28.044496] REISERFS (device loop0): using ordered data mode [ 28.050633] reiserfs: using flush barriers [ 28.055776] 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.071871] REISERFS (device loop0): checking transaction log (loop0) [ 28.079731] REISERFS (device loop0): Using rupasov hash to sort names [ 28.086699] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 28.096038] [ 28.097660] ====================================================== [ 28.103958] WARNING: possible circular locking dependency detected [ 28.110261] 4.14.299-syzkaller #0 Not tainted [ 28.114743] ------------------------------------------------------ [ 28.121040] syz-executor313/7969 is trying to acquire lock: [ 28.126717] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 28.135531] [ 28.135531] but task is already holding lock: [ 28.141473] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.149941] [ 28.149941] which lock already depends on the new lock. [ 28.149941] [ 28.158224] [ 28.158224] the existing dependency chain (in reverse order) is: [ 28.165811] [ 28.165811] -> #2 (sb_writers#10){.+.+}: [ 28.171327] __sb_start_write+0x64/0x260 [ 28.175878] mnt_want_write_file+0xfd/0x3b0 [ 28.180696] reiserfs_ioctl+0x18e/0x8b0 [ 28.185158] do_vfs_ioctl+0x75a/0xff0 [ 28.189451] SyS_ioctl+0x7f/0xb0 [ 28.193317] do_syscall_64+0x1d5/0x640 [ 28.197694] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.203370] [ 28.203370] -> #1 (&sbi->lock){+.+.}: [ 28.208622] __mutex_lock+0xc4/0x1310 [ 28.212914] reiserfs_write_lock_nested+0x59/0xd0 [ 28.218247] do_journal_begin_r+0x276/0xde0 [ 28.223057] journal_begin+0x162/0x3d0 [ 28.227433] reiserfs_fill_super+0x18f4/0x2990 [ 28.232504] mount_bdev+0x2b3/0x360 [ 28.236620] mount_fs+0x92/0x2a0 [ 28.240475] vfs_kern_mount.part.0+0x5b/0x470 [ 28.245459] do_mount+0xe65/0x2a30 [ 28.249487] SyS_mount+0xa8/0x120 [ 28.253432] do_syscall_64+0x1d5/0x640 [ 28.257810] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.263484] [ 28.263484] -> #0 (&journal->j_mutex){+.+.}: [ 28.269348] lock_acquire+0x170/0x3f0 [ 28.273638] __mutex_lock+0xc4/0x1310 [ 28.277930] do_journal_begin_r+0x26b/0xde0 [ 28.282751] journal_begin+0x162/0x3d0 [ 28.287131] reiserfs_dirty_inode+0xd9/0x200 [ 28.292035] __mark_inode_dirty+0x11e/0xf40 [ 28.296845] reiserfs_ioctl+0x6f6/0x8b0 [ 28.301315] do_vfs_ioctl+0x75a/0xff0 [ 28.305603] SyS_ioctl+0x7f/0xb0 [ 28.309632] do_syscall_64+0x1d5/0x640 [ 28.314010] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.319686] [ 28.319686] other info that might help us debug this: [ 28.319686] [ 28.327798] Chain exists of: [ 28.327798] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 28.327798] [ 28.338259] Possible unsafe locking scenario: [ 28.338259] [ 28.344286] CPU0 CPU1 [ 28.348919] ---- ---- [ 28.353552] lock(sb_writers#10); [ 28.357062] lock(&sbi->lock); [ 28.362830] lock(sb_writers#10); [ 28.368855] lock(&journal->j_mutex); [ 28.372715] [ 28.372715] *** DEADLOCK *** [ 28.372715] [ 28.378748] 1 lock held by syz-executor313/7969: [ 28.383470] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.392368] [ 28.392368] stack backtrace: [ 28.396833] CPU: 0 PID: 7969 Comm: syz-executor313 Not tainted 4.14.299-syzkaller #0 [ 28.404680] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.414002] Call Trace: [ 28.416564] dump_stack+0x1b2/0x281 [ 28.420164] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.425934] __lock_acquire+0x2e0e/0x3f20 [ 28.430057] ? update_curr+0x28d/0x670 [ 28.433914] ? trace_hardirqs_on+0x10/0x10 [ 28.438118] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 28.443969] ? unwind_next_frame+0xe54/0x17d0 [ 28.448434] ? unwind_next_frame+0xe54/0x17d0 [ 28.452909] ? deref_stack_reg+0x124/0x1a0 [ 28.457121] lock_acquire+0x170/0x3f0 [ 28.460984] ? do_journal_begin_r+0x26b/0xde0 [ 28.465465] ? do_journal_begin_r+0x26b/0xde0 [ 28.469953] __mutex_lock+0xc4/0x1310 [ 28.473733] ? do_journal_begin_r+0x26b/0xde0 [ 28.478207] ? do_journal_begin_r+0x26b/0xde0 [ 28.482675] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.488095] ? __mutex_unlock_slowpath+0x75/0x770 [ 28.492907] ? wait_for_completion_io+0x10/0x10 [ 28.497546] ? __lock_acquire+0x2190/0x3f20 [ 28.501839] do_journal_begin_r+0x26b/0xde0 [ 28.506397] ? do_journal_end+0x4310/0x4310 [ 28.510790] ? trace_hardirqs_on+0x10/0x10 [ 28.515009] ? reiserfs_write_lock+0x75/0xf0 [ 28.519408] ? __mutex_lock+0x360/0x1310 [ 28.523443] journal_begin+0x162/0x3d0 [ 28.527302] reiserfs_dirty_inode+0xd9/0x200 [ 28.531682] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.535912] ? mark_held_locks+0xa6/0xf0 [ 28.539947] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.545366] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.549570] __mark_inode_dirty+0x11e/0xf40 [ 28.553861] reiserfs_ioctl+0x6f6/0x8b0 [ 28.557814] ? reiserfs_unpack+0x510/0x510 [ 28.562021] do_vfs_ioctl+0x75a/0xff0 [ 28.565816] ? getname_flags+0x2a2/0x550 [ 28.569855] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 28.574846] ? ioctl_preallocate+0x1a0/0x1a0 [ 28.579226] ? getname_flags+0x22e/0x550 [ 28.583263] ? do_sys_open+0x208/0x410