./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor649007764 <...> Warning: Permanently added '10.128.0.57' (ECDSA) to the list of known hosts. execve("./syz-executor649007764", ["./syz-executor649007764"], 0x7fff634bf9d0 /* 10 vars */) = 0 brk(NULL) = 0x555556c16000 brk(0x555556c16c40) = 0x555556c16c40 arch_prctl(ARCH_SET_FS, 0x555556c16300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor649007764", 4096) = 27 brk(0x555556c37c40) = 0x555556c37c40 brk(0x555556c38000) = 0x555556c38000 mprotect(0x7f88a438b000, 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) = 0x7f889bed1000 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(0x7f889bed1000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 69.426329][ T4994] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4994 'syz-executor649' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 69.480228][ T4994] loop0: detected capacity change from 0 to 8192 [ 69.493292][ T4994] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 69.506745][ T4994] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 69.516241][ T4994] REISERFS (device loop0): using ordered data mode [ 69.522743][ T4994] reiserfs: using flush barriers [ 69.529024][ T4994] 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 [ 69.545841][ T4994] REISERFS (device loop0): checking transaction log (loop0) [ 69.555394][ T4994] REISERFS (device loop0): Using r5 hash to sort names [ 69.563100][ T4994] REISERFS warning (device loop0): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are! mount("/dev/loop0", "./file0", "reiserfs", MS_DIRSYNC|MS_POSIXACL, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 69.576951][ T4994] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 69.596591][ T4994] [ 69.598961][ T4994] ====================================================== [ 69.606026][ T4994] WARNING: possible circular locking dependency detected [ 69.613063][ T4994] 6.4.0-rc6-syzkaller-00242-g1639fae5132b #0 Not tainted [ 69.620115][ T4994] ------------------------------------------------------ [ 69.627136][ T4994] syz-executor649/4994 is trying to acquire lock: [ 69.633539][ T4994] ffff888075e78980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 69.643398][ T4994] [ 69.643398][ T4994] but task is already holding lock: [ 69.650768][ T4994] ffff88802ce8f090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 69.660338][ T4994] [ 69.660338][ T4994] which lock already depends on the new lock. [ 69.660338][ T4994] [ 69.670731][ T4994] [ 69.670731][ T4994] the existing dependency chain (in reverse order) is: [ 69.679854][ T4994] [ 69.679854][ T4994] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 69.687065][ T4994] lock_acquire+0x1e3/0x520 [ 69.692095][ T4994] __mutex_lock_common+0x1d8/0x2530 [ 69.697822][ T4994] mutex_lock_nested+0x1b/0x20 [ 69.703099][ T4994] reiserfs_write_lock+0x7a/0xd0 [ 69.708556][ T4994] reiserfs_mkdir+0x321/0x8f0 [ 69.713750][ T4994] open_xa_dir+0x2cd/0x610 [ 69.718684][ T4994] xattr_lookup+0x24/0x280 [ 69.723612][ T4994] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 69.729675][ T4994] reiserfs_security_write+0x157/0x1d0 [ 69.735652][ T4994] reiserfs_new_inode+0x1631/0x1d40 [ 69.741364][ T4994] reiserfs_mkdir+0x5b0/0x8f0 [ 69.746555][ T4994] vfs_mkdir+0x29d/0x450 [ 69.751315][ T4994] do_mkdirat+0x264/0x520 [ 69.756162][ T4994] __x64_sys_mkdir+0x6e/0x80 [ 69.761281][ T4994] do_syscall_64+0x41/0xc0 [ 69.766223][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 69.772635][ T4994] [ 69.772635][ T4994] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 69.781242][ T4994] validate_chain+0x166b/0x58f0 [ 69.786616][ T4994] __lock_acquire+0x1316/0x2070 [ 69.791988][ T4994] lock_acquire+0x1e3/0x520 [ 69.797011][ T4994] down_write_nested+0x3d/0x50 [ 69.802288][ T4994] open_xa_dir+0x136/0x610 [ 69.807254][ T4994] xattr_lookup+0x24/0x280 [ 69.812196][ T4994] reiserfs_xattr_get+0xfd/0x570 [ 69.817650][ T4994] __vfs_getxattr+0x436/0x470 [ 69.822882][ T4994] smk_fetch+0xb1/0x140 [ 69.827571][ T4994] smack_d_instantiate+0x6d9/0xb40 [ 69.833211][ T4994] security_d_instantiate+0x9b/0xf0 [ 69.838941][ T4994] d_instantiate_new+0x65/0x120 [ 69.844319][ T4994] reiserfs_mkdir+0x769/0x8f0 [ 69.849517][ T4994] vfs_mkdir+0x29d/0x450 [ 69.854288][ T4994] do_mkdirat+0x264/0x520 [ 69.859151][ T4994] __x64_sys_mkdir+0x6e/0x80 [ 69.864261][ T4994] do_syscall_64+0x41/0xc0 [ 69.869195][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 69.875616][ T4994] [ 69.875616][ T4994] other info that might help us debug this: [ 69.875616][ T4994] [ 69.885841][ T4994] Possible unsafe locking scenario: [ 69.885841][ T4994] [ 69.893288][ T4994] CPU0 CPU1 [ 69.898647][ T4994] ---- ---- [ 69.904008][ T4994] lock(&sbi->lock); [ 69.908011][ T4994] lock(&type->i_mutex_dir_key#6/3); [ 69.915957][ T4994] lock(&sbi->lock); [ 69.922473][ T4994] lock(&type->i_mutex_dir_key#6/3); [ 69.927860][ T4994] [ 69.927860][ T4994] *** DEADLOCK *** [ 69.927860][ T4994] [ 69.936003][ T4994] 3 locks held by syz-executor649/4994: [ 69.941560][ T4994] #0: ffff88807c53e460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 69.950707][ T4994] #1: ffff888075e782e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 [ 69.961341][ T4994] #2: ffff88802ce8f090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 69.971368][ T4994] [ 69.971368][ T4994] stack backtrace: [ 69.977260][ T4994] CPU: 1 PID: 4994 Comm: syz-executor649 Not tainted 6.4.0-rc6-syzkaller-00242-g1639fae5132b #0 [ 69.987674][ T4994] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 69.997842][ T4994] Call Trace: [ 70.001115][ T4994] [ 70.004045][ T4994] dump_stack_lvl+0x1e7/0x2d0 [ 70.008734][ T4994] ? nf_tcp_handle_invalid+0x650/0x650 [ 70.014191][ T4994] ? print_circular_bug+0x12b/0x1a0 [ 70.019390][ T4994] check_noncircular+0x2fe/0x3b0 [ 70.024341][ T4994] ? read_lock_is_recursive+0x20/0x20 [ 70.029734][ T4994] ? add_chain_block+0x850/0x850 [ 70.034682][ T4994] ? lockdep_lock+0x123/0x2b0 [ 70.039360][ T4994] ? check_path+0x40/0x40 [ 70.043705][ T4994] ? noop_count+0x30/0x30 [ 70.048044][ T4994] ? _find_first_zero_bit+0xd4/0x100 [ 70.053344][ T4994] validate_chain+0x166b/0x58f0 [ 70.058240][ T4994] ? stack_trace_save+0x1c0/0x1c0 [ 70.063282][ T4994] ? reacquire_held_locks+0x660/0x660 [ 70.068690][ T4994] ? look_up_lock_class+0x77/0x140 [ 70.073808][ T4994] ? register_lock_class+0x104/0x990 [ 70.079108][ T4994] ? __lock_acquire+0x1316/0x2070 [ 70.084160][ T4994] ? is_dynamic_key+0x1f0/0x1f0 [ 70.089036][ T4994] ? mark_lock+0x9a/0x340 [ 70.093369][ T4994] __lock_acquire+0x1316/0x2070 [ 70.098235][ T4994] lock_acquire+0x1e3/0x520 [ 70.102737][ T4994] ? open_xa_dir+0x136/0x610 [ 70.107331][ T4994] ? read_lock_is_recursive+0x20/0x20 [ 70.112709][ T4994] ? lockdep_hardirqs_on+0x98/0x140 [ 70.117905][ T4994] ? __might_sleep+0xc0/0xc0 [ 70.122493][ T4994] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 70.128384][ T4994] ? _raw_spin_unlock+0x40/0x40 [ 70.133234][ T4994] ? stack_trace_snprint+0xf0/0xf0 [ 70.138352][ T4994] down_write_nested+0x3d/0x50 [ 70.143111][ T4994] ? open_xa_dir+0x136/0x610 [ 70.147703][ T4994] open_xa_dir+0x136/0x610 [ 70.152115][ T4994] ? kasan_set_track+0x61/0x70 [ 70.156880][ T4994] ? kasan_set_track+0x4f/0x70 [ 70.161654][ T4994] ? security_d_instantiate+0x9b/0xf0 [ 70.167026][ T4994] ? listxattr_filler+0x500/0x500 [ 70.172058][ T4994] ? __x64_sys_mkdir+0x6e/0x80 [ 70.176824][ T4994] xattr_lookup+0x24/0x280 [ 70.181240][ T4994] reiserfs_xattr_get+0xfd/0x570 [ 70.186178][ T4994] ? security_get+0x6d/0xc0 [ 70.190678][ T4994] ? security_list+0x80/0x80 [ 70.195271][ T4994] __vfs_getxattr+0x436/0x470 [ 70.199954][ T4994] smk_fetch+0xb1/0x140 [ 70.204116][ T4994] smack_d_instantiate+0x6d9/0xb40 [ 70.209265][ T4994] ? smack_sem_semop+0x230/0x230 [ 70.214203][ T4994] ? __raw_spin_lock_init+0x45/0x100 [ 70.219490][ T4994] security_d_instantiate+0x9b/0xf0 [ 70.224691][ T4994] d_instantiate_new+0x65/0x120 [ 70.229535][ T4994] reiserfs_mkdir+0x769/0x8f0 [ 70.234211][ T4994] ? reiserfs_symlink+0x720/0x720 [ 70.239227][ T4994] ? from_kgid+0x1a7/0x730 [ 70.243648][ T4994] ? bpf_lsm_inode_mkdir+0x9/0x10 [ 70.248665][ T4994] ? security_inode_mkdir+0xb8/0x100 [ 70.253955][ T4994] vfs_mkdir+0x29d/0x450 [ 70.258218][ T4994] do_mkdirat+0x264/0x520 [ 70.262540][ T4994] ? vfs_mkdir+0x450/0x450 [ 70.266954][ T4994] ? getname_flags+0x1f0/0x4e0 [ 70.271711][ T4994] __x64_sys_mkdir+0x6e/0x80 [ 70.276297][ T4994] do_syscall_64+0x41/0xc0 [ 70.280721][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 70.286621][ T4994] RIP: 0033:0x7f88a431d799 [ 70.291035][ T4994] 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 [ 70.310647][ T4994] RSP: 002b:00007ffe5a5c4428 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 [ 70.319066][ T4994] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f88a431d799 mkdir("./file0", 000) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 70.327035][ T4994] RDX: 00007f88a42dbe13 RSI: 0000000000000000 RDI: 0000000020