./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor566560088 <...> DUID 00:04:d6:b0:09:ff:72:32:c6:5d:c0:56:b1:2d:70:06:fa:56 forked to background, child pid 4660 [ 38.468384][ T4661] 8021q: adding VLAN 0 to HW filter on device bond0 [ 38.488412][ T4661] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.219' (ECDSA) to the list of known hosts. execve("./syz-executor566560088", ["./syz-executor566560088"], 0x7ffde3d4ff90 /* 10 vars */) = 0 brk(NULL) = 0x555555b70000 brk(0x555555b70c40) = 0x555555b70c40 arch_prctl(ARCH_SET_FS, 0x555555b70300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor566560088", 4096) = 27 brk(0x555555b91c40) = 0x555555b91c40 brk(0x555555b92000) = 0x555555b92000 mprotect(0x7f0bbf388000, 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) = 0x7f0bb6ece000 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(0x7f0bb6ece000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 66.328929][ T4994] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4994 'syz-executor566' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 66.383146][ T4994] loop0: detected capacity change from 0 to 8192 [ 66.395924][ T4994] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 66.409078][ T4994] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 66.418729][ T4994] REISERFS (device loop0): using ordered data mode [ 66.425474][ T4994] reiserfs: using flush barriers [ 66.431897][ 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 [ 66.448687][ T4994] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", 0, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 66.503147][ T4994] REISERFS (device loop0): Using r5 hash to sort names [ 66.511211][ T4994] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 66.529191][ T4994] [ 66.531656][ T4994] ====================================================== [ 66.538697][ T4994] WARNING: possible circular locking dependency detected [ 66.545756][ T4994] 6.4.0-rc5-syzkaller-00017-ga27648c74210 #0 Not tainted [ 66.552889][ T4994] ------------------------------------------------------ [ 66.559923][ T4994] syz-executor566/4994 is trying to acquire lock: [ 66.566348][ T4994] ffff888078ae0980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 66.576311][ T4994] [ 66.576311][ T4994] but task is already holding lock: [ 66.583753][ T4994] ffff88801ebe7090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 66.593332][ T4994] [ 66.593332][ T4994] which lock already depends on the new lock. [ 66.593332][ T4994] [ 66.603732][ T4994] [ 66.603732][ T4994] the existing dependency chain (in reverse order) is: [ 66.612739][ T4994] [ 66.612739][ T4994] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 66.619956][ T4994] lock_acquire+0x1e3/0x520 [ 66.624988][ T4994] __mutex_lock_common+0x1d8/0x2530 [ 66.630730][ T4994] mutex_lock_nested+0x1b/0x20 [ 66.636016][ T4994] reiserfs_write_lock+0x7a/0xd0 [ 66.641479][ T4994] reiserfs_mkdir+0x321/0x8f0 [ 66.646673][ T4994] open_xa_dir+0x2cd/0x610 [ 66.651607][ T4994] xattr_lookup+0x24/0x280 [ 66.656546][ T4994] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 66.662612][ T4994] reiserfs_security_write+0x157/0x1d0 [ 66.668597][ T4994] reiserfs_new_inode+0x1631/0x1d40 [ 66.674326][ T4994] reiserfs_create+0x3e7/0x6e0 [ 66.679645][ T4994] path_openat+0x13df/0x3170 [ 66.684754][ T4994] do_filp_open+0x234/0x490 [ 66.689773][ T4994] do_sys_openat2+0x13f/0x500 [ 66.694971][ T4994] __x64_sys_openat+0x247/0x290 [ 66.700341][ T4994] do_syscall_64+0x41/0xc0 [ 66.705283][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.711694][ T4994] [ 66.711694][ T4994] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 66.720305][ T4994] validate_chain+0x166b/0x58f0 [ 66.725682][ T4994] __lock_acquire+0x1316/0x2070 [ 66.731052][ T4994] lock_acquire+0x1e3/0x520 [ 66.736077][ T4994] down_write_nested+0x3d/0x50 [ 66.741361][ T4994] open_xa_dir+0x136/0x610 [ 66.746324][ T4994] xattr_lookup+0x24/0x280 [ 66.751259][ T4994] reiserfs_xattr_get+0xfd/0x570 [ 66.756716][ T4994] __vfs_getxattr+0x436/0x470 [ 66.761929][ T4994] smk_fetch+0xb1/0x140 [ 66.766606][ T4994] smack_d_instantiate+0x6d9/0xb40 [ 66.772235][ T4994] security_d_instantiate+0x9b/0xf0 [ 66.777976][ T4994] d_instantiate_new+0x65/0x120 [ 66.783345][ T4994] reiserfs_create+0x5cf/0x6e0 [ 66.788628][ T4994] path_openat+0x13df/0x3170 [ 66.793738][ T4994] do_filp_open+0x234/0x490 [ 66.798758][ T4994] do_sys_openat2+0x13f/0x500 [ 66.803959][ T4994] __x64_sys_openat+0x247/0x290 [ 66.809333][ T4994] do_syscall_64+0x41/0xc0 [ 66.814282][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.820696][ T4994] [ 66.820696][ T4994] other info that might help us debug this: [ 66.820696][ T4994] [ 66.830920][ T4994] Possible unsafe locking scenario: [ 66.830920][ T4994] [ 66.838364][ T4994] CPU0 CPU1 [ 66.843724][ T4994] ---- ---- [ 66.849096][ T4994] lock(&sbi->lock); [ 66.853079][ T4994] lock(&type->i_mutex_dir_key#6/3); [ 66.860983][ T4994] lock(&sbi->lock); [ 66.867487][ T4994] lock(&type->i_mutex_dir_key#6/3); [ 66.872870][ T4994] [ 66.872870][ T4994] *** DEADLOCK *** [ 66.872870][ T4994] [ 66.881007][ T4994] 3 locks held by syz-executor566/4994: [ 66.886544][ T4994] #0: ffff88807d7ba460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 66.895689][ T4994] #1: ffff888078ae02e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 66.905880][ T4994] #2: ffff88801ebe7090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 66.915901][ T4994] [ 66.915901][ T4994] stack backtrace: [ 66.921793][ T4994] CPU: 1 PID: 4994 Comm: syz-executor566 Not tainted 6.4.0-rc5-syzkaller-00017-ga27648c74210 #0 [ 66.932207][ T4994] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 66.942259][ T4994] Call Trace: [ 66.945534][ T4994] [ 66.948462][ T4994] dump_stack_lvl+0x1e7/0x2d0 [ 66.953146][ T4994] ? nf_tcp_handle_invalid+0x650/0x650 [ 66.958611][ T4994] ? print_circular_bug+0x12b/0x1a0 [ 66.963950][ T4994] check_noncircular+0x2fe/0x3b0 [ 66.968913][ T4994] ? read_lock_is_recursive+0x20/0x20 [ 66.974307][ T4994] ? add_chain_block+0x850/0x850 [ 66.979259][ T4994] ? lockdep_lock+0x123/0x2b0 [ 66.983940][ T4994] ? check_path+0x40/0x40 [ 66.988275][ T4994] ? noop_count+0x30/0x30 [ 66.992606][ T4994] ? _find_first_zero_bit+0xd4/0x100 [ 66.997893][ T4994] validate_chain+0x166b/0x58f0 [ 67.002747][ T4994] ? stack_trace_save+0x1c0/0x1c0 [ 67.007792][ T4994] ? reacquire_held_locks+0x660/0x660 [ 67.013169][ T4994] ? look_up_lock_class+0x77/0x140 [ 67.018284][ T4994] ? register_lock_class+0x104/0x990 [ 67.023569][ T4994] ? __lock_acquire+0x1316/0x2070 [ 67.028596][ T4994] ? is_dynamic_key+0x1f0/0x1f0 [ 67.033450][ T4994] ? mark_lock+0x9a/0x340 [ 67.037787][ T4994] __lock_acquire+0x1316/0x2070 [ 67.042646][ T4994] lock_acquire+0x1e3/0x520 [ 67.047151][ T4994] ? open_xa_dir+0x136/0x610 [ 67.051746][ T4994] ? read_lock_is_recursive+0x20/0x20 [ 67.057121][ T4994] ? lockdep_hardirqs_on+0x98/0x140 [ 67.062319][ T4994] ? __might_sleep+0xc0/0xc0 [ 67.066917][ T4994] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 67.072810][ T4994] ? _raw_spin_unlock+0x40/0x40 [ 67.077658][ T4994] ? stack_trace_snprint+0xf0/0xf0 [ 67.082778][ T4994] down_write_nested+0x3d/0x50 [ 67.087542][ T4994] ? open_xa_dir+0x136/0x610 [ 67.092135][ T4994] open_xa_dir+0x136/0x610 [ 67.096552][ T4994] ? kasan_set_track+0x61/0x70 [ 67.101312][ T4994] ? kasan_set_track+0x4f/0x70 [ 67.106096][ T4994] ? security_d_instantiate+0x9b/0xf0 [ 67.111500][ T4994] ? listxattr_filler+0x500/0x500 [ 67.116623][ T4994] ? do_sys_openat2+0x13f/0x500 [ 67.121478][ T4994] ? __static_call_text_end+0x5ffa8/0x5ffa8 [ 67.127373][ T4994] xattr_lookup+0x24/0x280 [ 67.131901][ T4994] reiserfs_xattr_get+0xfd/0x570 [ 67.136852][ T4994] ? security_get+0x6d/0xc0 [ 67.141447][ T4994] ? security_list+0x80/0x80 [ 67.146035][ T4994] __vfs_getxattr+0x436/0x470 [ 67.150740][ T4994] smk_fetch+0xb1/0x140 [ 67.154902][ T4994] smack_d_instantiate+0x6d9/0xb40 [ 67.160026][ T4994] ? smack_sem_semop+0x230/0x230 [ 67.164968][ T4994] security_d_instantiate+0x9b/0xf0 [ 67.170176][ T4994] d_instantiate_new+0x65/0x120 [ 67.175048][ T4994] reiserfs_create+0x5cf/0x6e0 [ 67.179840][ T4994] ? reiserfs_lookup+0x580/0x580 [ 67.184793][ T4994] ? bpf_lsm_inode_create+0x9/0x10 [ 67.189912][ T4994] ? security_inode_create+0xb8/0x100 [ 67.195285][ T4994] ? reiserfs_lookup+0x580/0x580 [ 67.200221][ T4994] path_openat+0x13df/0x3170 [ 67.204828][ T4994] ? do_filp_open+0x490/0x490 [ 67.209509][ T4994] do_filp_open+0x234/0x490 [ 67.214010][ T4994] ? vfs_tmpfile+0x4a0/0x4a0 [ 67.218608][ T4994] ? _raw_spin_unlock+0x28/0x40 [ 67.223457][ T4994] ? alloc_fd+0x59c/0x640 [ 67.227797][ T4994] do_sys_openat2+0x13f/0x500 [ 67.232479][ T4994] ? print_irqtrace_events+0x220/0x220 [ 67.237953][ T4994] ? do_sys_open+0x230/0x230 [ 67.242544][ T4994] ? lockdep_hardirqs_on+0x98/0x140 [ 67.247741][ T4994] ? _raw_spin_unlock_irq+0x2e/0x50 [ 67.252936][ T4994] ? ptrace_notify+0x278/0x380 [ 67.257701][ T4994] __x64_sys_openat+0x247/0x290 [ 67.262555][ T4994] ? __ia32_sys_open+0x270/0x270 [ 67.267502][ T4994] ? syscall_enter_from_user_mode+0x32/0x230 [ 67.273485][ T4994] ? syscall_enter_from_user_mode+0x8c/0x230 [ 67.279467][ T4994] do_syscall_64+0x41/0xc0 [ 67.283899][ T4994] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 67.289792][ T4994] RIP: 0033:0x7f0bbf31a7b9 [ 67.294207][ 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 [ 67.313826][ T4994] RSP: 002b:00007fff0583f9a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 67.322260][ T4994] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0bbf31a7b9 [ 67.330239][ T4994] RDX: 000000000000275a RSI: 00000000200001c0 RDI: 00000000ffffff9c [ 67.338211][ T4994] RBP: 00007f0bbf2da050 R08: 0000000000001103 R09: 0000000000000000 [ 67.346188][ T4994] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0bbf2da0e0 openat(AT_FDCWD, "memory.current", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 67.354177][ T4994] R13: 000000