[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.127' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 27.658705] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 27.667227] REISERFS (device loop0): using ordered data mode [ 27.673757] reiserfs: using flush barriers [ 27.679200] 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.695376] REISERFS (device loop0): checking transaction log (loop0) [ 27.703451] REISERFS (device loop0): Using rupasov hash to sort names [ 27.710997] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 27.720317] [ 27.721939] ====================================================== [ 27.728238] WARNING: possible circular locking dependency detected [ 27.734541] 4.14.299-syzkaller #0 Not tainted [ 27.739019] ------------------------------------------------------ [ 27.745318] syz-executor331/7964 is trying to acquire lock: [ 27.750997] (&journal->j_mutex){+.+.}, at: [] do_journal_begin_r+0x26b/0xde0 [ 27.759813] [ 27.759813] but task is already holding lock: [ 27.765771] (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 27.774242] [ 27.774242] which lock already depends on the new lock. [ 27.774242] [ 27.782528] [ 27.782528] the existing dependency chain (in reverse order) is: [ 27.790151] [ 27.790151] -> #2 (sb_writers#10){.+.+}: [ 27.795788] __sb_start_write+0x64/0x260 [ 27.800436] mnt_want_write_file+0xfd/0x3b0 [ 27.805254] reiserfs_ioctl+0x18e/0x8b0 [ 27.809729] do_vfs_ioctl+0x75a/0xff0 [ 27.814021] SyS_ioctl+0x7f/0xb0 [ 27.817885] do_syscall_64+0x1d5/0x640 [ 27.822286] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.827966] [ 27.827966] -> #1 (&sbi->lock){+.+.}: [ 27.833223] __mutex_lock+0xc4/0x1310 [ 27.837524] reiserfs_write_lock_nested+0x59/0xd0 [ 27.842861] do_journal_begin_r+0x276/0xde0 [ 27.847673] journal_begin+0x162/0x3d0 [ 27.852072] reiserfs_fill_super+0x18f4/0x2990 [ 27.857248] mount_bdev+0x2b3/0x360 [ 27.861370] mount_fs+0x92/0x2a0 [ 27.865230] vfs_kern_mount.part.0+0x5b/0x470 [ 27.870231] do_mount+0xe65/0x2a30 [ 27.874263] SyS_mount+0xa8/0x120 [ 27.878221] do_syscall_64+0x1d5/0x640 [ 27.882616] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.888292] [ 27.888292] -> #0 (&journal->j_mutex){+.+.}: [ 27.894155] lock_acquire+0x170/0x3f0 [ 27.898472] __mutex_lock+0xc4/0x1310 [ 27.902771] do_journal_begin_r+0x26b/0xde0 [ 27.907583] journal_begin+0x162/0x3d0 [ 27.911962] reiserfs_dirty_inode+0xd9/0x200 [ 27.916892] __mark_inode_dirty+0x11e/0xf40 [ 27.921709] reiserfs_ioctl+0x6f6/0x8b0 [ 27.926182] do_vfs_ioctl+0x75a/0xff0 [ 27.930478] SyS_ioctl+0x7f/0xb0 [ 27.934341] do_syscall_64+0x1d5/0x640 [ 27.938723] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.944418] [ 27.944418] other info that might help us debug this: [ 27.944418] [ 27.952538] Chain exists of: [ 27.952538] &journal->j_mutex --> &sbi->lock --> sb_writers#10 [ 27.952538] [ 27.963008] Possible unsafe locking scenario: [ 27.963008] [ 27.969036] CPU0 CPU1 [ 27.973678] ---- ---- [ 27.978319] lock(sb_writers#10); [ 27.982008] lock(&sbi->lock); [ 27.987783] lock(sb_writers#10); [ 27.993822] lock(&journal->j_mutex); [ 27.997682] [ 27.997682] *** DEADLOCK *** [ 27.997682] [ 28.003718] 1 lock held by syz-executor331/7964: [ 28.008617] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 [ 28.017530] [ 28.017530] stack backtrace: [ 28.022006] CPU: 0 PID: 7964 Comm: syz-executor331 Not tainted 4.14.299-syzkaller #0 [ 28.029864] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.039319] Call Trace: [ 28.041884] dump_stack+0x1b2/0x281 [ 28.045573] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.051357] __lock_acquire+0x2e0e/0x3f20 [ 28.055484] ? trace_hardirqs_on+0x10/0x10 [ 28.059706] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 28.065561] ? unwind_next_frame+0xe54/0x17d0 [ 28.070027] ? unwind_next_frame+0xe54/0x17d0 [ 28.074493] ? deref_stack_reg+0x124/0x1a0 [ 28.078697] lock_acquire+0x170/0x3f0 [ 28.082470] ? do_journal_begin_r+0x26b/0xde0 [ 28.086938] ? do_journal_begin_r+0x26b/0xde0 [ 28.091405] __mutex_lock+0xc4/0x1310 [ 28.095181] ? do_journal_begin_r+0x26b/0xde0 [ 28.099657] ? do_journal_begin_r+0x26b/0xde0 [ 28.104125] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.109546] ? __mutex_unlock_slowpath+0x75/0x770 [ 28.114365] ? wait_for_completion_io+0x10/0x10 [ 28.119017] ? __lock_acquire+0x2190/0x3f20 [ 28.123320] do_journal_begin_r+0x26b/0xde0 [ 28.127630] ? do_journal_end+0x4310/0x4310 [ 28.131931] ? trace_hardirqs_on+0x10/0x10 [ 28.136137] ? reiserfs_write_lock+0x75/0xf0 [ 28.140519] ? __mutex_lock+0x360/0x1310 [ 28.144553] journal_begin+0x162/0x3d0 [ 28.148412] reiserfs_dirty_inode+0xd9/0x200 [ 28.152793] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.157006] ? mark_held_locks+0xa6/0xf0 [ 28.161038] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.166482] ? reiserfs_unfreeze+0xa0/0xa0 [ 28.170688] __mark_inode_dirty+0x11e/0xf40 [ 28.174998] reiserfs_ioctl+0x6f6/0x8b0 [ 28.178963] ? vm_insert_page+0x7c0/0x7c0 [ 28.183103] ? reiserfs_unpack+0x510/0x510 [ 28.187333] do_vfs_ioctl+0x75a/0xff0 [ 28.191119] ? ioctl_preallocate+0x1a0/0x1a0 [ 28.195511] ? lock_downgrade+0x740/0x740 [ 28.199644] ? security_file_ioctl+0x83/0xb0 [ 28.204030] SyS_ioctl+0x7f/0xb0 [ 28.207379] ? do_vfs_ioctl+0xff0/0xff0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 28.211336] do_syscall_64+0x1d5/0x640 [ 28.215199] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program