./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3633424146 <...> DUID 00:04:7c:8f:25:e4:1e:61:d4:15:b8:1c:50:2a:7f:f5:0b:01 forked to background, child pid 4659 [ 38.923299][ T4660] 8021q: adding VLAN 0 to HW filter on device bond0 [ 38.935786][ T4660] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.86' (ECDSA) to the list of known hosts. execve("./syz-executor3633424146", ["./syz-executor3633424146"], 0x7fff15ae0f40 /* 10 vars */) = 0 brk(NULL) = 0x5555563b3000 brk(0x5555563b3c40) = 0x5555563b3c40 arch_prctl(ARCH_SET_FS, 0x5555563b3300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 set_tid_address(0x5555563b35d0) = 4995 set_robust_list(0x5555563b35e0, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7fdd86750d20, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fdd867513f0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7fdd86750dc0, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fdd867513f0}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3633424146", 4096) = 28 brk(0x5555563d4c40) = 0x5555563d4c40 brk(0x5555563d5000) = 0x5555563d5000 mprotect(0x7fdd86813000, 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 futex(0x7fdd868196cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fdd86720000 mprotect(0x7fdd86721000, 131072, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7fdd867403f0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID./strace-static-x86_64: Process 4996 attached , parent_tid=[4996], tls=0x7fdd86740700, child_tidptr=0x7fdd867409d0) = 4996 [pid 4996] set_robust_list(0x7fdd867409e0, 24 [pid 4995] futex(0x7fdd868196c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 4996] <... set_robust_list resumed>) = 0 [pid 4995] futex(0x7fdd868196cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 4996] memfd_create("syzkaller", 0) = 3 [pid 4996] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdd7e320000 [pid 4996] 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 [pid 4996] munmap(0x7fdd7e320000, 4194304) = 0 [pid 4996] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 71.336092][ T4996] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4996 'syz-executor363' [pid 4996] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 4996] close(3) = 0 [pid 4996] mkdir("./file1", 0777) = 0 [ 71.392114][ T4996] loop0: detected capacity change from 0 to 8192 [ 71.404569][ T4996] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 71.420809][ T4996] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 71.430272][ T4996] REISERFS (device loop0): using ordered data mode [ 71.436856][ T4996] reiserfs: using flush barriers [ 71.443027][ T4996] 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 [ 71.459778][ T4996] REISERFS (device loop0): checking transaction log (loop0) [pid 4996] mount("/dev/loop0", "./file1", "reiserfs", MS_NOEXEC|MS_DIRSYNC|MS_SILENT|MS_RELATIME, "") = 0 [pid 4996] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 4996] chdir("./file1") = 0 [pid 4996] ioctl(4, LOOP_CLR_FD) = 0 [pid 4996] close(4) = 0 [pid 4996] futex(0x7fdd868196cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 4996] futex(0x7fdd868196c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 4995] <... futex resumed>) = 0 [pid 4995] futex(0x7fdd868196c8, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 4996] <... futex resumed>) = 0 [pid 4995] futex(0x7fdd868196cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [ 71.514646][ T4996] REISERFS (device loop0): Using r5 hash to sort names [ 71.522749][ T4996] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 71.553478][ T4996] [ 71.555862][ T4996] ====================================================== [pid 4996] openat(AT_FDCWD, "cpuset.effective_cpus", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000 [pid 4995] <... futex resumed>) = -1 ETIMEDOUT (Connection timed out) [ 71.562922][ T4996] WARNING: possible circular locking dependency detected [ 71.569980][ T4996] 6.3.0-syzkaller-13164-g78b421b6a7c6 #0 Not tainted [ 71.576677][ T4996] ------------------------------------------------------ [ 71.583690][ T4996] syz-executor363/4996 is trying to acquire lock: [ 71.590098][ T4996] ffff888074558980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 71.599979][ T4996] [ 71.599979][ T4996] but task is already holding lock: [ 71.607349][ T4996] ffff8880156f2090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 71.616948][ T4996] [ 71.616948][ T4996] which lock already depends on the new lock. [ 71.616948][ T4996] [ 71.627361][ T4996] [ 71.627361][ T4996] the existing dependency chain (in reverse order) is: [ 71.636384][ T4996] [ 71.636384][ T4996] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 71.643623][ T4996] lock_acquire+0x1e3/0x520 [ 71.648689][ T4996] __mutex_lock_common+0x1d8/0x2530 [ 71.654483][ T4996] mutex_lock_nested+0x1b/0x20 [ 71.659796][ T4996] reiserfs_write_lock+0x7a/0xd0 [ 71.665361][ T4996] reiserfs_mkdir+0x321/0x8f0 [ 71.670592][ T4996] open_xa_dir+0x2cd/0x610 [ 71.675549][ T4996] xattr_lookup+0x24/0x280 [ 71.680513][ T4996] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 71.686624][ T4996] reiserfs_security_write+0x157/0x1d0 [ 71.692629][ T4996] reiserfs_new_inode+0x1631/0x1d40 [ 71.698378][ T4996] reiserfs_create+0x3e7/0x6e0 [ 71.703685][ T4996] path_openat+0x13df/0x3170 [ 71.708812][ T4996] do_filp_open+0x234/0x490 [pid 4995] exit_group(0) = ? [ 71.713845][ T4996] do_sys_openat2+0x13f/0x500 [ 71.719078][ T4996] __x64_sys_openat+0x247/0x290 [ 71.724483][ T4996] do_syscall_64+0x41/0xc0 [ 71.730390][ T4996] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.736811][ T4996] [ 71.736811][ T4996] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 71.745524][ T4996] validate_chain+0x166b/0x58e0 [ 71.750906][ T4996] __lock_acquire+0x1295/0x2000 [ 71.756297][ T4996] lock_acquire+0x1e3/0x520 [ 71.761357][ T4996] down_write_nested+0x3d/0x50 [ 71.766651][ T4996] open_xa_dir+0x136/0x610 [ 71.771621][ T4996] xattr_lookup+0x24/0x280 [ 71.776584][ T4996] reiserfs_xattr_get+0xfd/0x570 [ 71.782068][ T4996] __vfs_getxattr+0x436/0x470 [ 71.787277][ T4996] smk_fetch+0xb1/0x140 [ 71.791962][ T4996] smack_d_instantiate+0x6d9/0xb40 [ 71.797618][ T4996] security_d_instantiate+0x9b/0xf0 [ 71.804216][ T4996] d_instantiate_new+0x65/0x120 [ 71.809589][ T4996] reiserfs_create+0x5cf/0x6e0 [ 71.814878][ T4996] path_openat+0x13df/0x3170 [ 71.819989][ T4996] do_filp_open+0x234/0x490 [ 71.825010][ T4996] do_sys_openat2+0x13f/0x500 [ 71.830214][ T4996] __x64_sys_openat+0x247/0x290 [ 71.835587][ T4996] do_syscall_64+0x41/0xc0 [ 71.840526][ T4996] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.846951][ T4996] [ 71.846951][ T4996] other info that might help us debug this: [ 71.846951][ T4996] [ 71.857208][ T4996] Possible unsafe locking scenario: [ 71.857208][ T4996] [ 71.864761][ T4996] CPU0 CPU1 [ 71.870139][ T4996] ---- ---- [ 71.875522][ T4996] lock(&sbi->lock); [ 71.879611][ T4996] lock(&type->i_mutex_dir_key#6/3); [ 71.887554][ T4996] lock(&sbi->lock); [ 71.894261][ T4996] lock(&type->i_mutex_dir_key#6/3); [ 71.899664][ T4996] [ 71.899664][ T4996] *** DEADLOCK *** [ 71.899664][ T4996] [ 71.907825][ T4996] 3 locks held by syz-executor363/4996: [ 71.913388][ T4996] #0: ffff88807c6be460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 71.922583][ T4996] #1: ffff8880745582e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 71.933045][ T4996] #2: ffff8880156f2090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 71.943153][ T4996] [ 71.943153][ T4996] stack backtrace: [ 71.949037][ T4996] CPU: 1 PID: 4996 Comm: syz-executor363 Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0 [ 71.959184][ T4996] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 71.969241][ T4996] Call Trace: [ 71.972605][ T4996] [ 71.975548][ T4996] dump_stack_lvl+0x1e7/0x2d0 [ 71.980257][ T4996] ? nf_tcp_handle_invalid+0x650/0x650 [ 71.985753][ T4996] ? print_circular_bug+0x12b/0x1a0 [ 71.990967][ T4996] check_noncircular+0x2fe/0x3b0 [ 71.995946][ T4996] ? read_lock_is_recursive+0x20/0x20 [ 72.003075][ T4996] ? add_chain_block+0x850/0x850 [ 72.008032][ T4996] ? lockdep_lock+0x123/0x2b0 [ 72.012734][ T4996] ? check_path+0x40/0x40 [ 72.017069][ T4996] ? noop_count+0x30/0x30 [ 72.021423][ T4996] ? _find_first_zero_bit+0xd4/0x100 [ 72.026708][ T4996] validate_chain+0x166b/0x58e0 [ 72.031573][ T4996] ? stack_trace_save+0x1c0/0x1c0 [ 72.036625][ T4996] ? reacquire_held_locks+0x660/0x660 [ 72.042094][ T4996] ? look_up_lock_class+0x77/0x140 [ 72.047218][ T4996] ? register_lock_class+0x104/0x990 [ 72.052525][ T4996] ? __lock_acquire+0x1295/0x2000 [ 72.057592][ T4996] ? is_dynamic_key+0x1f0/0x1f0 [ 72.062449][ T4996] ? mark_lock+0x9a/0x340 [ 72.066798][ T4996] __lock_acquire+0x1295/0x2000 [ 72.071838][ T4996] lock_acquire+0x1e3/0x520 [ 72.076355][ T4996] ? open_xa_dir+0x136/0x610 [ 72.080954][ T4996] ? read_lock_is_recursive+0x20/0x20 [ 72.086338][ T4996] ? lockdep_hardirqs_on+0x98/0x140 [ 72.091566][ T4996] ? __might_sleep+0xc0/0xc0 [ 72.096157][ T4996] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 72.102055][ T4996] ? _raw_spin_unlock+0x40/0x40 [ 72.106908][ T4996] ? stack_trace_snprint+0xf0/0xf0 [ 72.112035][ T4996] down_write_nested+0x3d/0x50 [ 72.116949][ T4996] ? open_xa_dir+0x136/0x610 [ 72.121639][ T4996] open_xa_dir+0x136/0x610 [ 72.126079][ T4996] ? kasan_set_track+0x61/0x70 [ 72.130845][ T4996] ? kasan_set_track+0x4f/0x70 [ 72.135626][ T4996] ? security_d_instantiate+0x9b/0xf0 [ 72.141092][ T4996] ? listxattr_filler+0x500/0x500 [ 72.146123][ T4996] ? do_sys_openat2+0x13f/0x500 [ 72.151064][ T4996] ? __static_call_text_end+0x68538/0x68538 [ 72.156984][ T4996] xattr_lookup+0x24/0x280 [ 72.161409][ T4996] reiserfs_xattr_get+0xfd/0x570 [ 72.166377][ T4996] ? security_get+0x6d/0xc0 [ 72.170909][ T4996] ? security_list+0x80/0x80 [ 72.175521][ T4996] __vfs_getxattr+0x436/0x470 [ 72.180227][ T4996] smk_fetch+0xb1/0x140 [ 72.184417][ T4996] smack_d_instantiate+0x6d9/0xb40 [ 72.189562][ T4996] ? smack_sem_semop+0x230/0x230 [ 72.194523][ T4996] security_d_instantiate+0x9b/0xf0 [ 72.199755][ T4996] d_instantiate_new+0x65/0x120 [ 72.204611][ T4996] reiserfs_create+0x5cf/0x6e0 [ 72.209403][ T4996] ? reiserfs_lookup+0x580/0x580 [ 72.214356][ T4996] ? bpf_lsm_inode_create+0x9/0x10 [ 72.219476][ T4996] ? security_inode_create+0xb8/0x100 [ 72.225111][ T4996] ? reiserfs_lookup+0x580/0x580 [ 72.230145][ T4996] path_openat+0x13df/0x3170 [ 72.234754][ T4996] ? do_filp_open+0x490/0x490 [ 72.239440][ T4996] do_filp_open+0x234/0x490 [ 72.243946][ T4996] ? vfs_tmpfile+0x4a0/0x4a0 [ 72.248563][ T4996] ? _raw_spin_unlock+0x28/0x40 [ 72.253418][ T4996] ? alloc_fd+0x59c/0x640 [ 72.257760][ T4996] do_sys_openat2+0x13f/0x500 [ 72.262448][ T4996] ? print_irqtrace_events+0x220/0x220 [ 72.267940][ T4996] ? do_sys_open+0x230/0x230 [ 72.272542][ T4996] ? lockdep_hardirqs_on+0x98/0x140 [ 72.277742][ T4996] ? _raw_spin_unlock_irq+0x2e/0x50 [ 72.282945][ T4996] ? ptrace_notify+0x278/0x380 [ 72.287727][ T4996] __x64_sys_openat+0x247/0x290 [ 72.292595][ T4996] ? __ia32_sys_open+0x270/0x270 [ 72.297546][ T4996] ? syscall_enter_from_user_mode+0x32/0x230 [ 72.303535][ T4996] ? syscall_enter_from_user_mode+0x8c/0x230 [ 72.309546][ T4996] do_syscall_64+0x41/0xc0 [ 72.313982][ T4996] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 72.319882][ T4996] RIP: 0033:0x7fdd867933d9 [ 72.324304][ T4996] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 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 b8 ff ff ff f7 d8 64 89 01 48 [ 72.344086][ T4996] RSP: 002b:00007fdd867402f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 72.352502][ T4996] RAX: ffffffffffffffda RBX: 00007fdd868196c0 RCX: 00007fdd867933d9 [ 72.360480][ T4996] RDX: 000000000000275a RSI: 0000000020000080 RDI: 00000000ffffff9c [pid 4996] <... openat resumed>) = ? [pid 4996] +++ exited with 0 +++ +++ exited with 0 +++ [