./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1792799774 <...> Warning: Permanently added '10.128.0.230' (ECDSA) to the list of known hosts. execve("./syz-executor1792799774", ["./syz-executor1792799774"], 0x7ffd4031b4e0 /* 10 vars */) = 0 brk(NULL) = 0x555555c6d000 brk(0x555555c6dc40) = 0x555555c6dc40 arch_prctl(ARCH_SET_FS, 0x555555c6d300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1792799774", 4096) = 28 brk(0x555555c8ec40) = 0x555555c8ec40 brk(0x555555c8f000) = 0x555555c8f000 mprotect(0x7faa0b19d000, 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) = 0x7faa02ce3000 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(0x7faa02ce3000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 54.560415][ T4992] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4992 'syz-executor179' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 54.604322][ T4992] loop0: detected capacity change from 0 to 8192 [ 54.615867][ T4992] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 54.628977][ T4992] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 54.638362][ T4992] REISERFS (device loop0): using ordered data mode [ 54.644990][ T4992] reiserfs: using flush barriers [ 54.651053][ T4992] 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 [ 54.667760][ T4992] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", MS_NOEXEC|MS_I_VERSION, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 54.707943][ T4992] REISERFS (device loop0): Using r5 hash to sort names [ 54.715826][ T4992] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 54.737837][ T4992] [ 54.740209][ T4992] ====================================================== [ 54.747232][ T4992] WARNING: possible circular locking dependency detected [ 54.754247][ T4992] 6.4.0-rc7-syzkaller-00226-ga92b7d26c743 #0 Not tainted [ 54.761241][ T4992] ------------------------------------------------------ [ 54.768237][ T4992] syz-executor179/4992 is trying to acquire lock: [ 54.774714][ T4992] ffff888078f88980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 54.784541][ T4992] [ 54.784541][ T4992] but task is already holding lock: [ 54.792137][ T4992] ffff888028f91090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 54.801679][ T4992] [ 54.801679][ T4992] which lock already depends on the new lock. [ 54.801679][ T4992] [ 54.812068][ T4992] [ 54.812068][ T4992] the existing dependency chain (in reverse order) is: [ 54.821066][ T4992] [ 54.821066][ T4992] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 54.828253][ T4992] lock_acquire+0x1e3/0x520 [ 54.833263][ T4992] __mutex_lock_common+0x1d8/0x2530 [ 54.838971][ T4992] mutex_lock_nested+0x1b/0x20 [ 54.844232][ T4992] reiserfs_write_lock+0x7a/0xd0 [ 54.849669][ T4992] reiserfs_mkdir+0x321/0x8f0 [ 54.854844][ T4992] open_xa_dir+0x2cd/0x610 [ 54.859760][ T4992] xattr_lookup+0x24/0x280 [ 54.864678][ T4992] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 54.870725][ T4992] reiserfs_security_write+0x157/0x1d0 [ 54.876687][ T4992] reiserfs_new_inode+0x1631/0x1d40 [ 54.882387][ T4992] reiserfs_create+0x3e7/0x6e0 [ 54.887650][ T4992] path_openat+0x13df/0x3170 [ 54.892742][ T4992] do_filp_open+0x234/0x490 [ 54.897749][ T4992] do_sys_openat2+0x13f/0x500 [ 54.902938][ T4992] __x64_sys_open+0x225/0x270 [ 54.908121][ T4992] do_syscall_64+0x41/0xc0 [ 54.913035][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 54.919429][ T4992] [ 54.919429][ T4992] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 54.928013][ T4992] validate_chain+0x166b/0x58f0 [ 54.933370][ T4992] __lock_acquire+0x1316/0x2070 [ 54.938719][ T4992] lock_acquire+0x1e3/0x520 [ 54.943723][ T4992] down_write_nested+0x3d/0x50 [ 54.948984][ T4992] open_xa_dir+0x136/0x610 [ 54.953905][ T4992] xattr_lookup+0x24/0x280 [ 54.958830][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 54.964270][ T4992] __vfs_getxattr+0x436/0x470 [ 54.969447][ T4992] smk_fetch+0xb1/0x140 [ 54.974105][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 54.979715][ T4992] security_d_instantiate+0x9b/0xf0 [ 54.985417][ T4992] d_instantiate_new+0x65/0x120 [ 54.990770][ T4992] reiserfs_create+0x5cf/0x6e0 [ 54.996036][ T4992] path_openat+0x13df/0x3170 [ 55.001132][ T4992] do_filp_open+0x234/0x490 [ 55.006135][ T4992] do_sys_openat2+0x13f/0x500 [ 55.011313][ T4992] __x64_sys_open+0x225/0x270 [ 55.016489][ T4992] do_syscall_64+0x41/0xc0 [ 55.021403][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.027800][ T4992] [ 55.027800][ T4992] other info that might help us debug this: [ 55.027800][ T4992] [ 55.038009][ T4992] Possible unsafe locking scenario: [ 55.038009][ T4992] [ 55.045438][ T4992] CPU0 CPU1 [ 55.050869][ T4992] ---- ---- [ 55.056233][ T4992] lock(&sbi->lock); [ 55.060193][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 55.068073][ T4992] lock(&sbi->lock); [ 55.074556][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 55.079913][ T4992] [ 55.079913][ T4992] *** DEADLOCK *** [ 55.079913][ T4992] [ 55.088031][ T4992] 3 locks held by syz-executor179/4992: [ 55.093553][ T4992] #0: ffff88807d700460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 55.102666][ T4992] #1: ffff888078f882e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 55.112833][ T4992] #2: ffff888028f91090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 55.122828][ T4992] [ 55.122828][ T4992] stack backtrace: [ 55.128697][ T4992] CPU: 1 PID: 4992 Comm: syz-executor179 Not tainted 6.4.0-rc7-syzkaller-00226-ga92b7d26c743 #0 [ 55.139086][ T4992] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 55.149121][ T4992] Call Trace: [ 55.152387][ T4992] [ 55.155313][ T4992] dump_stack_lvl+0x1e7/0x2d0 [ 55.159971][ T4992] ? nf_tcp_handle_invalid+0x650/0x650 [ 55.165497][ T4992] ? print_circular_bug+0x12b/0x1a0 [ 55.170676][ T4992] check_noncircular+0x2fe/0x3b0 [ 55.175593][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 55.180945][ T4992] ? add_chain_block+0x850/0x850 [ 55.185867][ T4992] ? lockdep_lock+0x123/0x2b0 [ 55.190525][ T4992] ? check_path+0x40/0x40 [ 55.194835][ T4992] ? noop_count+0x30/0x30 [ 55.199151][ T4992] ? _find_first_zero_bit+0xd4/0x100 [ 55.204432][ T4992] validate_chain+0x166b/0x58f0 [ 55.209266][ T4992] ? stack_trace_save+0x1c0/0x1c0 [ 55.214278][ T4992] ? reacquire_held_locks+0x660/0x660 [ 55.219638][ T4992] ? look_up_lock_class+0x77/0x140 [ 55.224731][ T4992] ? register_lock_class+0x104/0x990 [ 55.229996][ T4992] ? __lock_acquire+0x1316/0x2070 [ 55.235001][ T4992] ? is_dynamic_key+0x1f0/0x1f0 [ 55.239834][ T4992] ? mark_lock+0x9a/0x340 [ 55.244148][ T4992] __lock_acquire+0x1316/0x2070 [ 55.248988][ T4992] lock_acquire+0x1e3/0x520 [ 55.253474][ T4992] ? open_xa_dir+0x136/0x610 [ 55.258050][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 55.263403][ T4992] ? lockdep_hardirqs_on+0x98/0x140 [ 55.268581][ T4992] ? __might_sleep+0xc0/0xc0 [ 55.273153][ T4992] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 55.279028][ T4992] ? _raw_spin_unlock+0x40/0x40 [ 55.283860][ T4992] ? stack_trace_snprint+0xf0/0xf0 [ 55.288954][ T4992] down_write_nested+0x3d/0x50 [ 55.293711][ T4992] ? open_xa_dir+0x136/0x610 [ 55.298300][ T4992] open_xa_dir+0x136/0x610 [ 55.302697][ T4992] ? kasan_set_track+0x61/0x70 [ 55.307440][ T4992] ? kasan_set_track+0x4f/0x70 [ 55.312199][ T4992] ? security_d_instantiate+0x9b/0xf0 [ 55.317553][ T4992] ? listxattr_filler+0x500/0x500 [ 55.322558][ T4992] ? do_sys_openat2+0x13f/0x500 [ 55.327389][ T4992] ? __static_call_text_end+0x52188/0x52188 [ 55.333262][ T4992] xattr_lookup+0x24/0x280 [ 55.337660][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 55.342669][ T4992] ? security_get+0x6d/0xc0 [ 55.347152][ T4992] ? security_list+0x80/0x80 [ 55.351718][ T4992] __vfs_getxattr+0x436/0x470 [ 55.356391][ T4992] smk_fetch+0xb1/0x140 [ 55.360530][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 55.365626][ T4992] ? smack_sem_semop+0x230/0x230 [ 55.370543][ T4992] security_d_instantiate+0x9b/0xf0 [ 55.375724][ T4992] d_instantiate_new+0x65/0x120 [ 55.380554][ T4992] reiserfs_create+0x5cf/0x6e0 [ 55.385299][ T4992] ? reiserfs_lookup+0x580/0x580 [ 55.390219][ T4992] ? bpf_lsm_inode_create+0x9/0x10 [ 55.395308][ T4992] ? security_inode_create+0xb8/0x100 [ 55.400660][ T4992] ? reiserfs_lookup+0x580/0x580 [ 55.405589][ T4992] path_openat+0x13df/0x3170 [ 55.410169][ T4992] ? do_filp_open+0x490/0x490 [ 55.414863][ T4992] do_filp_open+0x234/0x490 [ 55.419347][ T4992] ? vfs_tmpfile+0x4a0/0x4a0 [ 55.423924][ T4992] ? _raw_spin_unlock+0x28/0x40 [ 55.428753][ T4992] ? alloc_fd+0x59c/0x640 [ 55.433065][ T4992] do_sys_openat2+0x13f/0x500 [ 55.437721][ T4992] ? print_irqtrace_events+0x220/0x220 [ 55.443164][ T4992] ? do_sys_open+0x230/0x230 [ 55.447747][ T4992] ? lockdep_hardirqs_on+0x98/0x140 [ 55.452928][ T4992] ? _raw_spin_unlock_irq+0x2e/0x50 [ 55.458105][ T4992] ? ptrace_notify+0x278/0x380 [ 55.462848][ T4992] __x64_sys_open+0x225/0x270 [ 55.467506][ T4992] ? do_sys_openat2+0x500/0x500 [ 55.472425][ T4992] ? syscall_enter_from_user_mode+0x32/0x230 [ 55.478385][ T4992] ? syscall_enter_from_user_mode+0x8c/0x230 [ 55.484345][ T4992] do_syscall_64+0x41/0xc0 [ 55.488745][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.494618][ T4992] RIP: 0033:0x7faa0b12f7a9 [ 55.499030][ T4992] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 55.518618][ T4992] RSP: 002b:00007ffec3493e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 55.527013][ T4992] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007faa0b12f7a9 [ 55.534963][ T4992] RDX: 0000000000000000 RSI: 0000000000149042 RDI: 0000000020000200 [ 55.542915][ T4992] RBP: 00007faa0b0ef040 R08: 00000000000010ee R09: 0000000000000000 [ 55.550866][ T4992] R10: 00007ffec3493d30 R11: 0000000000000246 R12: 00007faa0b0ef0d0 open("./bus", O_RDWR|O_CREAT|O_SYNC|O_LARGEFILE|O_NOATIME, 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 55.558818][ T4992] R13: 000000000