./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2238015830 <...> Warning: Permanently added '10.128.1.41' (ECDSA) to the list of known hosts. execve("./syz-executor2238015830", ["./syz-executor2238015830"], 0x7ffd24da53f0 /* 10 vars */) = 0 brk(NULL) = 0x555555b2c000 brk(0x555555b2cc40) = 0x555555b2cc40 arch_prctl(ARCH_SET_FS, 0x555555b2c300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2238015830", 4096) = 28 brk(0x555555b4dc40) = 0x555555b4dc40 brk(0x555555b4e000) = 0x555555b4e000 mprotect(0x7f7bd19b6000, 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 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 [ 52.062283][ T3630] loop0: detected capacity change from 0 to 8192 [ 52.074474][ T3630] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 52.087555][ T3630] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 52.097312][ T3630] REISERFS (device loop0): using ordered data mode [ 52.104085][ T3630] reiserfs: using flush barriers close(4) = 0 close(3) = 0 open(NULL, O_RDONLY) = -1 EFAULT (Bad address) [ 52.110200][ T3630] 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 [ 52.126949][ T3630] REISERFS (device loop0): checking transaction log (loop0) [ 52.136529][ T3630] REISERFS (device loop0): Using rupasov hash to sort names [ 52.145024][ T3630] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 52.161263][ T3630] [ 52.163623][ T3630] ====================================================== [ 52.170643][ T3630] WARNING: possible circular locking dependency detected [ 52.177665][ T3630] 6.1.0-rc5-syzkaller-00018-g59d0d52c30d4 #0 Not tainted [ 52.184690][ T3630] ------------------------------------------------------ [ 52.191696][ T3630] syz-executor223/3630 is trying to acquire lock: [ 52.198091][ T3630] ffffc90003cc10f0 (&journal->j_mutex){+.+.}-{3:3}, at: do_journal_begin_r+0x340/0x1070 [ 52.208462][ T3630] [ 52.208462][ T3630] but task is already holding lock: [ 52.215818][ T3630] ffff888077bae460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 52.225046][ T3630] [ 52.225046][ T3630] which lock already depends on the new lock. [ 52.225046][ T3630] [ 52.235435][ T3630] [ 52.235435][ T3630] the existing dependency chain (in reverse order) is: [ 52.244431][ T3630] [ 52.244431][ T3630] -> #2 (sb_writers#9){.+.+}-{0:0}: [ 52.251896][ T3630] lock_acquire+0x182/0x3c0 [ 52.256912][ T3630] sb_start_write+0x4d/0x1a0 [ 52.262018][ T3630] mnt_want_write_file+0x5a/0x1f0 [ 52.267555][ T3630] reiserfs_ioctl+0x16e/0x340 [ 52.272746][ T3630] __se_sys_ioctl+0xfb/0x170 [ 52.277936][ T3630] do_syscall_64+0x3d/0xb0 [ 52.282875][ T3630] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.289296][ T3630] [ 52.289296][ T3630] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 52.296497][ T3630] lock_acquire+0x182/0x3c0 [ 52.301515][ T3630] __mutex_lock_common+0x1bd/0x26e0 [ 52.307234][ T3630] mutex_lock_nested+0x17/0x20 [ 52.312521][ T3630] reiserfs_write_lock_nested+0x5b/0xd0 [ 52.318581][ T3630] do_journal_begin_r+0x34b/0x1070 [ 52.324200][ T3630] journal_begin+0x14b/0x350 [ 52.329298][ T3630] reiserfs_fill_super+0x172b/0x24a0 [ 52.335095][ T3630] mount_bdev+0x26c/0x3a0 [ 52.339938][ T3630] legacy_get_tree+0xea/0x180 [ 52.345130][ T3630] vfs_get_tree+0x88/0x270 [ 52.350057][ T3630] do_new_mount+0x289/0xad0 [ 52.355079][ T3630] __se_sys_mount+0x2d3/0x3c0 [ 52.360275][ T3630] do_syscall_64+0x3d/0xb0 [ 52.365210][ T3630] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.371622][ T3630] [ 52.371622][ T3630] -> #0 (&journal->j_mutex){+.+.}-{3:3}: [ 52.379430][ T3630] validate_chain+0x1898/0x6ae0 [ 52.384793][ T3630] __lock_acquire+0x1292/0x1f60 [ 52.390164][ T3630] lock_acquire+0x182/0x3c0 [ 52.395177][ T3630] __mutex_lock_common+0x1bd/0x26e0 [ 52.400895][ T3630] mutex_lock_nested+0x17/0x20 [ 52.406172][ T3630] do_journal_begin_r+0x340/0x1070 [ 52.411794][ T3630] journal_begin+0x14b/0x350 [ 52.416895][ T3630] reiserfs_dirty_inode+0x108/0x230 [ 52.422606][ T3630] __mark_inode_dirty+0x1e7/0x600 [ 52.428146][ T3630] reiserfs_ioctl+0x293/0x340 [ 52.433336][ T3630] __se_sys_ioctl+0xfb/0x170 [ 52.438440][ T3630] do_syscall_64+0x3d/0xb0 [ 52.443367][ T3630] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.449774][ T3630] [ 52.449774][ T3630] other info that might help us debug this: [ 52.449774][ T3630] [ 52.459986][ T3630] Chain exists of: [ 52.459986][ T3630] &journal->j_mutex --> &sbi->lock --> sb_writers#9 [ 52.459986][ T3630] [ 52.472491][ T3630] Possible unsafe locking scenario: [ 52.472491][ T3630] [ 52.479927][ T3630] CPU0 CPU1 [ 52.485276][ T3630] ---- ---- [ 52.490626][ T3630] lock(sb_writers#9); [ 52.494776][ T3630] lock(&sbi->lock); [ 52.501264][ T3630] lock(sb_writers#9); [ 52.507935][ T3630] lock(&journal->j_mutex); [ 52.512514][ T3630] [ 52.512514][ T3630] *** DEADLOCK *** [ 52.512514][ T3630] [ 52.520649][ T3630] 1 lock held by syz-executor223/3630: [ 52.526110][ T3630] #0: ffff888077bae460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 52.535770][ T3630] [ 52.535770][ T3630] stack backtrace: [ 52.541661][ T3630] CPU: 0 PID: 3630 Comm: syz-executor223 Not tainted 6.1.0-rc5-syzkaller-00018-g59d0d52c30d4 #0 [ 52.552061][ T3630] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 52.562109][ T3630] Call Trace: [ 52.565378][ T3630] [ 52.568391][ T3630] dump_stack_lvl+0x1b1/0x28e [ 52.573069][ T3630] ? nf_tcp_handle_invalid+0x62e/0x62e [ 52.578526][ T3630] ? print_circular_bug+0x13e/0x1c0 [ 52.583725][ T3630] check_noncircular+0x2cc/0x390 [ 52.588659][ T3630] ? add_chain_block+0x850/0x850 [ 52.593593][ T3630] ? lockdep_lock+0x102/0x290 [ 52.598271][ T3630] ? _find_first_zero_bit+0xe8/0x110 [ 52.603563][ T3630] validate_chain+0x1898/0x6ae0 [ 52.608418][ T3630] ? reacquire_held_locks+0x650/0x650 [ 52.613784][ T3630] ? __kernel_text_address+0x9/0x40 [ 52.618983][ T3630] ? unwind_get_return_address+0x48/0x80 [ 52.624612][ T3630] ? arch_stack_walk+0x98/0xe0 [ 52.629375][ T3630] ? stack_trace_save+0x104/0x1e0 [ 52.634392][ T3630] ? stack_trace_snprint+0xf0/0xf0 [ 52.639499][ T3630] ? check_noncircular+0x1aa/0x390 [ 52.644606][ T3630] ? add_chain_block+0x850/0x850 [ 52.649539][ T3630] ? lockdep_unlock+0x144/0x2e0 [ 52.654382][ T3630] ? lockdep_lock+0x290/0x290 [ 52.659055][ T3630] ? add_lock_to_list+0x1c7/0x2d0 [ 52.664080][ T3630] ? validate_chain+0x1478/0x6ae0 [ 52.669105][ T3630] ? reacquire_held_locks+0x650/0x650 [ 52.674469][ T3630] ? lockdep_unlock+0x144/0x2e0 [ 52.679310][ T3630] ? lockdep_lock+0x290/0x290 [ 52.683982][ T3630] ? add_lock_to_list+0x1c7/0x2d0 [ 52.689002][ T3630] ? validate_chain+0x1478/0x6ae0 [ 52.694027][ T3630] ? reacquire_held_locks+0x650/0x650 [ 52.699397][ T3630] ? reacquire_held_locks+0x650/0x650 [ 52.704762][ T3630] ? is_bpf_text_address+0x253/0x270 [ 52.710040][ T3630] ? stack_trace_save+0x1e0/0x1e0 [ 52.715409][ T3630] ? __kernel_text_address+0x9/0x40 [ 52.720615][ T3630] ? unwind_get_return_address+0x48/0x80 [ 52.726243][ T3630] ? arch_stack_walk+0x98/0xe0 [ 52.731002][ T3630] ? stack_trace_save+0x104/0x1e0 [ 52.736020][ T3630] ? stack_trace_snprint+0xf0/0xf0 [ 52.741126][ T3630] ? lockdep_unlock+0x144/0x2e0 [ 52.745967][ T3630] ? lockdep_lock+0x290/0x290 [ 52.750643][ T3630] ? stack_trace_save+0x1e0/0x1e0 [ 52.755658][ T3630] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.761303][ T3630] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.767280][ T3630] ? rcu_lock_release+0x5/0x20 [ 52.772043][ T3630] ? read_lock_is_recursive+0x10/0x10 [ 52.777587][ T3630] ? rcu_lock_release+0x5/0x20 [ 52.782348][ T3630] ? __lock_acquire+0x1f60/0x1f60 [ 52.787369][ T3630] ? deref_stack_reg+0x17a/0x210 [ 52.792312][ T3630] ? preempt_count_add+0x8d/0x180 [ 52.797338][ T3630] ? stack_trace_save+0x1e0/0x1e0 [ 52.802357][ T3630] ? is_bpf_text_address+0x253/0x270 [ 52.807642][ T3630] ? stack_trace_save+0x1e0/0x1e0 [ 52.812666][ T3630] ? stack_trace_save+0x1e0/0x1e0 [ 52.817683][ T3630] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.823306][ T3630] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.829284][ T3630] ? rcu_lock_release+0x5/0x20 [ 52.834045][ T3630] ? read_lock_is_recursive+0x10/0x10 [ 52.839414][ T3630] ? rcu_lock_release+0x5/0x20 [ 52.844195][ T3630] ? __lock_acquire+0x1f60/0x1f60 [ 52.849214][ T3630] ? deref_stack_reg+0x17a/0x210 [ 52.854150][ T3630] ? stack_trace_save+0x1e0/0x1e0 [ 52.859171][ T3630] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.864798][ T3630] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.870786][ T3630] ? rcu_lock_release+0x5/0x20 [ 52.875563][ T3630] ? read_lock_is_recursive+0x10/0x10 [ 52.880929][ T3630] ? rcu_lock_release+0x5/0x20 [ 52.885689][ T3630] ? __lock_acquire+0x1f60/0x1f60 [ 52.890707][ T3630] ? deref_stack_reg+0x17a/0x210 [ 52.895642][ T3630] ? mark_lock+0x9a/0x350 [ 52.899969][ T3630] ? __lock_acquire+0x1292/0x1f60 [ 52.904993][ T3630] ? mark_lock+0x9a/0x350 [ 52.909316][ T3630] __lock_acquire+0x1292/0x1f60 [ 52.914173][ T3630] lock_acquire+0x182/0x3c0 [ 52.918666][ T3630] ? do_journal_begin_r+0x340/0x1070 [ 52.923945][ T3630] ? read_lock_is_recursive+0x10/0x10 [ 52.929314][ T3630] ? __might_sleep+0xc0/0xc0 [ 52.933915][ T3630] ? reiserfs_write_unlock_nested+0xd0/0x120 [ 52.939893][ T3630] ? __lock_acquire+0x1f60/0x1f60 [ 52.944915][ T3630] __mutex_lock_common+0x1bd/0x26e0 [ 52.950122][ T3630] ? do_journal_begin_r+0x340/0x1070 [ 52.955487][ T3630] ? __mutex_unlock_slowpath+0x222/0x770 [ 52.961122][ T3630] ? do_journal_begin_r+0x340/0x1070 [ 52.966401][ T3630] ? mutex_unlock+0x10/0x10 [ 52.970903][ T3630] ? mutex_lock_io_nested+0x60/0x60 [ 52.976107][ T3630] mutex_lock_nested+0x17/0x20 [ 52.980869][ T3630] do_journal_begin_r+0x340/0x1070 [ 52.985982][ T3630] ? journal_join_abort+0xe0/0xe0 [ 52.990997][ T3630] ? print_irqtrace_events+0x220/0x220 [ 52.996450][ T3630] ? ktime_get_coarse_real_ts64+0x45/0x140 [ 53.002253][ T3630] ? lockdep_hardirqs_on+0x8d/0x130 [ 53.007455][ T3630] journal_begin+0x14b/0x350 [ 53.012044][ T3630] reiserfs_dirty_inode+0x108/0x230 [ 53.017242][ T3630] ? reiserfs_free_inode+0x20/0x20 [ 53.022353][ T3630] ? rcu_read_lock_sched_held+0x87/0x110 [ 53.027982][ T3630] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 53.033961][ T3630] ? current_time+0x1d7/0x300 [ 53.038638][ T3630] ? reiserfs_free_inode+0x20/0x20 [ 53.043745][ T3630] __mark_inode_dirty+0x1e7/0x600 [ 53.048794][ T3630] ? __might_fault+0xb2/0x110 [ 53.053469][ T3630] reiserfs_ioctl+0x293/0x340 [ 53.058143][ T3630] ? __se_sys_ioctl+0xf0/0x170 ioctl(5, FS_IOC_SETVERSION, 0x20000080) = 0 newfstatat(AT_FDCWD, "./file1", 0x20000100, 0) = -1 ENOENT (No such file or directory) exit_group(0) = ? [ 53.062902][ T3630] ? reiserfs_unpack+0x390/0x390 [ 53.067835][ T3630] __se_sys_ioctl+0xfb/0x170 [ 53.072423][ T3630] do_syscall_64+0x3d/0xb0 [ 53.076844][ T3630] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.082737][ T3630] RIP: 0033:0x7f7bd194a179 [ 53.087147][ T3630] 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 [ 53.106749][ T3630] RSP: 002b:00007ffde772a678 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 +++ exited with 0 +++ [ 53.115156][ T3630]