Warning: Permanently added '10.128.1.105' (ED25519) to the list of known hosts. executing program [ 59.633810][ T4162] loop0: detected capacity change from 0 to 8192 [ 59.715910][ T4162] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 59.725539][ T4162] REISERFS (device loop0): using ordered data mode [ 59.732234][ T4162] reiserfs: using flush barriers [ 59.743847][ T4162] 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 [ 59.761071][ T4162] REISERFS (device loop0): checking transaction log (loop0) [ 59.771382][ T4162] REISERFS (device loop0): Using r5 hash to sort names [ 59.780294][ T4162] reiserfs: enabling write barrier flush mode [ 59.794303][ T4162] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 59.804365][ T4162] [ 59.806742][ T4162] ====================================================== [ 59.813741][ T4162] WARNING: possible circular locking dependency detected [ 59.820764][ T4162] 5.15.173-syzkaller #0 Not tainted [ 59.825947][ T4162] ------------------------------------------------------ [ 59.832965][ T4162] syz-executor269/4162 is trying to acquire lock: [ 59.839497][ T4162] ffffc90002e410f0 (&journal->j_mutex){+.+.}-{3:3}, at: do_journal_begin_r+0x34e/0x1000 [ 59.849264][ T4162] [ 59.849264][ T4162] but task is already holding lock: [ 59.856663][ T4162] ffff888028ec2460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 59.866010][ T4162] [ 59.866010][ T4162] which lock already depends on the new lock. [ 59.866010][ T4162] [ 59.876421][ T4162] [ 59.876421][ T4162] the existing dependency chain (in reverse order) is: [ 59.885449][ T4162] [ 59.885449][ T4162] -> #2 (sb_writers#9){.+.+}-{0:0}: [ 59.892835][ T4162] lock_acquire+0x1db/0x4f0 [ 59.897866][ T4162] sb_start_write+0x4f/0x1c0 [ 59.903107][ T4162] mnt_want_write_file+0x5a/0x1f0 [ 59.908661][ T4162] reiserfs_ioctl+0x170/0x340 [ 59.913861][ T4162] __se_sys_ioctl+0xf1/0x160 [ 59.918979][ T4162] do_syscall_64+0x3b/0xb0 [ 59.923929][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 59.930345][ T4162] [ 59.930345][ T4162] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 59.937572][ T4162] lock_acquire+0x1db/0x4f0 [ 59.942598][ T4162] __mutex_lock_common+0x1da/0x25a0 [ 59.948318][ T4162] mutex_lock_nested+0x17/0x20 [ 59.953616][ T4162] reiserfs_write_lock_nested+0x5b/0xd0 [ 59.959695][ T4162] do_journal_begin_r+0x359/0x1000 [ 59.965324][ T4162] journal_begin+0x148/0x350 [ 59.970431][ T4162] reiserfs_remount+0xf6b/0x18e0 [ 59.975877][ T4162] reconfigure_super+0x43a/0x870 [ 59.981327][ T4162] path_mount+0xceb/0x10a0 [ 59.986250][ T4162] __se_sys_mount+0x2d5/0x3c0 [ 59.991436][ T4162] do_syscall_64+0x3b/0xb0 [ 59.996356][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.002781][ T4162] [ 60.002781][ T4162] -> #0 (&journal->j_mutex){+.+.}-{3:3}: [ 60.010587][ T4162] validate_chain+0x1649/0x5930 [ 60.015953][ T4162] __lock_acquire+0x1295/0x1ff0 [ 60.021316][ T4162] lock_acquire+0x1db/0x4f0 [ 60.026342][ T4162] __mutex_lock_common+0x1da/0x25a0 [ 60.032050][ T4162] mutex_lock_nested+0x17/0x20 [ 60.037338][ T4162] do_journal_begin_r+0x34e/0x1000 [ 60.042958][ T4162] journal_begin+0x148/0x350 [ 60.048065][ T4162] reiserfs_dirty_inode+0x11c/0x240 [ 60.053789][ T4162] __mark_inode_dirty+0x2fd/0xd60 [ 60.059333][ T4162] reiserfs_ioctl+0x29e/0x340 [ 60.064524][ T4162] __se_sys_ioctl+0xf1/0x160 [ 60.069649][ T4162] do_syscall_64+0x3b/0xb0 [ 60.074594][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.081001][ T4162] [ 60.081001][ T4162] other info that might help us debug this: [ 60.081001][ T4162] [ 60.091220][ T4162] Chain exists of: [ 60.091220][ T4162] &journal->j_mutex --> &sbi->lock --> sb_writers#9 [ 60.091220][ T4162] [ 60.103925][ T4162] Possible unsafe locking scenario: [ 60.103925][ T4162] [ 60.111376][ T4162] CPU0 CPU1 [ 60.116753][ T4162] ---- ---- [ 60.122288][ T4162] lock(sb_writers#9); [ 60.126441][ T4162] lock(&sbi->lock); [ 60.132932][ T4162] lock(sb_writers#9); [ 60.139611][ T4162] lock(&journal->j_mutex); [ 60.144191][ T4162] [ 60.144191][ T4162] *** DEADLOCK *** [ 60.144191][ T4162] [ 60.152335][ T4162] 1 lock held by syz-executor269/4162: [ 60.157775][ T4162] #0: ffff888028ec2460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 60.167449][ T4162] [ 60.167449][ T4162] stack backtrace: [ 60.173340][ T4162] CPU: 0 PID: 4162 Comm: syz-executor269 Not tainted 5.15.173-syzkaller #0 [ 60.182003][ T4162] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 60.192053][ T4162] Call Trace: [ 60.195340][ T4162] [ 60.198259][ T4162] dump_stack_lvl+0x1e3/0x2d0 [ 60.203021][ T4162] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 60.208649][ T4162] ? print_circular_bug+0x12b/0x1a0 [ 60.213840][ T4162] check_noncircular+0x2f8/0x3b0 [ 60.218914][ T4162] ? add_chain_block+0x850/0x850 [ 60.223842][ T4162] ? lockdep_lock+0x11f/0x2a0 [ 60.228547][ T4162] validate_chain+0x1649/0x5930 [ 60.233401][ T4162] ? unwind_next_frame+0x1437/0x1fa0 [ 60.238707][ T4162] ? __kernel_text_address+0x94/0x100 [ 60.244086][ T4162] ? unwind_get_return_address+0x49/0x80 [ 60.249709][ T4162] ? reacquire_held_locks+0x660/0x660 [ 60.255070][ T4162] ? arch_stack_walk+0xf3/0x140 [ 60.259914][ T4162] ? mark_lock+0x98/0x340 [ 60.264232][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 60.269250][ T4162] ? mark_lock+0x98/0x340 [ 60.273663][ T4162] __lock_acquire+0x1295/0x1ff0 [ 60.278522][ T4162] lock_acquire+0x1db/0x4f0 [ 60.283041][ T4162] ? do_journal_begin_r+0x34e/0x1000 [ 60.288319][ T4162] ? read_lock_is_recursive+0x10/0x10 [ 60.293679][ T4162] ? __might_sleep+0xc0/0xc0 [ 60.298263][ T4162] ? reiserfs_write_unlock_nested+0xd1/0x120 [ 60.304412][ T4162] ? __lock_acquire+0x1ff0/0x1ff0 [ 60.309433][ T4162] __mutex_lock_common+0x1da/0x25a0 [ 60.314631][ T4162] ? do_journal_begin_r+0x34e/0x1000 [ 60.319925][ T4162] ? do_journal_begin_r+0x34e/0x1000 [ 60.325197][ T4162] ? mutex_unlock+0x10/0x10 [ 60.329775][ T4162] ? mutex_lock_io_nested+0x60/0x60 [ 60.334970][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 60.340002][ T4162] mutex_lock_nested+0x17/0x20 [ 60.344758][ T4162] do_journal_begin_r+0x34e/0x1000 [ 60.349868][ T4162] ? journal_join_abort+0xe0/0xe0 [ 60.354880][ T4162] ? ktime_get_coarse_real_ts64+0x36/0x120 [ 60.360684][ T4162] ? lockdep_hardirqs_on+0x94/0x130 [ 60.365881][ T4162] journal_begin+0x148/0x350 [ 60.370462][ T4162] reiserfs_dirty_inode+0x11c/0x240 [ 60.375669][ T4162] ? reiserfs_free_inode+0x20/0x20 [ 60.380889][ T4162] ? current_time+0x1dc/0x300 [ 60.385656][ T4162] ? reiserfs_free_inode+0x20/0x20 [ 60.390779][ T4162] __mark_inode_dirty+0x2fd/0xd60 [ 60.395813][ T4162] ? __might_fault+0xb4/0x110 [ 60.400499][ T4162] reiserfs_ioctl+0x29e/0x340 [ 60.405182][ T4162] ? reiserfs_unpack+0x5a0/0x5a0 [ 60.410126][ T4162] __se_sys_ioctl+0xf1/0x160 [ 60.414747][ T4162] do_syscall_64+0x3b/0xb0 [ 60.419161][ T4162] ? clear_bhb_loop+0x15/0x70 [ 60.423852][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.429839][ T4162] RIP: 0033:0x7fd51563cc39 [ 60.434259][ T4162] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 60.453870][ T4162] RSP: 002b:00007fff85972cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 60.462279][ T4162] RAX: ffffffffffffffda RBX: 00007fd515685066 RCX: 00007fd51