./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2874053752 <...> forked to background, child pid 4663 [ 28.810242][ T4664] 8021q: adding VLAN 0 to HW filter on device bond0 [ 28.823776][ T4664] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: [ 29.161249][ T4742] sshd (4742) used greatest stack depth: 20160 bytes left OK syzkaller Warning: Permanently added '10.128.1.4' (ECDSA) to the list of known hosts. execve("./syz-executor2874053752", ["./syz-executor2874053752"], 0x7ffc818d69f0 /* 10 vars */) = 0 brk(NULL) = 0x55555580c000 brk(0x55555580cc40) = 0x55555580cc40 arch_prctl(ARCH_SET_FS, 0x55555580c300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2874053752", 4096) = 28 brk(0x55555582dc40) = 0x55555582dc40 brk(0x55555582e000) = 0x55555582e000 mprotect(0x7f89f7f6f000, 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) = 0x7f89efab5000 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(0x7f89efab5000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 55.997553][ T4994] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4994 'syz-executor287' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 56.042651][ T4994] loop0: detected capacity change from 0 to 8192 [ 56.053867][ T4994] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 56.067062][ T4994] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 56.076821][ T4994] REISERFS (device loop0): using ordered data mode [ 56.083313][ T4994] reiserfs: using flush barriers [ 56.089382][ 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 [ 56.105955][ T4994] REISERFS (device loop0): checking transaction log (loop0) [ 56.115257][ T4994] REISERFS (device loop0): Using r5 hash to sort names [ 56.122815][ 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 [ 56.135665][ T4994] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 56.153797][ T4994] [ 56.156149][ T4994] ====================================================== [ 56.163425][ T4994] WARNING: possible circular locking dependency detected [ 56.170435][ T4994] 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0 Not tainted [ 56.177434][ T4994] ------------------------------------------------------ [ 56.184424][ T4994] syz-executor287/4994 is trying to acquire lock: [ 56.190824][ T4994] ffff888074148980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 56.200695][ T4994] [ 56.200695][ T4994] but task is already holding lock: [ 56.208038][ T4994] ffff88807d04a090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 56.217585][ T4994] [ 56.217585][ T4994] which lock already depends on the new lock. [ 56.217585][ T4994] [ 56.227961][ T4994] [ 56.227961][ T4994] the existing dependency chain (in reverse order) is: [ 56.236954][ T4994] [ 56.236954][ T4994] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 56.244139][ T4994] lock_acquire+0x1e3/0x520 [ 56.249146][ T4994] __mutex_lock_common+0x1d8/0x2530 [ 56.254864][ T4994] mutex_lock_nested+0x1b/0x20 [ 56.260140][ T4994] reiserfs_write_lock+0x7a/0xd0 [ 56.265597][ T4994] reiserfs_mkdir+0x321/0x8f0 [ 56.270778][ T4994] open_xa_dir+0x2cd/0x610 [ 56.275697][ T4994] xattr_lookup+0x24/0x280 [ 56.280619][ T4994] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 56.286670][ T4994] reiserfs_security_write+0x157/0x1d0 [ 56.292633][ T4994] reiserfs_new_inode+0x1631/0x1d40 [ 56.298333][ T4994] reiserfs_mkdir+0x5b0/0x8f0 [ 56.303509][ T4994] vfs_mkdir+0x29d/0x450 [ 56.308252][ T4994] do_mkdirat+0x264/0x520 [ 56.313082][ T4994] __x64_sys_mkdir+0x6e/0x80 [ 56.318173][ T4994] do_syscall_64+0x41/0xc0 [ 56.323090][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.329484][ T4994] [ 56.329484][ T4994] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 56.338068][ T4994] validate_chain+0x166b/0x58f0 [ 56.343422][ T4994] __lock_acquire+0x1316/0x2070 [ 56.348776][ T4994] lock_acquire+0x1e3/0x520 [ 56.353779][ T4994] down_write_nested+0x3d/0x50 [ 56.359045][ T4994] open_xa_dir+0x136/0x610 [ 56.363974][ T4994] xattr_lookup+0x24/0x280 [ 56.368890][ T4994] reiserfs_xattr_get+0xfd/0x570 [ 56.374328][ T4994] __vfs_getxattr+0x436/0x470 [ 56.379507][ T4994] smk_fetch+0xb1/0x140 [ 56.384171][ T4994] smack_d_instantiate+0x6d9/0xb40 [ 56.389783][ T4994] security_d_instantiate+0x9b/0xf0 [ 56.395488][ T4994] d_instantiate_new+0x65/0x120 [ 56.400837][ T4994] reiserfs_mkdir+0x769/0x8f0 [ 56.406012][ T4994] vfs_mkdir+0x29d/0x450 [ 56.410750][ T4994] do_mkdirat+0x264/0x520 [ 56.415578][ T4994] __x64_sys_mkdir+0x6e/0x80 [ 56.420667][ T4994] do_syscall_64+0x41/0xc0 [ 56.425582][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.431976][ T4994] [ 56.431976][ T4994] other info that might help us debug this: [ 56.431976][ T4994] [ 56.442181][ T4994] Possible unsafe locking scenario: [ 56.442181][ T4994] [ 56.449612][ T4994] CPU0 CPU1 [ 56.454955][ T4994] ---- ---- [ 56.460298][ T4994] lock(&sbi->lock); [ 56.464260][ T4994] lock(&type->i_mutex_dir_key#6/3); [ 56.472137][ T4994] lock(&sbi->lock); [ 56.478617][ T4994] lock(&type->i_mutex_dir_key#6/3); [ 56.483972][ T4994] [ 56.483972][ T4994] *** DEADLOCK *** [ 56.483972][ T4994] [ 56.492090][ T4994] 3 locks held by syz-executor287/4994: [ 56.497609][ T4994] #0: ffff8880166cc460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 56.506725][ T4994] #1: ffff8880741482e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 [ 56.517316][ T4994] #2: ffff88807d04a090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 56.527294][ T4994] [ 56.527294][ T4994] stack backtrace: [ 56.533159][ T4994] CPU: 0 PID: 4994 Comm: syz-executor287 Not tainted 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0 [ 56.543545][ T4994] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 56.553577][ T4994] Call Trace: [ 56.556839][ T4994] [ 56.559754][ T4994] dump_stack_lvl+0x1e7/0x2d0 [ 56.564411][ T4994] ? nf_tcp_handle_invalid+0x650/0x650 [ 56.569852][ T4994] ? print_circular_bug+0x12b/0x1a0 [ 56.575061][ T4994] check_noncircular+0x2fe/0x3b0 [ 56.579983][ T4994] ? add_chain_block+0x850/0x850 [ 56.584901][ T4994] ? lockdep_lock+0x123/0x2b0 [ 56.589562][ T4994] ? _find_first_zero_bit+0xd4/0x100 [ 56.594826][ T4994] validate_chain+0x166b/0x58f0 [ 56.599663][ T4994] ? deref_stack_reg+0x17c/0x210 [ 56.604589][ T4994] ? reacquire_held_locks+0x660/0x660 [ 56.609945][ T4994] ? look_up_lock_class+0x77/0x140 [ 56.615038][ T4994] ? register_lock_class+0x104/0x990 [ 56.620303][ T4994] ? __lock_acquire+0x1316/0x2070 [ 56.625308][ T4994] ? is_dynamic_key+0x1f0/0x1f0 [ 56.630139][ T4994] ? mark_lock+0x9a/0x340 [ 56.634448][ T4994] __lock_acquire+0x1316/0x2070 [ 56.639283][ T4994] lock_acquire+0x1e3/0x520 [ 56.643768][ T4994] ? open_xa_dir+0x136/0x610 [ 56.648342][ T4994] ? read_lock_is_recursive+0x20/0x20 [ 56.653699][ T4994] ? lockdep_hardirqs_on+0x98/0x140 [ 56.658879][ T4994] ? __might_sleep+0xc0/0xc0 [ 56.663452][ T4994] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 56.669328][ T4994] ? _raw_spin_unlock+0x40/0x40 [ 56.674159][ T4994] ? stack_trace_snprint+0xf0/0xf0 [ 56.679252][ T4994] ? free_unref_page_commit+0x20c/0x540 [ 56.684778][ T4994] down_write_nested+0x3d/0x50 [ 56.689523][ T4994] ? open_xa_dir+0x136/0x610 [ 56.694096][ T4994] open_xa_dir+0x136/0x610 [ 56.698491][ T4994] ? kasan_set_track+0x61/0x70 [ 56.703253][ T4994] ? kasan_set_track+0x4f/0x70 [ 56.707995][ T4994] ? security_d_instantiate+0x9b/0xf0 [ 56.713351][ T4994] ? listxattr_filler+0x500/0x500 [ 56.718354][ T4994] ? __x64_sys_mkdir+0x6e/0x80 [ 56.723098][ T4994] xattr_lookup+0x24/0x280 [ 56.727497][ T4994] reiserfs_xattr_get+0xfd/0x570 [ 56.732415][ T4994] ? security_get+0x6d/0xc0 [ 56.736902][ T4994] ? security_list+0x80/0x80 [ 56.741472][ T4994] __vfs_getxattr+0x436/0x470 [ 56.746134][ T4994] smk_fetch+0xb1/0x140 [ 56.750274][ T4994] smack_d_instantiate+0x6d9/0xb40 [ 56.755370][ T4994] ? smack_sem_semop+0x230/0x230 [ 56.760290][ T4994] ? __raw_spin_lock_init+0x45/0x100 [ 56.765558][ T4994] security_d_instantiate+0x9b/0xf0 [ 56.770738][ T4994] d_instantiate_new+0x65/0x120 [ 56.775569][ T4994] reiserfs_mkdir+0x769/0x8f0 [ 56.780231][ T4994] ? reiserfs_symlink+0x720/0x720 [ 56.785256][ T4994] ? from_kgid+0x1a7/0x730 [ 56.789667][ T4994] ? bpf_lsm_inode_mkdir+0x9/0x10 [ 56.794671][ T4994] ? security_inode_mkdir+0xb8/0x100 [ 56.799945][ T4994] vfs_mkdir+0x29d/0x450 [ 56.804171][ T4994] do_mkdirat+0x264/0x520 [ 56.808480][ T4994] ? vfs_mkdir+0x450/0x450 [ 56.812878][ T4994] ? getname_flags+0x1f0/0x4e0 [ 56.817621][ T4994] __x64_sys_mkdir+0x6e/0x80 [ 56.822189][ T4994] do_syscall_64+0x41/0xc0 [ 56.826583][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.832456][ T4994] RIP: 0033:0x7f89f7f01819 [ 56.836851][ 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 [ 56.856438][ T4994] RSP: 002b:00007ffd33122d08 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 [ 56.864829][ T4994] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f89f7f01819 [ 56.872780][ T4994] RDX: 00007f89f7ebfe93 RSI: 0000000000000000 RDI: 0000000020000040 [ 56.880732][ T4994] RBP: 00007f89f7ec10b0 R08: 00000000000010e8 R09: 0000000000000000 [ 56.888691][ T4994] R10: 00007ffd33122bd0 R11: 0000000000000246 R12: 00007f89f7ec1140 mkdir("./file1", 000) = 0 exit_group(0) = ? +++ exited with 0 +++