Warning: Permanently added '10.128.0.253' (ED25519) to the list of known hosts. executing program [ 59.672190][ T3545] loop0: detected capacity change from 0 to 8192 [ 59.682955][ T3545] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 59.696028][ T3545] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 59.705404][ T3545] REISERFS (device loop0): using ordered data mode [ 59.711948][ T3545] reiserfs: using flush barriers [ 59.718154][ T3545] 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.734870][ T3545] REISERFS (device loop0): checking transaction log (loop0) [ 59.744503][ T3545] REISERFS (device loop0): Using tea hash to sort names [ 59.752789][ T3545] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 59.772601][ T26] audit: type=1800 audit(1703998377.511:2): pid=3545 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed(directio) comm="syz-executor456" name="bus" dev="loop0" ino=4106498 res=0 errno=0 [ 59.772953][ T3545] [ 59.795914][ T3545] ====================================================== [ 59.802954][ T3545] WARNING: possible circular locking dependency detected [ 59.809987][ T3545] 6.1.69-syzkaller #0 Not tainted [ 59.815175][ T3545] ------------------------------------------------------ [ 59.822189][ T3545] syz-executor456/3545 is trying to acquire lock: [ 59.828603][ T3545] ffff888076d9c460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 59.837850][ T3545] [ 59.837850][ T3545] but task is already holding lock: [ 59.845205][ T3545] ffff8880183f8090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x76/0xd0 [ 59.854169][ T3545] [ 59.854169][ T3545] which lock already depends on the new lock. [ 59.854169][ T3545] [ 59.864569][ T3545] [ 59.864569][ T3545] the existing dependency chain (in reverse order) is: [ 59.873579][ T3545] [ 59.873579][ T3545] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 59.880796][ T3545] lock_acquire+0x1f8/0x5a0 [ 59.885844][ T3545] __mutex_lock+0x132/0xd80 [ 59.890899][ T3545] reiserfs_write_lock+0x76/0xd0 [ 59.896363][ T3545] reiserfs_lookup+0x15c/0x4b0 [ 59.901656][ T3545] __lookup_slow+0x27e/0x3d0 [ 59.906771][ T3545] lookup_one_len+0x187/0x2d0 [ 59.912494][ T3545] reiserfs_lookup_privroot+0x85/0x1e0 [ 59.918479][ T3545] reiserfs_fill_super+0x21bd/0x2620 [ 59.924289][ T3545] mount_bdev+0x2c9/0x3f0 [ 59.929154][ T3545] legacy_get_tree+0xeb/0x180 [ 59.934358][ T3545] vfs_get_tree+0x88/0x270 [ 59.939314][ T3545] do_new_mount+0x28b/0xae0 [ 59.944342][ T3545] __se_sys_mount+0x2d5/0x3c0 [ 59.949548][ T3545] do_syscall_64+0x3d/0xb0 [ 59.954497][ T3545] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.960917][ T3545] [ 59.960917][ T3545] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 59.969350][ T3545] lock_acquire+0x1f8/0x5a0 [ 59.974382][ T3545] down_write+0x36/0x60 [ 59.979063][ T3545] path_openat+0x7b6/0x2e60 [ 59.984097][ T3545] do_filp_open+0x230/0x480 [ 59.989124][ T3545] do_sys_openat2+0x13b/0x500 [ 59.994337][ T3545] __x64_sys_open+0x221/0x270 [ 59.999545][ T3545] do_syscall_64+0x3d/0xb0 [ 60.004492][ T3545] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.010922][ T3545] [ 60.010922][ T3545] -> #0 (sb_writers#9){.+.+}-{0:0}: [ 60.018314][ T3545] validate_chain+0x1661/0x5950 [ 60.023703][ T3545] __lock_acquire+0x125b/0x1f80 [ 60.029079][ T3545] lock_acquire+0x1f8/0x5a0 [ 60.034112][ T3545] sb_start_write+0x4d/0x1c0 [ 60.039229][ T3545] mnt_want_write_file+0x5a/0x1f0 [ 60.044775][ T3545] reiserfs_ioctl+0x170/0x340 [ 60.049973][ T3545] __se_sys_ioctl+0xf1/0x160 [ 60.055099][ T3545] do_syscall_64+0x3d/0xb0 [ 60.060045][ T3545] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.066483][ T3545] [ 60.066483][ T3545] other info that might help us debug this: [ 60.066483][ T3545] [ 60.076712][ T3545] Chain exists of: [ 60.076712][ T3545] sb_writers#9 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 60.076712][ T3545] [ 60.089849][ T3545] Possible unsafe locking scenario: [ 60.089849][ T3545] [ 60.097312][ T3545] CPU0 CPU1 [ 60.102687][ T3545] ---- ---- [ 60.108060][ T3545] lock(&sbi->lock); [ 60.112307][ T3545] lock(&type->i_mutex_dir_key#6); [ 60.120034][ T3545] lock(&sbi->lock); [ 60.126540][ T3545] lock(sb_writers#9); [ 60.130702][ T3545] [ 60.130702][ T3545] *** DEADLOCK *** [ 60.130702][ T3545] [ 60.138838][ T3545] 1 lock held by syz-executor456/3545: [ 60.144298][ T3545] #0: ffff8880183f8090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x76/0xd0 [ 60.153710][ T3545] [ 60.153710][ T3545] stack backtrace: [ 60.159592][ T3545] CPU: 1 PID: 3545 Comm: syz-executor456 Not tainted 6.1.69-syzkaller #0 [ 60.168007][ T3545] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 60.178065][ T3545] Call Trace: [ 60.181350][ T3545] [ 60.184282][ T3545] dump_stack_lvl+0x1e3/0x2cb [ 60.188974][ T3545] ? nf_tcp_handle_invalid+0x642/0x642 [ 60.194460][ T3545] ? print_circular_bug+0x12b/0x1a0 [ 60.199673][ T3545] check_noncircular+0x2fa/0x3b0 [ 60.204625][ T3545] ? add_chain_block+0x850/0x850 [ 60.209579][ T3545] ? lockdep_lock+0x11f/0x2a0 [ 60.214267][ T3545] ? tomoyo_path_number_perm+0x61b/0x7f0 [ 60.219918][ T3545] ? _find_first_zero_bit+0xd0/0x100 [ 60.225213][ T3545] validate_chain+0x1661/0x5950 [ 60.230083][ T3545] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.236165][ T3545] ? reacquire_held_locks+0x660/0x660 [ 60.241566][ T3545] ? mark_lock+0x9a/0x340 [ 60.245907][ T3545] ? __lock_acquire+0x125b/0x1f80 [ 60.250953][ T3545] ? mark_lock+0x9a/0x340 [ 60.255294][ T3545] __lock_acquire+0x125b/0x1f80 [ 60.260172][ T3545] lock_acquire+0x1f8/0x5a0 [ 60.264694][ T3545] ? mnt_want_write_file+0x5a/0x1f0 [ 60.269898][ T3545] ? read_lock_is_recursive+0x10/0x10 [ 60.275280][ T3545] ? __might_sleep+0xb0/0xb0 [ 60.279881][ T3545] ? mutex_lock_nested+0x10/0x10 [ 60.284842][ T3545] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 60.290844][ T3545] sb_start_write+0x4d/0x1c0 [ 60.295447][ T3545] ? mnt_want_write_file+0x5a/0x1f0 [ 60.300648][ T3545] mnt_want_write_file+0x5a/0x1f0 [ 60.305674][ T3545] reiserfs_ioctl+0x170/0x340 [ 60.310360][ T3545] ? __se_sys_ioctl+0xe6/0x160 [ 60.315145][ T3545] ? reiserfs_unpack+0x610/0x610 [ 60.320096][ T3545] __se_sys_ioctl+0xf1/0x160 [ 60.324713][ T3545] do_syscall_64+0x3d/0xb0 [ 60.329138][ T3545] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.335036][ T3545] RIP: 0033:0x7fd5f3ebf639 [ 60.339458][ T3545] 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.359074][ T3545] RSP: 002b:00007ffeacf93ad8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 60.367494][ T3545] RAX: ffffffffffffffda RBX: 00007ffeacf93ca8 RCX: 00007fd5f3ebf639