./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2747494793 <...> Warning: Permanently added '10.128.0.111' (ECDSA) to the list of known hosts. execve("./syz-executor2747494793", ["./syz-executor2747494793"], 0x7fff29985440 /* 10 vars */) = 0 brk(NULL) = 0x555556bd6000 brk(0x555556bd6c40) = 0x555556bd6c40 arch_prctl(ARCH_SET_FS, 0x555556bd6300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2747494793", 4096) = 28 brk(0x555556bf7c40) = 0x555556bf7c40 brk(0x555556bf8000) = 0x555556bf8000 mprotect(0x7ff8db832000, 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) = 0x7ff8d3378000 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(0x7ff8d3378000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 64.651696][ T4991] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4991 'syz-executor274' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file1", 0777) = 0 [ 64.707287][ T4991] loop0: detected capacity change from 0 to 8192 [ 64.720492][ T4991] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 64.733593][ T4991] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 64.743066][ T4991] REISERFS (device loop0): using ordered data mode [ 64.749628][ T4991] reiserfs: using flush barriers [ 64.756067][ T4991] 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 [ 64.772748][ T4991] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file1", "reiserfs", MS_NOEXEC|MS_DIRSYNC|MS_SILENT|MS_RELATIME, "") = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 64.821610][ T4991] REISERFS (device loop0): Using r5 hash to sort names [ 64.829646][ T4991] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 64.849220][ T4991] [ 64.851613][ T4991] ====================================================== [ 64.858653][ T4991] WARNING: possible circular locking dependency detected [ 64.865693][ T4991] 6.4.0-rc4-syzkaller-00031-g8b817fded42d #0 Not tainted [ 64.872734][ T4991] ------------------------------------------------------ [ 64.879762][ T4991] syz-executor274/4991 is trying to acquire lock: [ 64.886165][ T4991] ffff888074598980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 64.896078][ T4991] [ 64.896078][ T4991] but task is already holding lock: [ 64.903446][ T4991] ffff888015a86090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 64.913029][ T4991] [ 64.913029][ T4991] which lock already depends on the new lock. [ 64.913029][ T4991] [ 64.923422][ T4991] [ 64.923422][ T4991] the existing dependency chain (in reverse order) is: [ 64.932429][ T4991] [ 64.932429][ T4991] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 64.939636][ T4991] lock_acquire+0x1e3/0x520 [ 64.944661][ T4991] __mutex_lock_common+0x1d8/0x2530 [ 64.950394][ T4991] mutex_lock_nested+0x1b/0x20 [ 64.955681][ T4991] reiserfs_write_lock+0x7a/0xd0 [ 64.961137][ T4991] reiserfs_mkdir+0x321/0x8f0 [ 64.966332][ T4991] open_xa_dir+0x2cd/0x610 [ 64.971271][ T4991] xattr_lookup+0x24/0x280 [ 64.976221][ T4991] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 64.982290][ T4991] reiserfs_security_write+0x157/0x1d0 [ 64.988357][ T4991] reiserfs_new_inode+0x1631/0x1d40 [ 64.994074][ T4991] reiserfs_create+0x3e7/0x6e0 [ 64.999353][ T4991] path_openat+0x13df/0x3170 [ 65.004456][ T4991] do_filp_open+0x234/0x490 [ 65.009481][ T4991] do_sys_openat2+0x13f/0x500 [ 65.014677][ T4991] __x64_sys_openat+0x247/0x290 [ 65.020045][ T4991] do_syscall_64+0x41/0xc0 [ 65.024981][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.031389][ T4991] [ 65.031389][ T4991] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 65.039996][ T4991] validate_chain+0x166b/0x58f0 [ 65.045366][ T4991] __lock_acquire+0x1316/0x2070 [ 65.050733][ T4991] lock_acquire+0x1e3/0x520 [ 65.055761][ T4991] down_write_nested+0x3d/0x50 [ 65.061041][ T4991] open_xa_dir+0x136/0x610 [ 65.065982][ T4991] xattr_lookup+0x24/0x280 [ 65.070916][ T4991] reiserfs_xattr_get+0xfd/0x570 [ 65.076374][ T4991] __vfs_getxattr+0x436/0x470 [ 65.081584][ T4991] smk_fetch+0xb1/0x140 [ 65.086272][ T4991] smack_d_instantiate+0x6d9/0xb40 [ 65.091952][ T4991] security_d_instantiate+0x9b/0xf0 [ 65.097702][ T4991] d_instantiate_new+0x65/0x120 [ 65.103687][ T4991] reiserfs_create+0x5cf/0x6e0 [ 65.108983][ T4991] path_openat+0x13df/0x3170 [ 65.114121][ T4991] do_filp_open+0x234/0x490 [ 65.119153][ T4991] do_sys_openat2+0x13f/0x500 [ 65.124360][ T4991] __x64_sys_openat+0x247/0x290 [ 65.129737][ T4991] do_syscall_64+0x41/0xc0 [ 65.134680][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.141101][ T4991] [ 65.141101][ T4991] other info that might help us debug this: [ 65.141101][ T4991] [ 65.151322][ T4991] Possible unsafe locking scenario: [ 65.151322][ T4991] [ 65.158763][ T4991] CPU0 CPU1 [ 65.164131][ T4991] ---- ---- [ 65.169495][ T4991] lock(&sbi->lock); [ 65.173479][ T4991] lock(&type->i_mutex_dir_key#6/3); [ 65.181388][ T4991] lock(&sbi->lock); [ 65.187892][ T4991] lock(&type->i_mutex_dir_key#6/3); [ 65.193277][ T4991] [ 65.193277][ T4991] *** DEADLOCK *** [ 65.193277][ T4991] [ 65.201436][ T4991] 3 locks held by syz-executor274/4991: [ 65.206972][ T4991] #0: ffff88807db9a460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 65.216118][ T4991] #1: ffff8880745982e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 65.226311][ T4991] #2: ffff888015a86090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 65.236321][ T4991] [ 65.236321][ T4991] stack backtrace: [ 65.242202][ T4991] CPU: 1 PID: 4991 Comm: syz-executor274 Not tainted 6.4.0-rc4-syzkaller-00031-g8b817fded42d #0 [ 65.252604][ T4991] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 65.262652][ T4991] Call Trace: [ 65.265923][ T4991] [ 65.268850][ T4991] dump_stack_lvl+0x1e7/0x2d0 [ 65.273533][ T4991] ? nf_tcp_handle_invalid+0x650/0x650 [ 65.279002][ T4991] ? print_circular_bug+0x12b/0x1a0 [ 65.284219][ T4991] check_noncircular+0x2fe/0x3b0 [ 65.289173][ T4991] ? add_chain_block+0x850/0x850 [ 65.294128][ T4991] ? lockdep_lock+0x123/0x2b0 [ 65.298805][ T4991] ? check_path+0x40/0x40 [ 65.303133][ T4991] ? noop_count+0x30/0x30 [ 65.307457][ T4991] ? _find_first_zero_bit+0xd4/0x100 [ 65.312739][ T4991] validate_chain+0x166b/0x58f0 [ 65.317588][ T4991] ? reacquire_held_locks+0x660/0x660 [ 65.322968][ T4991] ? reacquire_held_locks+0x660/0x660 [ 65.328344][ T4991] ? look_up_lock_class+0x77/0x140 [ 65.333451][ T4991] ? register_lock_class+0x104/0x990 [ 65.338734][ T4991] ? __lock_acquire+0x1316/0x2070 [ 65.343758][ T4991] ? is_dynamic_key+0x1f0/0x1f0 [ 65.348609][ T4991] ? mark_lock+0x9a/0x340 [ 65.352958][ T4991] __lock_acquire+0x1316/0x2070 [ 65.357830][ T4991] lock_acquire+0x1e3/0x520 [ 65.362345][ T4991] ? open_xa_dir+0x136/0x610 [ 65.366942][ T4991] ? read_lock_is_recursive+0x20/0x20 [ 65.372321][ T4991] ? lockdep_hardirqs_on+0x98/0x140 [ 65.377534][ T4991] ? __might_sleep+0xc0/0xc0 [ 65.382142][ T4991] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 65.388120][ T4991] ? _raw_spin_unlock+0x40/0x40 [ 65.392969][ T4991] ? stack_trace_snprint+0xf0/0xf0 [ 65.398083][ T4991] down_write_nested+0x3d/0x50 [ 65.402845][ T4991] ? open_xa_dir+0x136/0x610 [ 65.407433][ T4991] open_xa_dir+0x136/0x610 [ 65.411943][ T4991] ? kasan_set_track+0x61/0x70 [ 65.417063][ T4991] ? kasan_set_track+0x4f/0x70 [ 65.421843][ T4991] ? security_d_instantiate+0x9b/0xf0 [ 65.427227][ T4991] ? listxattr_filler+0x500/0x500 [ 65.432259][ T4991] ? do_sys_openat2+0x13f/0x500 [ 65.437124][ T4991] ? __static_call_text_end+0x63f78/0x63f78 [ 65.443025][ T4991] xattr_lookup+0x24/0x280 [ 65.447529][ T4991] reiserfs_xattr_get+0xfd/0x570 [ 65.452470][ T4991] ? security_get+0x6d/0xc0 [ 65.456972][ T4991] ? security_list+0x80/0x80 [ 65.461561][ T4991] __vfs_getxattr+0x436/0x470 [ 65.466244][ T4991] smk_fetch+0xb1/0x140 [ 65.470403][ T4991] smack_d_instantiate+0x6d9/0xb40 [ 65.475516][ T4991] ? smack_sem_semop+0x230/0x230 [ 65.480472][ T4991] security_d_instantiate+0x9b/0xf0 [ 65.485691][ T4991] d_instantiate_new+0x65/0x120 [ 65.490559][ T4991] reiserfs_create+0x5cf/0x6e0 [ 65.495342][ T4991] ? reiserfs_lookup+0x580/0x580 [ 65.500292][ T4991] ? bpf_lsm_inode_create+0x9/0x10 [ 65.505403][ T4991] ? security_inode_create+0xb8/0x100 [ 65.510779][ T4991] ? reiserfs_lookup+0x580/0x580 [ 65.515723][ T4991] path_openat+0x13df/0x3170 [ 65.520333][ T4991] ? do_filp_open+0x490/0x490 [ 65.525024][ T4991] do_filp_open+0x234/0x490 [ 65.529536][ T4991] ? vfs_tmpfile+0x4a0/0x4a0 [ 65.534133][ T4991] ? _raw_spin_unlock+0x28/0x40 [ 65.538977][ T4991] ? alloc_fd+0x59c/0x640 [ 65.543321][ T4991] do_sys_openat2+0x13f/0x500 [ 65.547994][ T4991] ? print_irqtrace_events+0x220/0x220 [ 65.553455][ T4991] ? do_sys_open+0x230/0x230 [ 65.558045][ T4991] ? lockdep_hardirqs_on+0x98/0x140 [ 65.563240][ T4991] ? _raw_spin_unlock_irq+0x2e/0x50 [ 65.568520][ T4991] ? ptrace_notify+0x278/0x380 [ 65.573280][ T4991] __x64_sys_openat+0x247/0x290 [ 65.578133][ T4991] ? __ia32_sys_open+0x270/0x270 [ 65.583073][ T4991] ? syscall_enter_from_user_mode+0x32/0x230 [ 65.589055][ T4991] ? syscall_enter_from_user_mode+0x8c/0x230 [ 65.595639][ T4991] do_syscall_64+0x41/0xc0 [ 65.600061][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.605951][ T4991] RIP: 0033:0x7ff8db7c4799 [ 65.610359][ T4991] 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 [ 65.629963][ T4991] RSP: 002b:00007ffd5b6d0538 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 65.638368][ T4991] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff8db7c4799 [ 65.646333][ T4991] RDX: 000000000000275a RSI: 0000000020000000 RDI: 00000000ffffff9c [ 65.654296][ T4991] RBP: 00007ff8db784030 R08: 00000000000010fb R09: 0000000000000000 [ 65.662432][ T4991] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff8db7840c0 openat(AT_FDCWD, "pids.events", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 65.670484][ T4991] R13: 0000000000000000 R14: 0000000