[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.119' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 28.692780] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 28.702838] REISERFS (device loop0): using ordered data mode [ 28.709271] reiserfs: using flush barriers [ 28.714419] 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.730842] REISERFS (device loop0): checking transaction log (loop0) [ 28.739251] REISERFS (device loop0): Using rupasov hash to sort names [ 28.746663] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 28.760462] [ 28.762098] ====================================================== [ 28.768408] WARNING: possible circular locking dependency detected [ 28.774711] 4.14.299-syzkaller #0 Not tainted [ 28.779184] ------------------------------------------------------ [ 28.785484] syz-executor285/8017 is trying to acquire lock: [ 28.791162] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 28.799977] [ 28.799977] but task is already holding lock: [ 28.805914] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.814380] [ 28.814380] which lock already depends on the new lock. [ 28.814380] [ 28.822664] [ 28.822664] the existing dependency chain (in reverse order) is: [ 28.830344] [ 28.830344] -> #2 (sb_writers#10){.+.+}: [ 28.835863] __sb_start_write+0x64/0x260 [ 28.840432] mnt_want_write_file+0xfd/0x3b0 [ 28.845249] reiserfs_ioctl+0x18e/0x8b0 [ 28.849725] do_vfs_ioctl+0x75a/0xff0 [ 28.854042] SyS_ioctl+0x7f/0xb0 [ 28.857901] do_syscall_64+0x1d5/0x640 [ 28.862284] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.867963] [ 28.867963] -> #1 (&sbi->lock){+.+.}: [ 28.873216] __mutex_lock+0xc4/0x1310 [ 28.877510] reiserfs_write_lock_nested+0x59/0xd0 [ 28.882935] do_journal_begin_r+0x276/0xde0 [ 28.887748] journal_begin+0x162/0x3d0 [ 28.892396] reiserfs_fill_super+0x18f4/0x2990 [ 28.897477] mount_bdev+0x2b3/0x360 [ 28.901597] mount_fs+0x92/0x2a0 [ 28.905456] vfs_kern_mount.part.0+0x5b/0x470 [ 28.910475] do_mount+0xe65/0x2a30 [ 28.914522] SyS_mount+0xa8/0x120 [ 28.918668] do_syscall_64+0x1d5/0x640 [ 28.923079] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.928761] [ 28.928761] -> #0 (&journal->j_mutex){+.+.}: [ 28.934630] lock_acquire+0x170/0x3f0 [ 28.938923] __mutex_lock+0xc4/0x1310 [ 28.943215] do_journal_begin_r+0x26b/0xde0 [ 28.948025] journal_begin+0x162/0x3d0 [ 28.952403] reiserfs_dirty_inode+0xd9/0x200 [ 28.957304] __mark_inode_dirty+0x11e/0xf40 [ 28.962114] reiserfs_ioctl+0x6f6/0x8b0 [ 28.966587] do_vfs_ioctl+0x75a/0xff0 [ 28.970884] SyS_ioctl+0x7f/0xb0 [ 28.974741] do_syscall_64+0x1d5/0x640 [ 28.979237] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.984921] [ 28.984921] other info that might help us debug this: [ 28.984921] [ 28.993036] Chain exists of: [ 28.993036] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 28.993036] [ 29.003518] Possible unsafe locking scenario: [ 29.003518] [ 29.009545] CPU0 CPU1 [ 29.014193] ---- ---- [ 29.018828] lock(sb_writers#10); [ 29.022340] lock(&sbi->lock); [ 29.028104] lock(sb_writers#10); [ 29.034134] lock(&journal->j_mutex); [ 29.038001] [ 29.038001] *** DEADLOCK *** [ 29.038001] [ 29.044028] 1 lock held by syz-executor285/8017: [ 29.048754] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 29.058091] [ 29.058091] stack backtrace: [ 29.062557] CPU: 1 PID: 8017 Comm: syz-executor285 Not tainted 4.14.299-syzkaller #0 [ 29.070407] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 29.079728] Call Trace: [ 29.082291] dump_stack+0x1b2/0x281 [ 29.085898] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 29.091669] __lock_acquire+0x2e0e/0x3f20 [ 29.095794] ? trace_hardirqs_on+0x10/0x10 [ 29.100003] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 29.105859] ? unwind_next_frame+0xe54/0x17d0 [ 29.110327] ? unwind_next_frame+0xe54/0x17d0 [ 29.114795] ? deref_stack_reg+0x124/0x1a0 [ 29.119003] lock_acquire+0x170/0x3f0 [ 29.122865] ? do_journal_begin_r+0x26b/0xde0 [ 29.127346] ? do_journal_begin_r+0x26b/0xde0 [ 29.131814] __mutex_lock+0xc4/0x1310 [ 29.135588] ? do_journal_begin_r+0x26b/0xde0 [ 29.140078] ? do_journal_begin_r+0x26b/0xde0 [ 29.144657] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 29.150088] ? __mutex_unlock_slowpath+0x75/0x770 [ 29.154909] ? wait_for_completion_io+0x10/0x10 [ 29.159554] ? __lock_acquire+0x2190/0x3f20 [ 29.163854] do_journal_begin_r+0x26b/0xde0 [ 29.168170] ? do_journal_end+0x4310/0x4310 [ 29.172467] ? trace_hardirqs_on+0x10/0x10 [ 29.176688] ? reiserfs_write_lock+0x75/0xf0 [ 29.181067] ? __mutex_lock+0x360/0x1310 [ 29.185099] journal_begin+0x162/0x3d0 [ 29.189116] reiserfs_dirty_inode+0xd9/0x200 [ 29.193501] ? reiserfs_unfreeze+0xa0/0xa0 [ 29.197713] ? mark_held_locks+0xa6/0xf0 [ 29.201756] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 29.207180] ? reiserfs_unfreeze+0xa0/0xa0 [ 29.211392] __mark_inode_dirty+0x11e/0xf40 [ 29.215700] reiserfs_ioctl+0x6f6/0x8b0 [ 29.219675] ? reiserfs_unpack+0x510/0x510 [ 29.223887] do_vfs_ioctl+0x75a/0xff0 [ 29.227680] ? getname_flags+0x2a2/0x550 [ 29.231723] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 29.236713] ? ioctl_preallocate+0x1a0/0x1a0 [ 29.241094] ? getname_flags+0x22e/0x550 [