./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3179549263 <...> Warning: Permanently added '10.128.0.237' (ECDSA) to the list of known hosts. execve("./syz-executor3179549263", ["./syz-executor3179549263"], 0x7ffd5a859490 /* 10 vars */) = 0 brk(NULL) = 0x5555563d3000 brk(0x5555563d3c40) = 0x5555563d3c40 arch_prctl(ARCH_SET_FS, 0x5555563d3300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3179549263", 4096) = 28 brk(0x5555563f4c40) = 0x5555563f4c40 brk(0x5555563f5000) = 0x5555563f5000 mprotect(0x7f992a989000, 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: [ 57.403402][ T3641] loop0: detected capacity change from 0 to 8192 [ 57.415901][ T3641] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 57.429430][ T3641] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 57.439115][ T3641] REISERFS (device loop0): using ordered data mode [ 57.446094][ T3641] 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("./file0", O_RDONLY) = 3 [ 57.452772][ T3641] 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 [ 57.470996][ T3641] REISERFS (device loop0): checking transaction log (loop0) [ 57.480868][ T3641] REISERFS (device loop0): Using rupasov hash to sort names [ 57.489455][ T3641] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. flock(3, LOCK_EX) = 0 [ 57.507349][ T3641] [ 57.509731][ T3641] ====================================================== [ 57.516788][ T3641] WARNING: possible circular locking dependency detected [ 57.523818][ T3641] 6.1.0-rc5-syzkaller-00241-gab290eaddc4c #0 Not tainted [ 57.530855][ T3641] ------------------------------------------------------ [ 57.537888][ T3641] syz-executor317/3641 is trying to acquire lock: [ 57.546063][ T3641] ffffc90003d910f0 (&journal->j_mutex){+.+.}-{3:3}, at: do_journal_begin_r+0x340/0x1070 [ 57.557496][ T3641] [ 57.557496][ T3641] but task is already holding lock: [ 57.565066][ T3641] ffff888147b4a460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 57.574360][ T3641] [ 57.574360][ T3641] which lock already depends on the new lock. [ 57.574360][ T3641] [ 57.584746][ T3641] [ 57.584746][ T3641] the existing dependency chain (in reverse order) is: [ 57.593756][ T3641] [ 57.593756][ T3641] -> #2 (sb_writers#9){.+.+}-{0:0}: [ 57.601130][ T3641] lock_acquire+0x182/0x3c0 [ 57.606332][ T3641] sb_start_write+0x4d/0x1a0 [ 57.611719][ T3641] mnt_want_write_file+0x5a/0x1f0 [ 57.617265][ T3641] reiserfs_ioctl+0x16e/0x340 [ 57.622633][ T3641] __se_sys_ioctl+0xfb/0x170 [ 57.627768][ T3641] do_syscall_64+0x3d/0xb0 [ 57.632728][ T3641] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.639325][ T3641] [ 57.639325][ T3641] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 57.646969][ T3641] lock_acquire+0x182/0x3c0 [ 57.651985][ T3641] __mutex_lock_common+0x1bd/0x26e0 [ 57.657696][ T3641] mutex_lock_nested+0x17/0x20 [ 57.662984][ T3641] reiserfs_write_lock_nested+0x5b/0xd0 [ 57.669037][ T3641] do_journal_begin_r+0x34b/0x1070 [ 57.674651][ T3641] journal_begin+0x14b/0x350 [ 57.679778][ T3641] reiserfs_fill_super+0x172b/0x24a0 [ 57.685620][ T3641] mount_bdev+0x26c/0x3a0 [ 57.690542][ T3641] legacy_get_tree+0xea/0x180 [ 57.695726][ T3641] vfs_get_tree+0x88/0x270 [ 57.700747][ T3641] do_new_mount+0x289/0xad0 [ 57.705755][ T3641] __se_sys_mount+0x2d3/0x3c0 [ 57.710934][ T3641] do_syscall_64+0x3d/0xb0 [ 57.716141][ T3641] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.722544][ T3641] [ 57.722544][ T3641] -> #0 (&journal->j_mutex){+.+.}-{3:3}: [ 57.730618][ T3641] validate_chain+0x1898/0x6ae0 [ 57.736006][ T3641] __lock_acquire+0x1292/0x1f60 [ 57.741390][ T3641] lock_acquire+0x182/0x3c0 [ 57.746417][ T3641] __mutex_lock_common+0x1bd/0x26e0 [ 57.752151][ T3641] mutex_lock_nested+0x17/0x20 [ 57.757425][ T3641] do_journal_begin_r+0x340/0x1070 [ 57.763043][ T3641] journal_begin+0x14b/0x350 [ 57.768133][ T3641] reiserfs_dirty_inode+0x108/0x230 [ 57.773839][ T3641] __mark_inode_dirty+0x1e7/0x600 [ 57.779368][ T3641] reiserfs_ioctl+0x293/0x340 [ 57.784636][ T3641] __se_sys_ioctl+0xfb/0x170 [ 57.789733][ T3641] do_syscall_64+0x3d/0xb0 [ 57.795085][ T3641] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.801532][ T3641] [ 57.801532][ T3641] other info that might help us debug this: [ 57.801532][ T3641] [ 57.811756][ T3641] Chain exists of: [ 57.811756][ T3641] &journal->j_mutex --> &sbi->lock --> sb_writers#9 [ 57.811756][ T3641] [ 57.824290][ T3641] Possible unsafe locking scenario: [ 57.824290][ T3641] [ 57.831749][ T3641] CPU0 CPU1 [ 57.837102][ T3641] ---- ---- [ 57.842452][ T3641] lock(sb_writers#9); [ 57.846640][ T3641] lock(&sbi->lock); [ 57.853166][ T3641] lock(sb_writers#9); [ 57.860004][ T3641] lock(&journal->j_mutex); [ 57.864583][ T3641] [ 57.864583][ T3641] *** DEADLOCK *** [ 57.864583][ T3641] [ 57.872893][ T3641] 1 lock held by syz-executor317/3641: [ 57.878330][ T3641] #0: ffff888147b4a460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 [ 57.888060][ T3641] [ 57.888060][ T3641] stack backtrace: [ 57.894906][ T3641] CPU: 1 PID: 3641 Comm: syz-executor317 Not tainted 6.1.0-rc5-syzkaller-00241-gab290eaddc4c #0 [ 57.905333][ T3641] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 57.915973][ T3641] Call Trace: [ 57.919262][ T3641] [ 57.922206][ T3641] dump_stack_lvl+0x1b1/0x28e [ 57.926955][ T3641] ? nf_tcp_handle_invalid+0x62e/0x62e [ 57.932441][ T3641] ? print_circular_bug+0x13e/0x1c0 [ 57.937677][ T3641] check_noncircular+0x2cc/0x390 [ 57.942643][ T3641] ? add_chain_block+0x850/0x850 [ 57.947601][ T3641] ? lockdep_lock+0x102/0x290 [ 57.953147][ T3641] ? _find_first_zero_bit+0xe8/0x110 [ 57.958438][ T3641] validate_chain+0x1898/0x6ae0 [ 57.963290][ T3641] ? reacquire_held_locks+0x650/0x650 [ 57.968673][ T3641] ? __kernel_text_address+0x9/0x40 [ 57.973867][ T3641] ? unwind_get_return_address+0x48/0x80 [ 57.979498][ T3641] ? arch_stack_walk+0x98/0xe0 [ 57.984258][ T3641] ? stack_trace_save+0x104/0x1e0 [ 57.989389][ T3641] ? stack_trace_snprint+0xf0/0xf0 [ 57.994505][ T3641] ? check_noncircular+0x1aa/0x390 [ 57.999623][ T3641] ? add_chain_block+0x850/0x850 [ 58.004650][ T3641] ? lockdep_unlock+0x144/0x2e0 [ 58.009615][ T3641] ? lockdep_lock+0x290/0x290 [ 58.014572][ T3641] ? add_lock_to_list+0x1c7/0x2d0 [ 58.019690][ T3641] ? validate_chain+0x1478/0x6ae0 [ 58.024709][ T3641] ? reacquire_held_locks+0x650/0x650 [ 58.030415][ T3641] ? lockdep_unlock+0x144/0x2e0 [ 58.035261][ T3641] ? lockdep_lock+0x290/0x290 [ 58.039938][ T3641] ? add_lock_to_list+0x1c7/0x2d0 [ 58.045041][ T3641] ? validate_chain+0x1478/0x6ae0 [ 58.050495][ T3641] ? reacquire_held_locks+0x650/0x650 [ 58.055862][ T3641] ? reacquire_held_locks+0x650/0x650 [ 58.061230][ T3641] ? is_bpf_text_address+0x253/0x270 [ 58.066510][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.071547][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.076705][ T3641] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.082329][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.087340][ T3641] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.092976][ T3641] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 58.098966][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.104183][ T3641] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.109814][ T3641] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 58.115977][ T3641] ? rcu_lock_release+0x5/0x20 [ 58.120913][ T3641] ? read_lock_is_recursive+0x10/0x10 [ 58.126438][ T3641] ? rcu_lock_release+0x5/0x20 [ 58.131397][ T3641] ? __lock_acquire+0x1f60/0x1f60 [ 58.136624][ T3641] ? deref_stack_reg+0x17a/0x210 [ 58.141754][ T3641] ? preempt_count_add+0x8d/0x180 [ 58.146868][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.152012][ T3641] ? is_bpf_text_address+0x253/0x270 [ 58.157305][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.162324][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.167432][ T3641] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.174006][ T3641] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 58.180319][ T3641] ? rcu_lock_release+0x5/0x20 [ 58.185076][ T3641] ? read_lock_is_recursive+0x10/0x10 [ 58.190437][ T3641] ? rcu_lock_release+0x5/0x20 [ 58.195277][ T3641] ? __lock_acquire+0x1f60/0x1f60 [ 58.200676][ T3641] ? deref_stack_reg+0x17a/0x210 [ 58.205619][ T3641] ? stack_trace_save+0x1e0/0x1e0 [ 58.210942][ T3641] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.216658][ T3641] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 58.223065][ T3641] ? rcu_lock_release+0x5/0x20 [ 58.227826][ T3641] ? read_lock_is_recursive+0x10/0x10 [ 58.233753][ T3641] ? rcu_lock_release+0x5/0x20 [ 58.238515][ T3641] ? __lock_acquire+0x1f60/0x1f60 [ 58.243701][ T3641] ? deref_stack_reg+0x17a/0x210 [ 58.249790][ T3641] ? mark_lock+0x9a/0x350 [ 58.254328][ T3641] ? __lock_acquire+0x1292/0x1f60 [ 58.259370][ T3641] ? mark_lock+0x9a/0x350 [ 58.264309][ T3641] __lock_acquire+0x1292/0x1f60 [ 58.269159][ T3641] lock_acquire+0x182/0x3c0 [ 58.273646][ T3641] ? do_journal_begin_r+0x340/0x1070 [ 58.278913][ T3641] ? read_lock_is_recursive+0x10/0x10 [ 58.284273][ T3641] ? __might_sleep+0xc0/0xc0 [ 58.288856][ T3641] ? reiserfs_write_unlock_nested+0xd0/0x120 [ 58.295094][ T3641] ? __lock_acquire+0x1f60/0x1f60 [ 58.300238][ T3641] __mutex_lock_common+0x1bd/0x26e0 [ 58.305865][ T3641] ? do_journal_begin_r+0x340/0x1070 [ 58.311222][ T3641] ? __mutex_unlock_slowpath+0x222/0x770 [ 58.317133][ T3641] ? do_journal_begin_r+0x340/0x1070 [ 58.322719][ T3641] ? mutex_unlock+0x10/0x10 [ 58.327386][ T3641] ? mutex_lock_io_nested+0x60/0x60 [ 58.332776][ T3641] mutex_lock_nested+0x17/0x20 [ 58.337908][ T3641] do_journal_begin_r+0x340/0x1070 [ 58.343195][ T3641] ? journal_join_abort+0xe0/0xe0 [ 58.348381][ T3641] ? print_irqtrace_events+0x220/0x220 [ 58.354089][ T3641] ? ktime_get_coarse_real_ts64+0x45/0x140 [ 58.359880][ T3641] ? lockdep_hardirqs_on+0x8d/0x130 [ 58.365067][ T3641] journal_begin+0x14b/0x350 [ 58.369640][ T3641] reiserfs_dirty_inode+0x108/0x230 [ 58.374829][ T3641] ? reiserfs_free_inode+0x20/0x20 [ 58.379925][ T3641] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.385557][ T3641] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 58.391645][ T3641] ? current_time+0x1d7/0x300 [ 58.399026][ T3641] ? reiserfs_free_inode+0x20/0x20 [ 58.404436][ T3641] __mark_inode_dirty+0x1e7/0x600 [ 58.409466][ T3641] ? __might_fault+0xb2/0x110 [ 58.414234][ T3641] reiserfs_ioctl+0x293/0x340 [ 58.421665][ T3641] ? __se_sys_ioctl+0xf0/0x170 [ 58.427137][ T3641] ? reiserfs_unpack+0x390/0x390 [ 58.432862][ T3641] __se_sys_ioctl+0xfb/0x170 [ 58.439598][ T3641] do_syscall_64+0x3d/0xb0 [ 58.444178][ T3641] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.453033][ T3641] RIP: 0033:0x7f992a91d189 [ 58.457520][ T3641] 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 [ 58.477200][ T3641] RSP: 002b:00007ffea97c3e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 58.485599][ T3641] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f992a91d189 [ 58.493699][ T3641] RDX: 0000000020000080 RSI: 0000000040087602 RDI: 0000000000000005 [ 58.504088][ T3641] RBP: 00007f992a8dc980 R08: 0000000000000000 R09: 0000000000000000 ioctl(5, FS_IOC_SETVERSION, 0x20000080) = 0 exit_group(0) = ? +++ exited with 0 +++