./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1153797585 <...> Warning: Permanently added '10.128.0.57' (ECDSA) to the list of known hosts. execve("./syz-executor1153797585", ["./syz-executor1153797585"], 0x7ffe42f54bf0 /* 10 vars */) = 0 brk(NULL) = 0x5555572a7000 brk(0x5555572a7c40) = 0x5555572a7c40 arch_prctl(ARCH_SET_FS, 0x5555572a7300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1153797585", 4096) = 28 brk(0x5555572c8c40) = 0x5555572c8c40 brk(0x5555572c9000) = 0x5555572c9000 mprotect(0x7f875e0cc000, 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) = 0x7f8755c12000 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(0x7f8755c12000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 57.635046][ T4993] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4993 'syz-executor115' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 57.680561][ T4993] loop0: detected capacity change from 0 to 8192 [ 57.691566][ T4993] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 57.704629][ T4993] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 57.714152][ T4993] REISERFS (device loop0): using ordered data mode [ 57.720686][ T4993] reiserfs: using flush barriers 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 [ 57.726468][ T4993] 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.742979][ T4993] REISERFS (device loop0): checking transaction log (loop0) [ 57.751757][ T4993] REISERFS (device loop0): Using r5 hash to sort names [ 57.759236][ T4993] REISERFS warning (device loop0): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are! [ 57.772043][ T4993] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. close(4) = 0 [ 57.788231][ T4993] [ 57.790579][ T4993] ====================================================== [ 57.797600][ T4993] WARNING: possible circular locking dependency detected [ 57.804622][ T4993] 6.4.0-syzkaller-00082-gc0a572d9d32f #0 Not tainted [ 57.811312][ T4993] ------------------------------------------------------ [ 57.818311][ T4993] syz-executor115/4993 is trying to acquire lock: [ 57.824704][ T4993] ffff8880775b8980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 57.834569][ T4993] [ 57.834569][ T4993] but task is already holding lock: [ 57.841918][ T4993] ffff888147658090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 57.851474][ T4993] [ 57.851474][ T4993] which lock already depends on the new lock. [ 57.851474][ T4993] [ 57.861855][ T4993] [ 57.861855][ T4993] the existing dependency chain (in reverse order) is: [ 57.870846][ T4993] [ 57.870846][ T4993] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 57.878036][ T4993] lock_acquire+0x1e3/0x520 [ 57.883052][ T4993] __mutex_lock_common+0x1d8/0x2530 [ 57.888769][ T4993] mutex_lock_nested+0x1b/0x20 [ 57.894039][ T4993] reiserfs_write_lock+0x7a/0xd0 [ 57.899482][ T4993] reiserfs_mkdir+0x321/0x8f0 [ 57.904676][ T4993] open_xa_dir+0x2cd/0x610 [ 57.909615][ T4993] xattr_lookup+0x24/0x280 [ 57.914539][ T4993] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 57.920591][ T4993] reiserfs_security_write+0x157/0x1d0 [ 57.926558][ T4993] reiserfs_new_inode+0x1631/0x1d40 [ 57.932262][ T4993] reiserfs_mkdir+0x5b0/0x8f0 [ 57.937441][ T4993] vfs_mkdir+0x29d/0x450 [ 57.942189][ T4993] do_mkdirat+0x264/0x520 [ 57.947022][ T4993] __x64_sys_mkdir+0x6e/0x80 [ 57.952116][ T4993] do_syscall_64+0x41/0xc0 [ 57.957034][ T4993] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.963434][ T4993] [ 57.963434][ T4993] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 57.972031][ T4993] validate_chain+0x166b/0x58f0 [ 57.977397][ T4993] __lock_acquire+0x1316/0x2070 [ 57.983046][ T4993] lock_acquire+0x1e3/0x520 [ 57.988055][ T4993] down_write_nested+0x3d/0x50 [ 57.993325][ T4993] open_xa_dir+0x136/0x610 [ 57.998247][ T4993] xattr_lookup+0x24/0x280 [ 58.003169][ T4993] reiserfs_xattr_get+0xfd/0x570 [ 58.008610][ T4993] __vfs_getxattr+0x436/0x470 [ 58.013794][ T4993] smk_fetch+0xb1/0x140 [ 58.018464][ T4993] smack_d_instantiate+0x6d9/0xb40 [ 58.024088][ T4993] security_d_instantiate+0x9b/0xf0 [ 58.029801][ T4993] d_instantiate_new+0x65/0x120 [ 58.035161][ T4993] reiserfs_mkdir+0x769/0x8f0 [ 58.040341][ T4993] vfs_mkdir+0x29d/0x450 [ 58.045101][ T4993] do_mkdirat+0x264/0x520 [ 58.049934][ T4993] __x64_sys_mkdir+0x6e/0x80 [ 58.055027][ T4993] do_syscall_64+0x41/0xc0 [ 58.059947][ T4993] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.066347][ T4993] [ 58.066347][ T4993] other info that might help us debug this: [ 58.066347][ T4993] [ 58.076555][ T4993] Possible unsafe locking scenario: [ 58.076555][ T4993] [ 58.084076][ T4993] CPU0 CPU1 [ 58.089421][ T4993] ---- ---- [ 58.094815][ T4993] lock(&sbi->lock); [ 58.098783][ T4993] lock(&type->i_mutex_dir_key#6/3); [ 58.106665][ T4993] lock(&sbi->lock); [ 58.113147][ T4993] lock(&type->i_mutex_dir_key#6/3); [ 58.118511][ T4993] [ 58.118511][ T4993] *** DEADLOCK *** [ 58.118511][ T4993] [ 58.126635][ T4993] 3 locks held by syz-executor115/4993: [ 58.132156][ T4993] #0: ffff88807beb2460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 58.141292][ T4993] #1: ffff8880775b82e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 [ 58.151898][ T4993] #2: ffff888147658090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 58.161887][ T4993] [ 58.161887][ T4993] stack backtrace: [ 58.167753][ T4993] CPU: 1 PID: 4993 Comm: syz-executor115 Not tainted 6.4.0-syzkaller-00082-gc0a572d9d32f #0 [ 58.177792][ T4993] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 58.187827][ T4993] Call Trace: [ 58.191089][ T4993] [ 58.194002][ T4993] dump_stack_lvl+0x1e7/0x2d0 [ 58.198662][ T4993] ? nf_tcp_handle_invalid+0x650/0x650 [ 58.204106][ T4993] ? print_circular_bug+0x12b/0x1a0 [ 58.209294][ T4993] check_noncircular+0x2fe/0x3b0 [ 58.214218][ T4993] ? read_lock_is_recursive+0x20/0x20 [ 58.219578][ T4993] ? add_chain_block+0x850/0x850 [ 58.224504][ T4993] ? lockdep_lock+0x123/0x2b0 [ 58.229166][ T4993] ? check_path+0x40/0x40 [ 58.233482][ T4993] ? noop_count+0x30/0x30 [ 58.237795][ T4993] ? _find_first_zero_bit+0xd4/0x100 [ 58.243063][ T4993] validate_chain+0x166b/0x58f0 [ 58.247899][ T4993] ? stack_trace_save+0x1c0/0x1c0 [ 58.252921][ T4993] ? reacquire_held_locks+0x660/0x660 [ 58.258282][ T4993] ? look_up_lock_class+0x77/0x140 [ 58.263379][ T4993] ? register_lock_class+0x104/0x990 [ 58.268649][ T4993] ? __lock_acquire+0x1316/0x2070 [ 58.273659][ T4993] ? is_dynamic_key+0x1f0/0x1f0 [ 58.278494][ T4993] ? mark_lock+0x9a/0x340 [ 58.282813][ T4993] __lock_acquire+0x1316/0x2070 [ 58.287658][ T4993] lock_acquire+0x1e3/0x520 [ 58.292147][ T4993] ? open_xa_dir+0x136/0x610 [ 58.296725][ T4993] ? read_lock_is_recursive+0x20/0x20 [ 58.302085][ T4993] ? lockdep_hardirqs_on+0x98/0x140 [ 58.307268][ T4993] ? __might_sleep+0xc0/0xc0 [ 58.311847][ T4993] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 58.317723][ T4993] ? _raw_spin_unlock+0x40/0x40 [ 58.322559][ T4993] ? stack_trace_snprint+0xf0/0xf0 [ 58.327662][ T4993] down_write_nested+0x3d/0x50 [ 58.332408][ T4993] ? open_xa_dir+0x136/0x610 [ 58.336982][ T4993] open_xa_dir+0x136/0x610 [ 58.341383][ T4993] ? kasan_set_track+0x61/0x70 [ 58.346130][ T4993] ? kasan_set_track+0x4f/0x70 [ 58.350878][ T4993] ? security_d_instantiate+0x9b/0xf0 [ 58.356237][ T4993] ? listxattr_filler+0x500/0x500 [ 58.361249][ T4993] ? __x64_sys_mkdir+0x6e/0x80 [ 58.366008][ T4993] xattr_lookup+0x24/0x280 [ 58.370417][ T4993] reiserfs_xattr_get+0xfd/0x570 [ 58.375346][ T4993] ? security_get+0x6d/0xc0 [ 58.379839][ T4993] ? security_list+0x80/0x80 [ 58.384764][ T4993] __vfs_getxattr+0x436/0x470 [ 58.389433][ T4993] smk_fetch+0xb1/0x140 [ 58.393578][ T4993] smack_d_instantiate+0x6d9/0xb40 [ 58.398678][ T4993] ? smack_sem_semop+0x230/0x230 [ 58.403601][ T4993] ? __raw_spin_lock_init+0x45/0x100 [ 58.408876][ T4993] security_d_instantiate+0x9b/0xf0 [ 58.414063][ T4993] d_instantiate_new+0x65/0x120 [ 58.418896][ T4993] reiserfs_mkdir+0x769/0x8f0 [ 58.423560][ T4993] ? reiserfs_symlink+0x720/0x720 [ 58.428565][ T4993] ? from_kgid+0x1a7/0x730 [ 58.432973][ T4993] ? bpf_lsm_inode_mkdir+0x9/0x10 [ 58.437978][ T4993] ? security_inode_mkdir+0xb8/0x100 [ 58.443253][ T4993] vfs_mkdir+0x29d/0x450 [ 58.447482][ T4993] do_mkdirat+0x264/0x520 [ 58.451799][ T4993] ? vfs_mkdir+0x450/0x450 [ 58.456201][ T4993] ? getname_flags+0x1f0/0x4e0 [ 58.460951][ T4993] __x64_sys_mkdir+0x6e/0x80 [ 58.465525][ T4993] do_syscall_64+0x41/0xc0 [ 58.469926][ T4993] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.475806][ T4993] RIP: 0033:0x7f875e05e7a9 [ 58.480208][ T4993] 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.499798][ T4993] RSP: 002b:00007ffe3a638758 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 [ 58.508193][ T4993] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f875e05e7a9 [ 58.516150][ T4993] RDX: 00007f875e01ce23 RSI: 0000000000000076 RDI: 0000000020000300 [ 58.524105][ T4993] RBP: 00007f875e01e040 R08: 00000000000010e8 R09: 0000000000000000 [ 58.532057][ T4993] R10: 00007ffe3a638620 R11: 0000000000000246 R12: 00007f875e01e0d0 mkdir("./file0", 0166) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 58.540008][ T499