Warning: Permanently added '10.128.1.142' (ED25519) to the list of known hosts. executing program [ 55.230485][ T4163] loop0: detected capacity change from 0 to 8192 [ 55.313559][ T4163] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 55.323167][ T4163] REISERFS (device loop0): using ordered data mode [ 55.329687][ T4163] reiserfs: using flush barriers [ 55.336538][ T4163] 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 [ 55.353042][ T4163] REISERFS (device loop0): checking transaction log (loop0) [ 55.362653][ T4163] REISERFS (device loop0): Using r5 hash to sort names [ 55.369680][ T4163] REISERFS (device loop0): using 3.5.x disk format [ 55.377077][ T4163] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 55.389162][ T4163] [ 55.391498][ T4163] ====================================================== [ 55.398506][ T4163] WARNING: possible circular locking dependency detected [ 55.405511][ T4163] 5.15.179-syzkaller #0 Not tainted [ 55.410684][ T4163] ------------------------------------------------------ [ 55.417674][ T4163] syz-executor340/4163 is trying to acquire lock: [ 55.424063][ T4163] ffff88807bbb0460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 55.433290][ T4163] [ 55.433290][ T4163] but task is already holding lock: [ 55.440628][ T4163] ffff8881413c9090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x76/0xd0 [ 55.449561][ T4163] [ 55.449561][ T4163] which lock already depends on the new lock. [ 55.449561][ T4163] [ 55.459937][ T4163] [ 55.459937][ T4163] the existing dependency chain (in reverse order) is: [ 55.468925][ T4163] [ 55.468925][ T4163] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 55.476126][ T4163] lock_acquire+0x1db/0x4f0 [ 55.481152][ T4163] __mutex_lock_common+0x1da/0x25a0 [ 55.486861][ T4163] mutex_lock_nested+0x17/0x20 [ 55.492125][ T4163] reiserfs_write_lock+0x76/0xd0 [ 55.497579][ T4163] reiserfs_lookup+0x15c/0x4b0 [ 55.502843][ T4163] __lookup_slow+0x275/0x3d0 [ 55.507946][ T4163] lookup_one_len+0x187/0x2d0 [ 55.513120][ T4163] reiserfs_lookup_privroot+0x85/0x1e0 [ 55.519077][ T4163] reiserfs_fill_super+0x2224/0x2690 [ 55.524860][ T4163] mount_bdev+0x2c9/0x3f0 [ 55.529684][ T4163] legacy_get_tree+0xeb/0x180 [ 55.534877][ T4163] vfs_get_tree+0x88/0x270 [ 55.539790][ T4163] do_new_mount+0x2ba/0xb40 [ 55.544798][ T4163] __se_sys_mount+0x2d5/0x3c0 [ 55.549970][ T4163] do_syscall_64+0x3b/0xb0 [ 55.554883][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.561274][ T4163] [ 55.561274][ T4163] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 55.569675][ T4163] lock_acquire+0x1db/0x4f0 [ 55.574678][ T4163] down_write+0x38/0x60 [ 55.579339][ T4163] path_openat+0x824/0x2f20 [ 55.584340][ T4163] do_filp_open+0x21c/0x460 [ 55.589345][ T4163] do_sys_openat2+0x13b/0x4f0 [ 55.594522][ T4163] __x64_sys_openat+0x243/0x290 [ 55.599877][ T4163] do_syscall_64+0x3b/0xb0 [ 55.604789][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.611192][ T4163] [ 55.611192][ T4163] -> #0 (sb_writers#9){.+.+}-{0:0}: [ 55.618557][ T4163] validate_chain+0x1649/0x5930 [ 55.623913][ T4163] __lock_acquire+0x1295/0x1ff0 [ 55.629267][ T4163] lock_acquire+0x1db/0x4f0 [ 55.634275][ T4163] sb_start_write+0x4f/0x1c0 [ 55.639373][ T4163] mnt_want_write_file+0x5a/0x1f0 [ 55.644895][ T4163] reiserfs_ioctl+0x170/0x340 [ 55.650068][ T4163] __se_sys_ioctl+0xf1/0x160 [ 55.655262][ T4163] do_syscall_64+0x3b/0xb0 [ 55.660178][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.666573][ T4163] [ 55.666573][ T4163] other info that might help us debug this: [ 55.666573][ T4163] [ 55.676776][ T4163] Chain exists of: [ 55.676776][ T4163] sb_writers#9 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 55.676776][ T4163] [ 55.689879][ T4163] Possible unsafe locking scenario: [ 55.689879][ T4163] [ 55.697304][ T4163] CPU0 CPU1 [ 55.702644][ T4163] ---- ---- [ 55.707985][ T4163] lock(&sbi->lock); [ 55.711944][ T4163] lock(&type->i_mutex_dir_key#6); [ 55.719655][ T4163] lock(&sbi->lock); [ 55.726141][ T4163] lock(sb_writers#9); [ 55.730286][ T4163] [ 55.730286][ T4163] *** DEADLOCK *** [ 55.730286][ T4163] [ 55.738400][ T4163] 1 lock held by syz-executor340/4163: [ 55.743834][ T4163] #0: ffff8881413c9090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x76/0xd0 [ 55.753214][ T4163] [ 55.753214][ T4163] stack backtrace: [ 55.759088][ T4163] CPU: 1 PID: 4163 Comm: syz-executor340 Not tainted 5.15.179-syzkaller #0 [ 55.767647][ T4163] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 55.777682][ T4163] Call Trace: [ 55.780942][ T4163] [ 55.783875][ T4163] dump_stack_lvl+0x1e3/0x2d0 [ 55.788536][ T4163] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 55.794153][ T4163] ? print_circular_bug+0x12b/0x1a0 [ 55.799337][ T4163] check_noncircular+0x2f8/0x3b0 [ 55.804256][ T4163] ? add_chain_block+0x850/0x850 [ 55.809177][ T4163] ? lockdep_lock+0x11f/0x2a0 [ 55.813856][ T4163] ? kasan_set_free_info+0x1f/0x40 [ 55.818948][ T4163] ? ____kasan_slab_free+0xd8/0x120 [ 55.824122][ T4163] ? slab_free_freelist_hook+0xdd/0x160 [ 55.829651][ T4163] ? kfree+0xf1/0x270 [ 55.833611][ T4163] ? tomoyo_path_number_perm+0x648/0x810 [ 55.839230][ T4163] ? reacquire_held_locks+0x660/0x660 [ 55.844582][ T4163] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.850634][ T4163] validate_chain+0x1649/0x5930 [ 55.855469][ T4163] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 55.861428][ T4163] ? reacquire_held_locks+0x660/0x660 [ 55.866783][ T4163] ? __lock_acquire+0x1295/0x1ff0 [ 55.871790][ T4163] ? mark_lock+0x98/0x340 [ 55.876096][ T4163] __lock_acquire+0x1295/0x1ff0 [ 55.880927][ T4163] lock_acquire+0x1db/0x4f0 [ 55.885407][ T4163] ? mnt_want_write_file+0x5a/0x1f0 [ 55.890584][ T4163] ? read_lock_is_recursive+0x10/0x10 [ 55.895932][ T4163] ? __might_sleep+0xc0/0xc0 [ 55.900498][ T4163] ? mutex_lock_io_nested+0x60/0x60 [ 55.905686][ T4163] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 55.911642][ T4163] sb_start_write+0x4f/0x1c0 [ 55.916209][ T4163] ? mnt_want_write_file+0x5a/0x1f0 [ 55.921389][ T4163] mnt_want_write_file+0x5a/0x1f0 [ 55.926424][ T4163] reiserfs_ioctl+0x170/0x340 [ 55.931083][ T4163] ? __se_sys_ioctl+0xe6/0x160 [ 55.935822][ T4163] ? reiserfs_unpack+0x5a0/0x5a0 [ 55.940736][ T4163] __se_sys_ioctl+0xf1/0x160 [ 55.945309][ T4163] do_syscall_64+0x3b/0xb0 [ 55.949702][ T4163] ? clear_bhb_loop+0x15/0x70 [ 55.954357][ T4163] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.960232][ T4163] RIP: 0033:0x7f0f348feb19 [ 55.964642][ T4163] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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 [ 55.984261][ T4163] RSP: 002b:00007ffc14d25ea8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 55.992675][ T4163] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0f348feb19 [ 56.000748][ T4163] RDX: 0000000000000000 RSI: 0000000040087602 RDI: 0000000000000004 [ 56.008710][ T4163] RBP: 00007f0f349725f0 R08: 000055557d0494c0 R09: 000055557d0494c0 executing program [ 56.016665][ T4163] R10: 0000000000001111 R11: 0000000000000246 R12: 00007ffc14d25ed0 [ 56.024623][ T4163] R13: 00007ffc14d260f8 R14: 431bde82d7b634db R15: 00007f0f3494703b [ 56.032606][ T4163] executing program [ 56.086918][ T4166] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.148579][ T4167] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.211281][ T4168] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.279406][ T4169] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.347107][ T4170] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.409630][ T4171] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.471748][ T4172] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.534506][ T4173] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.594776][ T4174] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 56.655884][ T4175] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 61.129683][ T4262] EXT4-fs warning: 86 callbacks suppressed [ 61.129694][ T4262] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.202174][ T4263] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.270287][ T4264] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.329740][ T4265] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.392328][ T4266] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.453442][ T4267] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.515694][ T4268] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.578533][ T4269] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.639638][ T4270] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program [ 61.705405][ T4271] EXT4-fs warning (device sda1): __ext4_ioctl:881: Setting inode version is not supported with metadata_csum enabled. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program