./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor670285406 <...> forked to background, child pid 4658 [ 31.104313][ T4659] 8021q: adding VLAN 0 to HW filter on device bond0 [ 31.117698][ T4659] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: [ 31.421350][ T4733] sshd (4733) used greatest stack depth: 20192 bytes left OK syzkaller Warning: Permanently added '10.128.10.8' (ECDSA) to the list of known hosts. execve("./syz-executor670285406", ["./syz-executor670285406"], 0x7fff708cb990 /* 10 vars */) = 0 brk(NULL) = 0x555556e7d000 brk(0x555556e7dc40) = 0x555556e7dc40 arch_prctl(ARCH_SET_FS, 0x555556e7d300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor670285406", 4096) = 27 brk(0x555556e9ec40) = 0x555556e9ec40 brk(0x555556e9f000) = 0x555556e9f000 mprotect(0x7fae5bedb000, 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) = 0x7fae53a21000 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(0x7fae53a21000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 58.415491][ T4989] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4989 'syz-executor670' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 58.465525][ T4989] loop0: detected capacity change from 0 to 8192 [ 58.478875][ T4989] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 58.492246][ T4989] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 58.502841][ T4989] REISERFS (device loop0): using ordered data mode [ 58.509589][ T4989] reiserfs: using flush barriers [ 58.516854][ T4989] 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 [ 58.534091][ T4989] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", MS_DIRSYNC, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 58.575677][ T4989] REISERFS (device loop0): Using r5 hash to sort names [ 58.583615][ T4989] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 58.610283][ T4989] [ 58.612800][ T4989] ====================================================== [ 58.619840][ T4989] WARNING: possible circular locking dependency detected [ 58.626901][ T4989] 6.3.0-syzkaller-13091-g3c4aa4434377 #0 Not tainted [ 58.633671][ T4989] ------------------------------------------------------ [ 58.640857][ T4989] syz-executor670/4989 is trying to acquire lock: [ 58.647445][ T4989] ffff888079b40980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 58.657444][ T4989] [ 58.657444][ T4989] but task is already holding lock: [ 58.665136][ T4989] ffff888015a94090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 58.675177][ T4989] [ 58.675177][ T4989] which lock already depends on the new lock. [ 58.675177][ T4989] [ 58.685689][ T4989] [ 58.685689][ T4989] the existing dependency chain (in reverse order) is: [ 58.694824][ T4989] [ 58.694824][ T4989] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 58.702040][ T4989] lock_acquire+0x1e3/0x520 [ 58.707081][ T4989] __mutex_lock_common+0x1d8/0x2530 [ 58.712833][ T4989] mutex_lock_nested+0x1b/0x20 [ 58.718662][ T4989] reiserfs_write_lock+0x7a/0xd0 [ 58.724228][ T4989] reiserfs_mkdir+0x321/0x8f0 [ 58.729426][ T4989] open_xa_dir+0x2cd/0x610 [ 58.734718][ T4989] xattr_lookup+0x24/0x280 [ 58.739675][ T4989] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 58.745737][ T4989] reiserfs_security_write+0x157/0x1d0 [ 58.751725][ T4989] reiserfs_new_inode+0x1631/0x1d40 [ 58.757628][ T4989] reiserfs_create+0x3e7/0x6e0 [ 58.764591][ T4989] path_openat+0x13df/0x3170 [ 58.769917][ T4989] do_filp_open+0x234/0x490 [ 58.774950][ T4989] do_sys_openat2+0x13f/0x500 [ 58.780146][ T4989] __x64_sys_creat+0x123/0x160 [ 58.785428][ T4989] do_syscall_64+0x41/0xc0 [ 58.790391][ T4989] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.796822][ T4989] [ 58.796822][ T4989] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 58.805670][ T4989] validate_chain+0x166b/0x58e0 [ 58.811204][ T4989] __lock_acquire+0x1295/0x2000 [ 58.816752][ T4989] lock_acquire+0x1e3/0x520 [ 58.821784][ T4989] down_write_nested+0x3d/0x50 [ 58.827151][ T4989] open_xa_dir+0x136/0x610 [ 58.832118][ T4989] xattr_lookup+0x24/0x280 [ 58.837044][ T4989] reiserfs_xattr_get+0xfd/0x570 [ 58.842509][ T4989] __vfs_getxattr+0x436/0x470 [ 58.847796][ T4989] smk_fetch+0xb1/0x140 [ 58.852469][ T4989] smack_d_instantiate+0x6d9/0xb40 [ 58.858091][ T4989] security_d_instantiate+0x9b/0xf0 [ 58.863888][ T4989] d_instantiate_new+0x65/0x120 [ 58.869241][ T4989] reiserfs_create+0x5cf/0x6e0 [ 58.874524][ T4989] path_openat+0x13df/0x3170 [ 58.879627][ T4989] do_filp_open+0x234/0x490 [ 58.884660][ T4989] do_sys_openat2+0x13f/0x500 [ 58.889887][ T4989] __x64_sys_creat+0x123/0x160 [ 58.895185][ T4989] do_syscall_64+0x41/0xc0 [ 58.900140][ T4989] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.906545][ T4989] [ 58.906545][ T4989] other info that might help us debug this: [ 58.906545][ T4989] [ 58.917187][ T4989] Possible unsafe locking scenario: [ 58.917187][ T4989] [ 58.924807][ T4989] CPU0 CPU1 [ 58.930261][ T4989] ---- ---- [ 58.935697][ T4989] lock(&sbi->lock); [ 58.939662][ T4989] lock(&type->i_mutex_dir_key#6/3); [ 58.947642][ T4989] lock(&sbi->lock); [ 58.954137][ T4989] lock(&type->i_mutex_dir_key#6/3); [ 58.959523][ T4989] [ 58.959523][ T4989] *** DEADLOCK *** [ 58.959523][ T4989] [ 58.967760][ T4989] 3 locks held by syz-executor670/4989: [ 58.973392][ T4989] #0: ffff88807db80460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 58.982514][ T4989] #1: ffff888079b402e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 58.992954][ T4989] #2: ffff888015a94090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 59.004819][ T4989] [ 59.004819][ T4989] stack backtrace: [ 59.010906][ T4989] CPU: 1 PID: 4989 Comm: syz-executor670 Not tainted 6.3.0-syzkaller-13091-g3c4aa4434377 #0 [ 59.022119][ T4989] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 59.032787][ T4989] Call Trace: [ 59.036084][ T4989] [ 59.039168][ T4989] dump_stack_lvl+0x1e7/0x2d0 [ 59.043863][ T4989] ? nf_tcp_handle_invalid+0x650/0x650 [ 59.050494][ T4989] ? print_circular_bug+0x12b/0x1a0 [ 59.056049][ T4989] check_noncircular+0x2fe/0x3b0 [ 59.061159][ T4989] ? read_lock_is_recursive+0x20/0x20 [ 59.066637][ T4989] ? add_chain_block+0x850/0x850 [ 59.071643][ T4989] ? lockdep_lock+0x123/0x2b0 [ 59.076507][ T4989] ? check_path+0x40/0x40 [ 59.080844][ T4989] ? noop_count+0x30/0x30 [ 59.085194][ T4989] ? _find_first_zero_bit+0xd4/0x100 [ 59.090652][ T4989] validate_chain+0x166b/0x58e0 [ 59.095543][ T4989] ? stack_trace_save+0x1c0/0x1c0 [ 59.100795][ T4989] ? reacquire_held_locks+0x660/0x660 [ 59.106303][ T4989] ? look_up_lock_class+0x77/0x140 [ 59.111480][ T4989] ? register_lock_class+0x104/0x990 [ 59.117039][ T4989] ? __lock_acquire+0x1295/0x2000 [ 59.122126][ T4989] ? is_dynamic_key+0x1f0/0x1f0 [ 59.127067][ T4989] ? mark_lock+0x9a/0x340 [ 59.131430][ T4989] __lock_acquire+0x1295/0x2000 [ 59.136472][ T4989] lock_acquire+0x1e3/0x520 [ 59.141163][ T4989] ? open_xa_dir+0x136/0x610 [ 59.145829][ T4989] ? read_lock_is_recursive+0x20/0x20 [ 59.151330][ T4989] ? lockdep_hardirqs_on+0x98/0x140 [ 59.156630][ T4989] ? __might_sleep+0xc0/0xc0 [ 59.161393][ T4989] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 59.167297][ T4989] ? _raw_spin_unlock+0x40/0x40 [ 59.172188][ T4989] ? stack_trace_snprint+0xf0/0xf0 [ 59.177411][ T4989] down_write_nested+0x3d/0x50 [ 59.182181][ T4989] ? open_xa_dir+0x136/0x610 [ 59.186763][ T4989] open_xa_dir+0x136/0x610 [ 59.191294][ T4989] ? kasan_set_track+0x61/0x70 [ 59.196124][ T4989] ? kasan_set_track+0x4f/0x70 [ 59.200913][ T4989] ? security_d_instantiate+0x9b/0xf0 [ 59.206315][ T4989] ? listxattr_filler+0x500/0x500 [ 59.211452][ T4989] ? do_sys_openat2+0x13f/0x500 [ 59.216306][ T4989] ? __static_call_text_end+0x68538/0x68538 [ 59.222191][ T4989] xattr_lookup+0x24/0x280 [ 59.226618][ T4989] reiserfs_xattr_get+0xfd/0x570 [ 59.231663][ T4989] ? security_get+0x6d/0xc0 [ 59.236270][ T4989] ? security_list+0x80/0x80 [ 59.240924][ T4989] __vfs_getxattr+0x436/0x470 [ 59.245611][ T4989] smk_fetch+0xb1/0x140 [ 59.249765][ T4989] smack_d_instantiate+0x6d9/0xb40 [ 59.255100][ T4989] ? smack_sem_semop+0x230/0x230 [ 59.260291][ T4989] security_d_instantiate+0x9b/0xf0 [ 59.266350][ T4989] d_instantiate_new+0x65/0x120 [ 59.271293][ T4989] reiserfs_create+0x5cf/0x6e0 [ 59.276156][ T4989] ? reiserfs_lookup+0x580/0x580 [ 59.281097][ T4989] ? bpf_lsm_inode_create+0x9/0x10 [ 59.286275][ T4989] ? security_inode_create+0xb8/0x100 [ 59.291658][ T4989] ? reiserfs_lookup+0x580/0x580 [ 59.296592][ T4989] path_openat+0x13df/0x3170 [ 59.301198][ T4989] ? do_filp_open+0x490/0x490 [ 59.305908][ T4989] do_filp_open+0x234/0x490 [ 59.310444][ T4989] ? vfs_tmpfile+0x4a0/0x4a0 [ 59.315039][ T4989] ? _raw_spin_unlock+0x28/0x40 [ 59.319882][ T4989] ? alloc_fd+0x59c/0x640 [ 59.324208][ T4989] do_sys_openat2+0x13f/0x500 [ 59.328872][ T4989] ? do_sys_open+0x230/0x230 [ 59.333535][ T4989] ? _raw_spin_unlock_irq+0x2e/0x50 [ 59.338825][ T4989] ? ptrace_notify+0x278/0x380 [ 59.343689][ T4989] __x64_sys_creat+0x123/0x160 [ 59.348465][ T4989] ? __x64_compat_sys_openat+0x290/0x290 [ 59.354099][ T4989] ? syscall_enter_from_user_mode+0x32/0x230 [ 59.360089][ T4989] ? syscall_enter_from_user_mode+0x8c/0x230 [ 59.366111][ T4989] do_syscall_64+0x41/0xc0 [ 59.370684][ T4989] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.376718][ T4989] RIP: 0033:0x7fae5be6d779 [ 59.381124][ T4989] 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 [ 59.400753][ T4989] RSP: 002b:00007fffa6eb1e48 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 59.409166][ T4989] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fae5be6d779 [ 59.417125][ T4989] RDX: 00007fae5be2bdf3 RSI: 0000000000000000 RDI: 0000000020000080 creat("./file0", 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 59.425099][ T4989] RBP: 00007fae5be2d010 R08: