./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1687907862 <...> Warning: Permanently added '10.128.0.166' (ED25519) to the list of known hosts. execve("./syz-executor1687907862", ["./syz-executor1687907862"], 0x7fffa50c57d0 /* 10 vars */) = 0 brk(NULL) = 0x555555732000 brk(0x555555732d00) = 0x555555732d00 arch_prctl(ARCH_SET_FS, 0x555555732380) = 0 set_tid_address(0x555555732650) = 5071 set_robust_list(0x555555732660, 24) = 0 rseq(0x555555732ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1687907862", 4096) = 28 getrandom("\xc7\x0d\x1f\x5d\x3c\xf6\x90\x89", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555732d00 brk(0x555555753d00) = 0x555555753d00 brk(0x555555754000) = 0x555555754000 mprotect(0x7f0cb0d14000, 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 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ca8863000 write(3, "\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\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\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4194304) = 4194304 munmap(0x7f0ca8863000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 70.627809][ T5071] loop0: detected capacity change from 0 to 8192 [ 70.641394][ T5071] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 70.654529][ T5071] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 70.664106][ T5071] REISERFS (device loop0): using ordered data mode [ 70.670807][ T5071] reiserfs: using flush barriers [ 70.677762][ T5071] 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 [ 70.694575][ T5071] REISERFS (device loop0): checking transaction log (loop0) [ 70.707775][ T5071] REISERFS (device loop0): Using r5 hash to sort names [ 70.715420][ T5071] REISERFS (device loop0): using 3.5.x disk format mount("/dev/loop0", "./file0", "reiserfs", 0, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 openat(AT_FDCWD, "cpuacct.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 70.724120][ T5071] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 70.759838][ T5071] [ 70.762316][ T5071] ====================================================== [ 70.769347][ T5071] WARNING: possible circular locking dependency detected [ 70.777413][ T5071] 6.7.0-rc8-syzkaller-00119-g1f874787ed9a #0 Not tainted [ 70.784700][ T5071] ------------------------------------------------------ [ 70.791742][ T5071] syz-executor168/5071 is trying to acquire lock: [ 70.798323][ T5071] ffff88801833e418 (sb_writers#9){.+.+}-{0:0}, at: reiserfs_ioctl+0x194/0x2e0 [ 70.807312][ T5071] [ 70.807312][ T5071] but task is already holding lock: [ 70.814691][ T5071] ffff888065472090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x79/0x100 [ 70.823734][ T5071] [ 70.823734][ T5071] which lock already depends on the new lock. [ 70.823734][ T5071] [ 70.834211][ T5071] [ 70.834211][ T5071] the existing dependency chain (in reverse order) is: [ 70.843413][ T5071] [ 70.843413][ T5071] -> #2 (&sbi->lock){+.+.}-{3:3}: [ 70.850601][ T5071] __mutex_lock+0x175/0x9d0 [ 70.855623][ T5071] reiserfs_write_lock+0x79/0x100 [ 70.861163][ T5071] reiserfs_lookup+0x184/0x690 [ 70.866443][ T5071] __lookup_slow+0x24d/0x450 [ 70.871540][ T5071] lookup_one_len+0x17d/0x1b0 [ 70.876909][ T5071] reiserfs_lookup_privroot+0x94/0x200 [ 70.883091][ T5071] reiserfs_fill_super+0x20f9/0x3160 [ 70.888917][ T5071] mount_bdev+0x1f3/0x2e0 [ 70.893809][ T5071] legacy_get_tree+0x109/0x220 [ 70.899113][ T5071] vfs_get_tree+0x8c/0x370 [ 70.904036][ T5071] path_mount+0x1492/0x1ed0 [ 70.909051][ T5071] __x64_sys_mount+0x293/0x310 [ 70.914324][ T5071] do_syscall_64+0x40/0x110 [ 70.919343][ T5071] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 70.925746][ T5071] [ 70.925746][ T5071] -> #1 (&type->i_mutex_dir_key#6){+.+.}-{3:3}: [ 70.934163][ T5071] down_write+0x3a/0x50 [ 70.938825][ T5071] path_openat+0x8bd/0x2c50 [ 70.943839][ T5071] do_filp_open+0x1de/0x430 [ 70.948887][ T5071] do_sys_openat2+0x176/0x1e0 [ 70.954083][ T5071] __x64_sys_openat+0x175/0x210 [ 70.959496][ T5071] do_syscall_64+0x40/0x110 [ 70.964567][ T5071] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 70.971025][ T5071] [ 70.971025][ T5071] -> #0 (sb_writers#9){.+.+}-{0:0}: [ 70.978420][ T5071] __lock_acquire+0x2433/0x3b20 [ 70.983811][ T5071] lock_acquire+0x1ae/0x520 [ 70.988923][ T5071] mnt_want_write_file+0x98/0x600 [ 70.994510][ T5071] reiserfs_ioctl+0x194/0x2e0 [ 70.999738][ T5071] __x64_sys_ioctl+0x18f/0x210 [ 71.005068][ T5071] do_syscall_64+0x40/0x110 [ 71.010102][ T5071] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 71.016587][ T5071] [ 71.016587][ T5071] other info that might help us debug this: [ 71.016587][ T5071] [ 71.026858][ T5071] Chain exists of: [ 71.026858][ T5071] sb_writers#9 --> &type->i_mutex_dir_key#6 --> &sbi->lock [ 71.026858][ T5071] [ 71.040360][ T5071] Possible unsafe locking scenario: [ 71.040360][ T5071] [ 71.047815][ T5071] CPU0 CPU1 [ 71.053170][ T5071] ---- ---- [ 71.058627][ T5071] lock(&sbi->lock); [ 71.062655][ T5071] lock(&type->i_mutex_dir_key#6); [ 71.071659][ T5071] lock(&sbi->lock); [ 71.078194][ T5071] rlock(sb_writers#9); [ 71.082432][ T5071] [ 71.082432][ T5071] *** DEADLOCK *** [ 71.082432][ T5071] [ 71.090652][ T5071] 1 lock held by syz-executor168/5071: [ 71.096094][ T5071] #0: ffff888065472090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x79/0x100 [ 71.105586][ T5071] [ 71.105586][ T5071] stack backtrace: [ 71.111467][ T5071] CPU: 0 PID: 5071 Comm: syz-executor168 Not tainted 6.7.0-rc8-syzkaller-00119-g1f874787ed9a #0 [ 71.121951][ T5071] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 71.132334][ T5071] Call Trace: [ 71.135621][ T5071] [ 71.138551][ T5071] dump_stack_lvl+0xd9/0x1b0 [ 71.143145][ T5071] check_noncircular+0x317/0x400 [ 71.148086][ T5071] ? print_circular_bug+0x5c0/0x5c0 [ 71.153284][ T5071] ? lockdep_lock+0xc6/0x200 [ 71.157876][ T5071] ? hlock_class+0x130/0x130 [ 71.162452][ T5071] __lock_acquire+0x2433/0x3b20 [ 71.167297][ T5071] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 71.173277][ T5071] ? rcu_is_watching+0x12/0xb0 [ 71.178053][ T5071] lock_acquire+0x1ae/0x520 [ 71.182597][ T5071] ? reiserfs_ioctl+0x194/0x2e0 [ 71.187535][ T5071] ? lock_sync+0x190/0x190 [ 71.191941][ T5071] ? make_vfsuid+0x108/0x160 [ 71.196694][ T5071] ? preempt_count_sub+0x160/0x160 [ 71.201795][ T5071] mnt_want_write_file+0x98/0x600 [ 71.206815][ T5071] ? reiserfs_ioctl+0x194/0x2e0 [ 71.211706][ T5071] reiserfs_ioctl+0x194/0x2e0 [ 71.216381][ T5071] ? reiserfs_fileattr_set+0x4f0/0x4f0 [ 71.221835][ T5071] __x64_sys_ioctl+0x18f/0x210 [ 71.226646][ T5071] do_syscall_64+0x40/0x110 [ 71.231182][ T5071] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 71.237077][ T5071] RIP: 0033:0x7f0cb0ca0639 [ 71.241564][ T5071] 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 [ 71.261206][ T5071] RSP: 002b:00007ffe08910fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 71.269693][ T5071] RAX: ffffffffffffffda RBX: 00007ffe08911188 RCX: 00007f0cb0ca0639 [ 71.277653][ T5071] RDX: 0000000000000000 RSI: 0000000040087602 RDI: 0000000000000004 [ 71.285649][ T5071] RBP: 00007f0cb0d14610 R08: 0000000000000000 R09: 00007ffe08911188 [ 71.293623][ T5071] R10: 0000000000001111 R11: 0000000000000246 R12: 0000000000000001 [ 71.301577][ T5071] R13: 00007ffe08911178 R14: 0000000000000001 R15: 0000000000000001 ioctl(4, FS_IOC_SETVERSION, 0) = -1 EFAULT (Bad address) exit_group(0) = ? +++ exited with 0 +++ [ 71.309924][ T5071]