./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1817419256 <...> Warning: Permanently added '10.128.1.115' (ECDSA) to the list of known hosts. execve("./syz-executor1817419256", ["./syz-executor1817419256"], 0x7ffd84f93b70 /* 10 vars */) = 0 brk(NULL) = 0x555557464000 brk(0x555557464c40) = 0x555557464c40 arch_prctl(ARCH_SET_FS, 0x555557464300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1817419256", 4096) = 28 brk(0x555557485c40) = 0x555557485c40 brk(0x555557486000) = 0x555557486000 mprotect(0x7f7d0090f000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 memfd_create("syzkaller", 0) = 3 ftruncate(3, 4194320) = 0 pwrite64(3, "\x8c\xb6\x37", 3, 1) = 3 pwrite64(3, "\x00\x84\x09", 3, 4) = 3 pwrite64(3, "\xcf\x58\xf9\xb6\xb0\x97\x28\x72\x18\xce\x56\xf2\x50\xb4\x26\xfd\x15\x34\xa8\x24\x13\x97\xcf\xab\x6d\x88\x16\xfa\x4b\xb4\x5c\x3f\x9f\xdd\xf8\x76\xb2\x69\xc1\xe8\x59\xce\xbe\x21\xb7\xd9\x24\x4b\x1f\xd8\xf4\x11\xc2\xe7\x5b\x40\x44\x0e\x6e\x93\x65\x6e\xcb\xb4\x9b\xee\xac\x1c\x75\x71\x47\x8c\xa3\xc9\x9e\xc9\x07\x4a\xeb\xad\xf4\x46\x2d\x55\x73\x8c\xec\xdf\x1a\xe2\x86\x2f\x84\x19\x26\xf1\x5b\x27\x70\x6d"..., 205, 7) = 205 pwrite64(3, "\x00\x04\x00\x00\xec\x01\x00\x00\x13\x02\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x61\x1c\xad\x49\xe1\x00\x00\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x10\xcc\x03\x10\x00\x01\x00\x52\x65\x49\x73\x45\x72\x33\x46\x73\x00\x00\x00\x02\x00\x00\x00\x02\x00\x01\x00\x02\x00\x01\x02\x00\x00\x00\x00\x01\x00\x00\x00\x12\x31\x2a\x23\x12\x12\x33\x12\x33\x12\x31\x12\x34\x13\x41\x24"..., 128, 65536) = 128 pwrite64(3, "\x00\x00\x00\x00\x00\x00\x05\x00\x08\x00\x00\x00\x01\x10\x00\x00\x03\x10\x00\x48\xb2\x56\x07\x81\x8b\x96\xe2\x7e\xa5\x80\x19\x56\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9e\x08", 45, 65728) = 45 pwrite64(3, "\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x61\x1c\xad\x49\xe1\x00\x00\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf4\x50\x98\x12\x2a\x16\x2b\x00\x17\x31\xda\x04\x98\x0e\x00\x00\x66\xd9\xca\x9b\x08\x8f\x7a\xfe\xe7\x42\xa2\xaa\xc9\x3d\x10\x58\x68\xc7\x2e\xdb"..., 185, 2170880) = 185 pwrite64(3, "\x01\x00\x02\x00\x5c\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2c\x00\xd4\x0f\x01\x00\x01\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\xf4\x01\x00\x00\x02\x00\x30\x00\xa4\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 96, 2174976) = 96 pwrite64(3, "\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x28\x00\x04\x00\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x20\x00\x04\x00\x2e\x2e\x00\x00\x00\x00\x00\x00\x2e\x00\xe2\xff\x00\x00\x00\x00\xed\x41\x00\x00\x03\x00\x00\x3a\xc1\x65\x5f\x3a\xc1\x65\x5f\x3a\xc1\x65\xea\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf3\xff", 82, 2178976) = 82 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 mkdir("./file0", 0777) = 0 syzkaller login: [ 50.342021][ T3608] loop0: detected capacity change from 0 to 8192 [ 50.353801][ T3608] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 50.366891][ T3608] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 50.376457][ T3608] REISERFS (device loop0): using ordered data mode [ 50.383437][ T3608] reiserfs: using flush barriers mount("/dev/loop0", "./file0", "reiserfs", MS_NOSUID|MS_NOEXEC|MS_NOATIME|MS_RELATIME, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 5 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 close(3) = 0 open(NULL, O_RDONLY) = -1 EFAULT (Bad address) [ 50.389419][ T3608] 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 [ 50.406162][ T3608] REISERFS (device loop0): checking transaction log (loop0) [ 50.415637][ T3608] REISERFS (device loop0): Using rupasov hash to sort names [ 50.423816][ T3608] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 50.439904][ T3608] [ 50.442252][ T3608] ====================================================== [ 50.449355][ T3608] WARNING: possible circular locking dependency detected [ 50.456375][ T3608] 6.1.0-rc4-syzkaller-00372-gaf7a05689189 #0 Not tainted [ 50.463392][ T3608] ------------------------------------------------------ [ 50.470384][ T3608] syz-executor181/3608 is trying to acquire lock: [ 50.476771][ T3608] ffffc90003dc10f0 (&journal->j_mutex){+.+.}-{3:3}, at: do_journal_begin_r+0x340/0x1070 [ 50.486493][ T3608] [ 50.486493][ T3608] but task is already holding lock: [ 50.493832][ T3608] ffff88807b9f8460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 50.503023][ T3608] [ 50.503023][ T3608] which lock already depends on the new lock. [ 50.503023][ T3608] [ 50.513396][ T3608] [ 50.513396][ T3608] the existing dependency chain (in reverse order) is: [ 50.522384][ T3608] [ 50.522384][ T3608] -> #2 (sb_writers#9){.+.+}-{0:0}: [ 50.529744][ T3608] lock_acquire+0x182/0x3c0 [ 50.534750][ T3608] sb_start_write+0x4d/0x1a0 [ 50.540011][ T3608] mnt_want_write_file+0x5a/0x1f0 [ 50.545530][ T3608] reiserfs_ioctl+0x16e/0x340 [ 50.550706][ T3608] __se_sys_ioctl+0xfb/0x170 [ 50.555797][ T3608] do_syscall_64+0x3d/0xb0 [ 50.560724][ T3608] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 50.567119][ T3608] [ 50.567119][ T3608] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 50.574296][ T3608] lock_acquire+0x182/0x3c0 [ 50.579387][ T3608] __mutex_lock_common+0x1bd/0x26e0 [ 50.585096][ T3608] mutex_lock_nested+0x17/0x20 [ 50.590380][ T3608] reiserfs_write_lock_nested+0x5b/0xd0 [ 50.596444][ T3608] do_journal_begin_r+0x34b/0x1070 [ 50.602066][ T3608] journal_begin+0x14b/0x350 [ 50.607159][ T3608] reiserfs_fill_super+0x172b/0x24a0 [ 50.612949][ T3608] mount_bdev+0x26c/0x3a0 [ 50.617784][ T3608] legacy_get_tree+0xea/0x180 [ 50.623054][ T3608] vfs_get_tree+0x88/0x270 [ 50.627971][ T3608] do_new_mount+0x289/0xad0 [ 50.632973][ T3608] __se_sys_mount+0x2d3/0x3c0 [ 50.638152][ T3608] do_syscall_64+0x3d/0xb0 [ 50.643069][ T3608] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 50.649468][ T3608] [ 50.649468][ T3608] -> #0 (&journal->j_mutex){+.+.}-{3:3}: [ 50.657259][ T3608] validate_chain+0x1898/0x6ae0 [ 50.662611][ T3608] __lock_acquire+0x1292/0x1f60 [ 50.667959][ T3608] lock_acquire+0x182/0x3c0 [ 50.672958][ T3608] __mutex_lock_common+0x1bd/0x26e0 [ 50.678716][ T3608] mutex_lock_nested+0x17/0x20 [ 50.683984][ T3608] do_journal_begin_r+0x340/0x1070 [ 50.689598][ T3608] journal_begin+0x14b/0x350 [ 50.694688][ T3608] reiserfs_dirty_inode+0x108/0x230 [ 50.700389][ T3608] __mark_inode_dirty+0x1e7/0x600 [ 50.705918][ T3608] reiserfs_ioctl+0x293/0x340 [ 50.711096][ T3608] __se_sys_ioctl+0xfb/0x170 [ 50.716188][ T3608] do_syscall_64+0x3d/0xb0 [ 50.721104][ T3608] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 50.727499][ T3608] [ 50.727499][ T3608] other info that might help us debug this: [ 50.727499][ T3608] [ 50.737704][ T3608] Chain exists of: [ 50.737704][ T3608] &journal->j_mutex --> &sbi->lock --> sb_writers#9 [ 50.737704][ T3608] [ 50.750187][ T3608] Possible unsafe locking scenario: [ 50.750187][ T3608] [ 50.757611][ T3608] CPU0 CPU1 [ 50.762950][ T3608] ---- ---- [ 50.768294][ T3608] lock(sb_writers#9); [ 50.772443][ T3608] lock(&sbi->lock); [ 50.778919][ T3608] lock(sb_writers#9); [ 50.785572][ T3608] lock(&journal->j_mutex); [ 50.790137][ T3608] [ 50.790137][ T3608] *** DEADLOCK *** [ 50.790137][ T3608] [ 50.798258][ T3608] 1 lock held by syz-executor181/3608: [ 50.803689][ T3608] #0: ffff88807b9f8460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 50.813323][ T3608] [ 50.813323][ T3608] stack backtrace: [ 50.819183][ T3608] CPU: 1 PID: 3608 Comm: syz-executor181 Not tainted 6.1.0-rc4-syzkaller-00372-gaf7a05689189 #0 [ 50.829652][ T3608] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 50.839700][ T3608] Call Trace: [ 50.842966][ T3608] [ 50.845879][ T3608] dump_stack_lvl+0x1b1/0x28e [ 50.850548][ T3608] ? nf_tcp_handle_invalid+0x62e/0x62e [ 50.855987][ T3608] ? print_circular_bug+0x13e/0x1c0 [ 50.861167][ T3608] check_noncircular+0x2cc/0x390 [ 50.866086][ T3608] ? add_chain_block+0x850/0x850 [ 50.871004][ T3608] ? lockdep_lock+0x102/0x290 [ 50.875664][ T3608] ? _find_first_zero_bit+0xe8/0x110 [ 50.880929][ T3608] validate_chain+0x1898/0x6ae0 [ 50.885764][ T3608] ? reacquire_held_locks+0x650/0x650 [ 50.891115][ T3608] ? __kernel_text_address+0x9/0x40 [ 50.896291][ T3608] ? unwind_get_return_address+0x48/0x80 [ 50.901905][ T3608] ? arch_stack_walk+0x98/0xe0 [ 50.906719][ T3608] ? stack_trace_save+0x104/0x1e0 [ 50.911725][ T3608] ? stack_trace_snprint+0xf0/0xf0 [ 50.916819][ T3608] ? check_noncircular+0x1aa/0x390 [ 50.921910][ T3608] ? add_chain_block+0x850/0x850 [ 50.926829][ T3608] ? lockdep_unlock+0x144/0x2e0 [ 50.931657][ T3608] ? lockdep_lock+0x290/0x290 [ 50.936401][ T3608] ? add_lock_to_list+0x1c7/0x2d0 [ 50.941404][ T3608] ? validate_chain+0x1478/0x6ae0 [ 50.946421][ T3608] ? reacquire_held_locks+0x650/0x650 [ 50.951774][ T3608] ? lockdep_unlock+0x144/0x2e0 [ 50.956603][ T3608] ? lockdep_lock+0x290/0x290 [ 50.961258][ T3608] ? add_lock_to_list+0x1c7/0x2d0 [ 50.966262][ T3608] ? validate_chain+0x1478/0x6ae0 [ 50.971268][ T3608] ? reacquire_held_locks+0x650/0x650 [ 50.976618][ T3608] ? reacquire_held_locks+0x650/0x650 [ 50.981972][ T3608] ? is_bpf_text_address+0x253/0x270 [ 50.987234][ T3608] ? stack_trace_save+0x1e0/0x1e0 [ 50.992240][ T3608] ? __kernel_text_address+0x9/0x40 [ 50.997422][ T3608] ? unwind_get_return_address+0x48/0x80 [ 51.003034][ T3608] ? arch_stack_walk+0x98/0xe0 [ 51.007778][ T3608] ? stack_trace_save+0x104/0x1e0 [ 51.012780][ T3608] ? stack_trace_snprint+0xf0/0xf0 [ 51.017869][ T3608] ? lockdep_unlock+0x144/0x2e0 [ 51.022699][ T3608] ? lockdep_lock+0x290/0x290 [ 51.027356][ T3608] ? lockdep_unlock+0x144/0x2e0 [ 51.032186][ T3608] ? stack_trace_save+0x1e0/0x1e0 [ 51.037190][ T3608] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.042802][ T3608] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 51.048762][ T3608] ? rcu_lock_release+0x5/0x20 [ 51.053527][ T3608] ? read_lock_is_recursive+0x10/0x10 [ 51.058877][ T3608] ? rcu_lock_release+0x5/0x20 [ 51.063620][ T3608] ? __lock_acquire+0x1f60/0x1f60 [ 51.068621][ T3608] ? deref_stack_reg+0x17a/0x210 [ 51.073556][ T3608] ? preempt_count_add+0x8d/0x180 [ 51.078560][ T3608] ? stack_trace_save+0x1e0/0x1e0 [ 51.083563][ T3608] ? is_bpf_text_address+0x253/0x270 [ 51.088914][ T3608] ? stack_trace_save+0x1e0/0x1e0 [ 51.093919][ T3608] ? stack_trace_save+0x1e0/0x1e0 [ 51.098925][ T3608] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.104540][ T3608] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 51.110505][ T3608] ? rcu_lock_release+0x5/0x20 [ 51.115248][ T3608] ? read_lock_is_recursive+0x10/0x10 [ 51.120597][ T3608] ? rcu_lock_release+0x5/0x20 [ 51.125337][ T3608] ? __lock_acquire+0x1f60/0x1f60 [ 51.130337][ T3608] ? deref_stack_reg+0x17a/0x210 [ 51.135255][ T3608] ? stack_trace_save+0x1e0/0x1e0 [ 51.140259][ T3608] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.145869][ T3608] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 51.151832][ T3608] ? rcu_lock_release+0x5/0x20 [ 51.156578][ T3608] ? read_lock_is_recursive+0x10/0x10 [ 51.161925][ T3608] ? rcu_lock_release+0x5/0x20 [ 51.166668][ T3608] ? __lock_acquire+0x1f60/0x1f60 [ 51.171672][ T3608] ? deref_stack_reg+0x17a/0x210 [ 51.176592][ T3608] ? mark_lock+0x9a/0x350 [ 51.180900][ T3608] ? __lock_acquire+0x1292/0x1f60 [ 51.185906][ T3608] ? mark_lock+0x9a/0x350 [ 51.190219][ T3608] __lock_acquire+0x1292/0x1f60 [ 51.195052][ T3608] lock_acquire+0x182/0x3c0 [ 51.199537][ T3608] ? do_journal_begin_r+0x340/0x1070 [ 51.204800][ T3608] ? read_lock_is_recursive+0x10/0x10 [ 51.210155][ T3608] ? __might_sleep+0xc0/0xc0 [ 51.214729][ T3608] ? reiserfs_write_unlock_nested+0xd0/0x120 [ 51.220687][ T3608] ? __lock_acquire+0x1f60/0x1f60 [ 51.225692][ T3608] __mutex_lock_common+0x1bd/0x26e0 [ 51.230868][ T3608] ? do_journal_begin_r+0x340/0x1070 [ 51.236134][ T3608] ? __mutex_unlock_slowpath+0x222/0x770 [ 51.241741][ T3608] ? do_journal_begin_r+0x340/0x1070 [ 51.247005][ T3608] ? mutex_unlock+0x10/0x10 [ 51.251498][ T3608] ? mutex_lock_io_nested+0x60/0x60 [ 51.256675][ T3608] mutex_lock_nested+0x17/0x20 [ 51.261418][ T3608] do_journal_begin_r+0x340/0x1070 [ 51.266513][ T3608] ? journal_join_abort+0xe0/0xe0 [ 51.271515][ T3608] ? print_irqtrace_events+0x220/0x220 [ 51.277733][ T3608] ? ktime_get_coarse_real_ts64+0x45/0x140 [ 51.283520][ T3608] ? lockdep_hardirqs_on+0x8d/0x130 [ 51.288701][ T3608] journal_begin+0x14b/0x350 [ 51.293270][ T3608] reiserfs_dirty_inode+0x108/0x230 [ 51.298459][ T3608] ? reiserfs_free_inode+0x20/0x20 [ 51.303549][ T3608] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.311157][ T3608] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 51.317117][ T3608] ? current_time+0x1d7/0x300 [ 51.321772][ T3608] ? reiserfs_free_inode+0x20/0x20 [ 51.326862][ T3608] __mark_inode_dirty+0x1e7/0x600 [ 51.331873][ T3608] ? __might_fault+0xb2/0x110 [ 51.336529][ T3608] reiserfs_ioctl+0x293/0x340 [ 51.341195][ T3608] ? __se_sys_ioctl+0xf0/0x170 [ 51.345946][ T3608] ? reiserfs_unpack+0x390/0x390 [ 51.350861][ T3608] __se_sys_ioctl+0xfb/0x170 [ 51.355448][ T3608] do_syscall_64+0x3d/0xb0 [ 51.359848][ T3608] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.365720][ T3608] RIP: 0033:0x7f7d008a3149 [ 51.370112][ T3608] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 c0 ff ff ff f7 d8 64 89 01 48 ioctl(5, FS_IOC_SETVERSION, 0x20000080) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 51.389781][ T3608] RSP: 002b:00007ffc474a33a8 EFLAGS: 00000246 ORIG_RAX: 0000000