./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2512909961 <...> Warning: Permanently added '10.128.10.20' (ECDSA) to the list of known hosts. execve("./syz-executor2512909961", ["./syz-executor2512909961"], 0x7ffdee5883c0 /* 10 vars */) = 0 brk(NULL) = 0x555556075000 brk(0x555556075c40) = 0x555556075c40 arch_prctl(ARCH_SET_FS, 0x555556075300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2512909961", 4096) = 28 brk(0x555556096c40) = 0x555556096c40 brk(0x555556097000) = 0x555556097000 mprotect(0x7f21b2302000, 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) = 0x7f21a9e48000 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(0x7f21a9e48000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 69.995863][ T4998] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4998 'syz-executor251' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 70.046233][ T4998] loop0: detected capacity change from 0 to 8192 [ 70.058124][ T4998] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 70.071567][ T4998] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 70.080961][ T4998] REISERFS (device loop0): using ordered data mode [ 70.087467][ T4998] reiserfs: using flush barriers [ 70.093526][ T4998] 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.110175][ T4998] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", MS_DIRSYNC, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 70.158833][ T4998] REISERFS (device loop0): Using r5 hash to sort names [ 70.166747][ T4998] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 70.185066][ T4998] [ 70.187460][ T4998] ====================================================== [ 70.194512][ T4998] WARNING: possible circular locking dependency detected [ 70.201555][ T4998] 6.4.0-rc7-syzkaller #0 Not tainted [ 70.206853][ T4998] ------------------------------------------------------ [ 70.213877][ T4998] syz-executor251/4998 is trying to acquire lock: [ 70.220335][ T4998] ffff888078ff0980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 70.230190][ T4998] [ 70.230190][ T4998] but task is already holding lock: [ 70.237560][ T4998] ffff8880166e1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 70.247140][ T4998] [ 70.247140][ T4998] which lock already depends on the new lock. [ 70.247140][ T4998] [ 70.257530][ T4998] [ 70.257530][ T4998] the existing dependency chain (in reverse order) is: [ 70.266531][ T4998] [ 70.266531][ T4998] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 70.273754][ T4998] lock_acquire+0x1e3/0x520 [ 70.278783][ T4998] __mutex_lock_common+0x1d8/0x2530 [ 70.284505][ T4998] mutex_lock_nested+0x1b/0x20 [ 70.289817][ T4998] reiserfs_write_lock+0x7a/0xd0 [ 70.295275][ T4998] reiserfs_mkdir+0x321/0x8f0 [ 70.300464][ T4998] open_xa_dir+0x2cd/0x610 [ 70.305401][ T4998] xattr_lookup+0x24/0x280 [ 70.310358][ T4998] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 70.316433][ T4998] reiserfs_security_write+0x157/0x1d0 [ 70.322421][ T4998] reiserfs_new_inode+0x1631/0x1d40 [ 70.328150][ T4998] reiserfs_create+0x3e7/0x6e0 [ 70.333449][ T4998] path_openat+0x13df/0x3170 [ 70.338565][ T4998] do_filp_open+0x234/0x490 [ 70.343588][ T4998] do_sys_openat2+0x13f/0x500 [ 70.348826][ T4998] __x64_sys_creat+0x123/0x160 [ 70.354146][ T4998] do_syscall_64+0x41/0xc0 [ 70.359088][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 70.365508][ T4998] [ 70.365508][ T4998] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 70.374123][ T4998] validate_chain+0x166b/0x58f0 [ 70.379501][ T4998] __lock_acquire+0x1316/0x2070 [ 70.384871][ T4998] lock_acquire+0x1e3/0x520 [ 70.389895][ T4998] down_write_nested+0x3d/0x50 [ 70.395177][ T4998] open_xa_dir+0x136/0x610 [ 70.400106][ T4998] xattr_lookup+0x24/0x280 [ 70.405040][ T4998] reiserfs_xattr_get+0xfd/0x570 [ 70.410490][ T4998] __vfs_getxattr+0x436/0x470 [ 70.415683][ T4998] smk_fetch+0xb1/0x140 [ 70.420356][ T4998] smack_d_instantiate+0x6d9/0xb40 [ 70.425979][ T4998] security_d_instantiate+0x9b/0xf0 [ 70.431697][ T4998] d_instantiate_new+0x65/0x120 [ 70.437165][ T4998] reiserfs_create+0x5cf/0x6e0 [ 70.442447][ T4998] path_openat+0x13df/0x3170 [ 70.447582][ T4998] do_filp_open+0x234/0x490 [ 70.452597][ T4998] do_sys_openat2+0x13f/0x500 [ 70.457787][ T4998] __x64_sys_creat+0x123/0x160 [ 70.463063][ T4998] do_syscall_64+0x41/0xc0 [ 70.467994][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 70.474399][ T4998] [ 70.474399][ T4998] other info that might help us debug this: [ 70.474399][ T4998] [ 70.484609][ T4998] Possible unsafe locking scenario: [ 70.484609][ T4998] [ 70.492047][ T4998] CPU0 CPU1 [ 70.497400][ T4998] ---- ---- [ 70.502748][ T4998] lock(&sbi->lock); [ 70.506717][ T4998] lock(&type->i_mutex_dir_key#6/3); [ 70.514606][ T4998] lock(&sbi->lock); [ 70.521101][ T4998] lock(&type->i_mutex_dir_key#6/3); [ 70.526476][ T4998] [ 70.526476][ T4998] *** DEADLOCK *** [ 70.526476][ T4998] [ 70.534602][ T4998] 3 locks held by syz-executor251/4998: [ 70.540135][ T4998] #0: ffff888076d62460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 70.549279][ T4998] #1: ffff888078ff02e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 70.559468][ T4998] #2: ffff8880166e1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 70.569575][ T4998] [ 70.569575][ T4998] stack backtrace: [ 70.575448][ T4998] CPU: 0 PID: 4998 Comm: syz-executor251 Not tainted 6.4.0-rc7-syzkaller #0 [ 70.584119][ T4998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 70.594165][ T4998] Call Trace: [ 70.597438][ T4998] [ 70.600360][ T4998] dump_stack_lvl+0x1e7/0x2d0 [ 70.605030][ T4998] ? nf_tcp_handle_invalid+0x650/0x650 [ 70.610483][ T4998] ? print_circular_bug+0x12b/0x1a0 [ 70.615680][ T4998] check_noncircular+0x2fe/0x3b0 [ 70.620617][ T4998] ? read_lock_is_recursive+0x20/0x20 [ 70.625986][ T4998] ? add_chain_block+0x850/0x850 [ 70.630919][ T4998] ? lockdep_lock+0x123/0x2b0 [ 70.635593][ T4998] ? check_path+0x40/0x40 [ 70.640007][ T4998] ? noop_count+0x30/0x30 [ 70.644332][ T4998] ? _find_first_zero_bit+0xd4/0x100 [ 70.649609][ T4998] validate_chain+0x166b/0x58f0 [ 70.654456][ T4998] ? stack_trace_save+0x1c0/0x1c0 [ 70.659510][ T4998] ? reacquire_held_locks+0x660/0x660 [ 70.664888][ T4998] ? look_up_lock_class+0x77/0x140 [ 70.670000][ T4998] ? register_lock_class+0x104/0x990 [ 70.675280][ T4998] ? __lock_acquire+0x1316/0x2070 [ 70.680298][ T4998] ? is_dynamic_key+0x1f0/0x1f0 [ 70.685147][ T4998] ? mark_lock+0x9a/0x340 [ 70.689482][ T4998] __lock_acquire+0x1316/0x2070 [ 70.694352][ T4998] lock_acquire+0x1e3/0x520 [ 70.698846][ T4998] ? open_xa_dir+0x136/0x610 [ 70.703530][ T4998] ? read_lock_is_recursive+0x20/0x20 [ 70.708895][ T4998] ? lockdep_hardirqs_on+0x98/0x140 [ 70.714093][ T4998] ? __might_sleep+0xc0/0xc0 [ 70.718684][ T4998] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 70.724576][ T4998] ? _raw_spin_unlock+0x40/0x40 [ 70.729427][ T4998] ? stack_trace_snprint+0xf0/0xf0 [ 70.734553][ T4998] down_write_nested+0x3d/0x50 [ 70.739306][ T4998] ? open_xa_dir+0x136/0x610 [ 70.743892][ T4998] open_xa_dir+0x136/0x610 [ 70.748305][ T4998] ? kasan_set_track+0x61/0x70 [ 70.753081][ T4998] ? kasan_set_track+0x4f/0x70 [ 70.757863][ T4998] ? security_d_instantiate+0x9b/0xf0 [ 70.763254][ T4998] ? listxattr_filler+0x500/0x500 [ 70.768269][ T4998] ? do_sys_openat2+0x13f/0x500 [ 70.773118][ T4998] ? __static_call_text_end+0x59188/0x59188 [ 70.779018][ T4998] xattr_lookup+0x24/0x280 [ 70.783453][ T4998] reiserfs_xattr_get+0xfd/0x570 [ 70.788397][ T4998] ? security_get+0x6d/0xc0 [ 70.792899][ T4998] ? security_list+0x80/0x80 [ 70.797484][ T4998] __vfs_getxattr+0x436/0x470 [ 70.802169][ T4998] smk_fetch+0xb1/0x140 [ 70.808178][ T4998] smack_d_instantiate+0x6d9/0xb40 [ 70.813286][ T4998] ? smack_sem_semop+0x230/0x230 [ 70.818218][ T4998] security_d_instantiate+0x9b/0xf0 [ 70.823414][ T4998] d_instantiate_new+0x65/0x120 [ 70.828258][ T4998] reiserfs_create+0x5cf/0x6e0 [ 70.833018][ T4998] ? reiserfs_lookup+0x580/0x580 [ 70.837949][ T4998] ? bpf_lsm_inode_create+0x9/0x10 [ 70.843050][ T4998] ? security_inode_create+0xb8/0x100 [ 70.848417][ T4998] ? reiserfs_lookup+0x580/0x580 [ 70.853350][ T4998] path_openat+0x13df/0x3170 [ 70.857956][ T4998] ? do_filp_open+0x490/0x490 [ 70.862629][ T4998] do_filp_open+0x234/0x490 [ 70.867125][ T4998] ? vfs_tmpfile+0x4a0/0x4a0 [ 70.871724][ T4998] ? _raw_spin_unlock+0x28/0x40 [ 70.876578][ T4998] ? alloc_fd+0x59c/0x640 [ 70.880909][ T4998] do_sys_openat2+0x13f/0x500 [ 70.885584][ T4998] ? do_sys_open+0x230/0x230 [ 70.890173][ T4998] ? _raw_spin_unlock_irq+0x2e/0x50 [ 70.895365][ T4998] ? ptrace_notify+0x278/0x380 [ 70.900150][ T4998] __x64_sys_creat+0x123/0x160 [ 70.904904][ T4998] ? __x64_compat_sys_openat+0x290/0x290 [ 70.910533][ T4998] ? syscall_enter_from_user_mode+0x32/0x230 [ 70.916514][ T4998] ? syscall_enter_from_user_mode+0x8c/0x230 [ 70.922490][ T4998] do_syscall_64+0x41/0xc0 [ 70.926899][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 70.932787][ T4998] RIP: 0033:0x7f21b2294789 [ 70.937195][ T4998] 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 creat("./bus", 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 70.956793][ T4998] RSP: 002b:00007fff3673d808 EFLAGS: 00000246