./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3183036918 <...> Warning: Permanently added '10.128.1.166' (ECDSA) to the list of known hosts. execve("./syz-executor3183036918", ["./syz-executor3183036918"], 0x7fff07326450 /* 10 vars */) = 0 brk(NULL) = 0x555556595000 brk(0x555556595c40) = 0x555556595c40 arch_prctl(ARCH_SET_FS, 0x555556595300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3183036918", 4096) = 28 brk(0x5555565b6c40) = 0x5555565b6c40 brk(0x5555565b7000) = 0x5555565b7000 mprotect(0x7f5faf662000, 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) = 0x7f5fa71a8000 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(0x7f5fa71a8000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 57.693192][ T4992] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4992 'syz-executor318' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 57.736647][ T4992] loop0: detected capacity change from 0 to 8192 [ 57.748150][ T4992] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 57.761524][ T4992] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 57.771157][ T4992] REISERFS (device loop0): using ordered data mode [ 57.777827][ T4992] reiserfs: using flush barriers [ 57.784222][ 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 [ 57.800734][ T4992] REISERFS (device loop0): checking transaction log (loop0) [ 57.810135][ T4992] REISERFS (device loop0): Using r5 hash to sort names [ 57.817856][ T4992] 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 [ 57.831052][ T4992] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 57.856459][ T4992] [ 57.858824][ T4992] ====================================================== [ 57.865853][ T4992] WARNING: possible circular locking dependency detected [ 57.872871][ T4992] 6.4.0-rc7-syzkaller-00072-gdad9774deaf1 #0 Not tainted [ 57.879873][ T4992] ------------------------------------------------------ [ 57.886868][ T4992] syz-executor318/4992 is trying to acquire lock: [ 57.893257][ T4992] ffff888077f10980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 57.903090][ T4992] [ 57.903090][ T4992] but task is already holding lock: [ 57.910430][ T4992] ffff8880146f1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 57.919984][ T4992] [ 57.919984][ T4992] which lock already depends on the new lock. [ 57.919984][ T4992] [ 57.930370][ T4992] [ 57.930370][ T4992] the existing dependency chain (in reverse order) is: [ 57.939364][ T4992] [ 57.939364][ T4992] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 57.946580][ T4992] lock_acquire+0x1e3/0x520 [ 57.951681][ T4992] __mutex_lock_common+0x1d8/0x2530 [ 57.957411][ T4992] mutex_lock_nested+0x1b/0x20 [ 57.962681][ T4992] reiserfs_write_lock+0x7a/0xd0 [ 57.968129][ T4992] reiserfs_mkdir+0x321/0x8f0 [ 57.973309][ T4992] open_xa_dir+0x2cd/0x610 [ 57.978245][ T4992] xattr_lookup+0x24/0x280 [ 57.983167][ T4992] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 57.989225][ T4992] reiserfs_security_write+0x157/0x1d0 [ 57.995194][ T4992] reiserfs_new_inode+0x1631/0x1d40 [ 58.000917][ T4992] reiserfs_mkdir+0x5b0/0x8f0 [ 58.006223][ T4992] vfs_mkdir+0x29d/0x450 [ 58.010982][ T4992] do_mkdirat+0x264/0x520 [ 58.015825][ T4992] __x64_sys_mkdir+0x6e/0x80 [ 58.020922][ T4992] do_syscall_64+0x41/0xc0 [ 58.025845][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.032246][ T4992] [ 58.032246][ T4992] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 58.040932][ T4992] validate_chain+0x166b/0x58f0 [ 58.046292][ T4992] __lock_acquire+0x1316/0x2070 [ 58.051653][ T4992] lock_acquire+0x1e3/0x520 [ 58.056664][ T4992] down_write_nested+0x3d/0x50 [ 58.061937][ T4992] open_xa_dir+0x136/0x610 [ 58.066861][ T4992] xattr_lookup+0x24/0x280 [ 58.071781][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 58.077248][ T4992] __vfs_getxattr+0x436/0x470 [ 58.082449][ T4992] smk_fetch+0xb1/0x140 [ 58.087122][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 58.092752][ T4992] security_d_instantiate+0x9b/0xf0 [ 58.098461][ T4992] d_instantiate_new+0x65/0x120 [ 58.103814][ T4992] reiserfs_mkdir+0x769/0x8f0 [ 58.108999][ T4992] vfs_mkdir+0x29d/0x450 [ 58.113756][ T4992] do_mkdirat+0x264/0x520 [ 58.118597][ T4992] __x64_sys_mkdir+0x6e/0x80 [ 58.123690][ T4992] do_syscall_64+0x41/0xc0 [ 58.128608][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.135019][ T4992] [ 58.135019][ T4992] other info that might help us debug this: [ 58.135019][ T4992] [ 58.145229][ T4992] Possible unsafe locking scenario: [ 58.145229][ T4992] [ 58.152748][ T4992] CPU0 CPU1 [ 58.158095][ T4992] ---- ---- [ 58.163441][ T4992] lock(&sbi->lock); [ 58.167409][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 58.175381][ T4992] lock(&sbi->lock); [ 58.181867][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 58.187235][ T4992] [ 58.187235][ T4992] *** DEADLOCK *** [ 58.187235][ T4992] [ 58.195359][ T4992] 3 locks held by syz-executor318/4992: [ 58.200889][ T4992] #0: ffff88807c442460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 58.210016][ T4992] #1: ffff888077f102e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 [ 58.220737][ T4992] #2: ffff8880146f1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 58.230729][ T4992] [ 58.230729][ T4992] stack backtrace: [ 58.236596][ T4992] CPU: 0 PID: 4992 Comm: syz-executor318 Not tainted 6.4.0-rc7-syzkaller-00072-gdad9774deaf1 #0 [ 58.246988][ T4992] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 58.257027][ T4992] Call Trace: [ 58.260291][ T4992] [ 58.263211][ T4992] dump_stack_lvl+0x1e7/0x2d0 [ 58.267878][ T4992] ? nf_tcp_handle_invalid+0x650/0x650 [ 58.273334][ T4992] ? print_circular_bug+0x12b/0x1a0 [ 58.278532][ T4992] check_noncircular+0x2fe/0x3b0 [ 58.283457][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 58.288817][ T4992] ? add_chain_block+0x850/0x850 [ 58.293743][ T4992] ? lockdep_lock+0x123/0x2b0 [ 58.298410][ T4992] ? check_path+0x40/0x40 [ 58.302730][ T4992] ? noop_count+0x30/0x30 [ 58.307050][ T4992] ? _find_first_zero_bit+0xd4/0x100 [ 58.312337][ T4992] validate_chain+0x166b/0x58f0 [ 58.317179][ T4992] ? stack_trace_save+0x1c0/0x1c0 [ 58.322198][ T4992] ? reacquire_held_locks+0x660/0x660 [ 58.327563][ T4992] ? look_up_lock_class+0x77/0x140 [ 58.332662][ T4992] ? register_lock_class+0x104/0x990 [ 58.337938][ T4992] ? __lock_acquire+0x1316/0x2070 [ 58.342949][ T4992] ? is_dynamic_key+0x1f0/0x1f0 [ 58.347793][ T4992] ? mark_lock+0x9a/0x340 [ 58.352111][ T4992] __lock_acquire+0x1316/0x2070 [ 58.356957][ T4992] lock_acquire+0x1e3/0x520 [ 58.361446][ T4992] ? open_xa_dir+0x136/0x610 [ 58.366028][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 58.371389][ T4992] ? lockdep_hardirqs_on+0x98/0x140 [ 58.376579][ T4992] ? __might_sleep+0xc0/0xc0 [ 58.381155][ T4992] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 58.387036][ T4992] ? _raw_spin_unlock+0x40/0x40 [ 58.391873][ T4992] ? stack_trace_snprint+0xf0/0xf0 [ 58.396977][ T4992] down_write_nested+0x3d/0x50 [ 58.401734][ T4992] ? open_xa_dir+0x136/0x610 [ 58.406312][ T4992] open_xa_dir+0x136/0x610 [ 58.410716][ T4992] ? kasan_set_track+0x61/0x70 [ 58.415468][ T4992] ? kasan_set_track+0x4f/0x70 [ 58.420221][ T4992] ? security_d_instantiate+0x9b/0xf0 [ 58.425670][ T4992] ? listxattr_filler+0x500/0x500 [ 58.430769][ T4992] ? __x64_sys_mkdir+0x6e/0x80 [ 58.435615][ T4992] xattr_lookup+0x24/0x280 [ 58.440020][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 58.444946][ T4992] ? security_get+0x6d/0xc0 [ 58.449435][ T4992] ? security_list+0x80/0x80 [ 58.454012][ T4992] __vfs_getxattr+0x436/0x470 [ 58.458696][ T4992] smk_fetch+0xb1/0x140 [ 58.462844][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 58.467946][ T4992] ? smack_sem_semop+0x230/0x230 [ 58.472870][ T4992] ? __raw_spin_lock_init+0x45/0x100 [ 58.478146][ T4992] security_d_instantiate+0x9b/0xf0 [ 58.483335][ T4992] d_instantiate_new+0x65/0x120 [ 58.488170][ T4992] reiserfs_mkdir+0x769/0x8f0 [ 58.492833][ T4992] ? reiserfs_symlink+0x720/0x720 [ 58.497852][ T4992] ? from_kgid+0x1a7/0x730 [ 58.502261][ T4992] ? bpf_lsm_inode_mkdir+0x9/0x10 [ 58.507267][ T4992] ? security_inode_mkdir+0xb8/0x100 [ 58.512624][ T4992] vfs_mkdir+0x29d/0x450 [ 58.516856][ T4992] do_mkdirat+0x264/0x520 [ 58.521181][ T4992] ? vfs_mkdir+0x450/0x450 [ 58.525585][ T4992] ? getname_flags+0x1f0/0x4e0 [ 58.530333][ T4992] __x64_sys_mkdir+0x6e/0x80 [ 58.534907][ T4992] do_syscall_64+0x41/0xc0 [ 58.539308][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.545187][ T4992] RIP: 0033:0x7f5faf5f4829 [ 58.549585][ 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 [ 58.569179][ T4992] RSP: 002b:00007ffe048a86c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 [ 58.577577][ T4992] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5faf5f4829 mkdir("./bus", 000) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 58.585533][ T4992] RDX: 00007f5faf5b2ea3 RSI: 000000000