./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3494879345 <...> DUID 00:04:d6:b0:09:ff:72:32:c6:5d:c0:56:b1:2d:70:06:fa:56 forked to background, child pid 4661 [ 38.917912][ T4662] 8021q: adding VLAN 0 to HW filter on device bond0 [ 38.945592][ T4662] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller syzkaller login: [ 53.657781][ T4848] scp (4848) used greatest stack depth: 20192 bytes left Warning: Permanently added '10.128.0.239' (ECDSA) to the list of known hosts. execve("./syz-executor3494879345", ["./syz-executor3494879345"], 0x7ffe8e5e9600 /* 10 vars */) = 0 brk(NULL) = 0x555555aa3000 brk(0x555555aa3c40) = 0x555555aa3c40 arch_prctl(ARCH_SET_FS, 0x555555aa3300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3494879345", 4096) = 28 brk(0x555555ac4c40) = 0x555555ac4c40 brk(0x555555ac5000) = 0x555555ac5000 mprotect(0x7f29c1ccb000, 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) = 0x7f29b9811000 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(0x7f29b9811000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 65.069552][ T4995] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4995 'syz-executor349' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 65.123128][ T4995] loop0: detected capacity change from 0 to 8192 [ 65.135504][ T4995] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 65.149148][ T4995] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 65.158687][ T4995] REISERFS (device loop0): using ordered data mode [ 65.165326][ T4995] reiserfs: using flush barriers [ 65.171829][ T4995] 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 [ 65.188905][ T4995] 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 [ 65.245076][ T4995] REISERFS (device loop0): Using r5 hash to sort names [ 65.253128][ T4995] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 65.281316][ T4995] [ 65.283706][ T4995] ====================================================== [ 65.290746][ T4995] WARNING: possible circular locking dependency detected [ 65.297793][ T4995] 6.4.0-rc7-syzkaller-00041-ge660abd551f1 #0 Not tainted [ 65.304855][ T4995] ------------------------------------------------------ [ 65.312031][ T4995] syz-executor349/4995 is trying to acquire lock: [ 65.318730][ T4995] ffff8880761c02e0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 65.328601][ T4995] [ 65.328601][ T4995] but task is already holding lock: [ 65.336110][ T4995] ffff8880152fd090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 65.345804][ T4995] [ 65.345804][ T4995] which lock already depends on the new lock. [ 65.345804][ T4995] [ 65.356222][ T4995] [ 65.356222][ T4995] the existing dependency chain (in reverse order) is: [ 65.365248][ T4995] [ 65.365248][ T4995] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 65.372481][ T4995] lock_acquire+0x1e3/0x520 [ 65.377787][ T4995] __mutex_lock_common+0x1d8/0x2530 [ 65.383530][ T4995] mutex_lock_nested+0x1b/0x20 [ 65.389107][ T4995] reiserfs_write_lock+0x7a/0xd0 [ 65.394580][ T4995] reiserfs_mkdir+0x321/0x8f0 [ 65.399790][ T4995] open_xa_dir+0x2cd/0x610 [ 65.404739][ T4995] xattr_lookup+0x24/0x280 [ 65.409696][ T4995] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 65.415779][ T4995] reiserfs_security_write+0x157/0x1d0 [ 65.421774][ T4995] reiserfs_new_inode+0x1631/0x1d40 [ 65.427505][ T4995] reiserfs_create+0x3e7/0x6e0 [ 65.432800][ T4995] path_openat+0x13df/0x3170 [ 65.438009][ T4995] do_filp_open+0x234/0x490 [ 65.443040][ T4995] do_sys_openat2+0x13f/0x500 [ 65.448256][ T4995] __x64_sys_open+0x225/0x270 [ 65.453468][ T4995] do_syscall_64+0x41/0xc0 [ 65.458417][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.464935][ T4995] [ 65.464935][ T4995] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 65.473674][ T4995] validate_chain+0x166b/0x58f0 [ 65.479062][ T4995] __lock_acquire+0x1316/0x2070 [ 65.484447][ T4995] lock_acquire+0x1e3/0x520 [ 65.489659][ T4995] down_write_nested+0x3d/0x50 [ 65.495063][ T4995] open_xa_dir+0x136/0x610 [ 65.500030][ T4995] xattr_lookup+0x24/0x280 [ 65.504980][ T4995] reiserfs_xattr_get+0xfd/0x570 [ 65.510452][ T4995] __vfs_getxattr+0x436/0x470 [ 65.520264][ T4995] smk_fetch+0xb1/0x140 [ 65.524960][ T4995] smack_d_instantiate+0x6d9/0xb40 [ 65.530606][ T4995] security_d_instantiate+0x9b/0xf0 [ 65.536436][ T4995] d_instantiate_new+0x65/0x120 [ 65.541815][ T4995] reiserfs_create+0x5cf/0x6e0 [ 65.547112][ T4995] path_openat+0x13df/0x3170 [ 65.552238][ T4995] do_filp_open+0x234/0x490 [ 65.557272][ T4995] do_sys_openat2+0x13f/0x500 [ 65.562605][ T4995] __x64_sys_open+0x225/0x270 [ 65.567820][ T4995] do_syscall_64+0x41/0xc0 [ 65.572855][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.579279][ T4995] [ 65.579279][ T4995] other info that might help us debug this: [ 65.579279][ T4995] [ 65.589507][ T4995] Possible unsafe locking scenario: [ 65.589507][ T4995] [ 65.596958][ T4995] CPU0 CPU1 [ 65.602324][ T4995] ---- ---- [ 65.607743][ T4995] lock(&sbi->lock); [ 65.611737][ T4995] lock(&type->i_mutex_dir_key#6/3); [ 65.619741][ T4995] lock(&sbi->lock); [ 65.626254][ T4995] lock(&type->i_mutex_dir_key#6/3); [ 65.631738][ T4995] [ 65.631738][ T4995] *** DEADLOCK *** [ 65.631738][ T4995] [ 65.639998][ T4995] 3 locks held by syz-executor349/4995: [ 65.645635][ T4995] #0: ffff88807c00e460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 65.654804][ T4995] #1: ffff888078bf02e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 65.665535][ T4995] #2: ffff8880152fd090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 65.675646][ T4995] [ 65.675646][ T4995] stack backtrace: [ 65.681540][ T4995] CPU: 0 PID: 4995 Comm: syz-executor349 Not tainted 6.4.0-rc7-syzkaller-00041-ge660abd551f1 #0 [ 65.692222][ T4995] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 65.703500][ T4995] Call Trace: [ 65.706782][ T4995] [ 65.709722][ T4995] dump_stack_lvl+0x1e7/0x2d0 [ 65.714410][ T4995] ? nf_tcp_handle_invalid+0x650/0x650 [ 65.719884][ T4995] ? print_circular_bug+0x12b/0x1a0 [ 65.725104][ T4995] check_noncircular+0x2fe/0x3b0 [ 65.730057][ T4995] ? read_lock_is_recursive+0x20/0x20 [ 65.735541][ T4995] ? add_chain_block+0x850/0x850 [ 65.740491][ T4995] ? lockdep_lock+0x123/0x2b0 [ 65.745180][ T4995] ? check_path+0x40/0x40 [ 65.749525][ T4995] ? noop_count+0x30/0x30 [ 65.753884][ T4995] ? _find_first_zero_bit+0xd4/0x100 [ 65.759286][ T4995] validate_chain+0x166b/0x58f0 [ 65.764163][ T4995] ? stack_trace_save+0x1c0/0x1c0 [ 65.769308][ T4995] ? reacquire_held_locks+0x660/0x660 [ 65.774701][ T4995] ? look_up_lock_class+0x77/0x140 [ 65.779827][ T4995] ? register_lock_class+0x104/0x990 [ 65.785128][ T4995] ? __lock_acquire+0x1316/0x2070 [ 65.790167][ T4995] ? is_dynamic_key+0x1f0/0x1f0 [ 65.795060][ T4995] ? mark_lock+0x9a/0x340 [ 65.799408][ T4995] __lock_acquire+0x1316/0x2070 [ 65.804280][ T4995] lock_acquire+0x1e3/0x520 [ 65.808808][ T4995] ? open_xa_dir+0x136/0x610 [ 65.813565][ T4995] ? read_lock_is_recursive+0x20/0x20 [ 65.818951][ T4995] ? lockdep_hardirqs_on+0x98/0x140 [ 65.824158][ T4995] ? __might_sleep+0xc0/0xc0 [ 65.828766][ T4995] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 65.834683][ T4995] ? _raw_spin_unlock+0x40/0x40 [ 65.839541][ T4995] ? stack_trace_snprint+0xf0/0xf0 [ 65.844669][ T4995] down_write_nested+0x3d/0x50 [ 65.849440][ T4995] ? open_xa_dir+0x136/0x610 [ 65.854047][ T4995] open_xa_dir+0x136/0x610 [ 65.858478][ T4995] ? kasan_set_track+0x61/0x70 [ 65.863338][ T4995] ? kasan_set_track+0x4f/0x70 [ 65.868114][ T4995] ? security_d_instantiate+0x9b/0xf0 [ 65.873502][ T4995] ? listxattr_filler+0x500/0x500 [ 65.878537][ T4995] ? do_sys_openat2+0x13f/0x500 [ 65.883400][ T4995] ? __static_call_text_end+0x59188/0x59188 [ 65.889309][ T4995] xattr_lookup+0x24/0x280 [ 65.893743][ T4995] reiserfs_xattr_get+0xfd/0x570 [ 65.899040][ T4995] ? security_get+0x6d/0xc0 [ 65.903561][ T4995] ? security_list+0x80/0x80 [ 65.908162][ T4995] __vfs_getxattr+0x436/0x470 [ 65.912858][ T4995] smk_fetch+0xb1/0x140 [ 65.917028][ T4995] smack_d_instantiate+0x6d9/0xb40 [ 65.922154][ T4995] ? smack_sem_semop+0x230/0x230 [ 65.927110][ T4995] security_d_instantiate+0x9b/0xf0 [ 65.932328][ T4995] d_instantiate_new+0x65/0x120 [ 65.937191][ T4995] reiserfs_create+0x5cf/0x6e0 [ 65.941972][ T4995] ? reiserfs_lookup+0x580/0x580 [ 65.947105][ T4995] ? bpf_lsm_inode_create+0x9/0x10 [ 65.952225][ T4995] ? security_inode_create+0xb8/0x100 [ 65.957714][ T4995] ? reiserfs_lookup+0x580/0x580 [ 65.962663][ T4995] path_openat+0x13df/0x3170 [ 65.967279][ T4995] ? do_filp_open+0x490/0x490 [ 65.971976][ T4995] do_filp_open+0x234/0x490 [ 65.976488][ T4995] ? vfs_tmpfile+0x4a0/0x4a0 [ 65.981102][ T4995] ? _raw_spin_unlock+0x28/0x40 [ 65.985980][ T4995] ? alloc_fd+0x59c/0x640 [ 65.990330][ T4995] do_sys_openat2+0x13f/0x500 [ 65.995019][ T4995] ? print_irqtrace_events+0x220/0x220 [ 66.000576][ T4995] ? do_sys_open+0x230/0x230 [ 66.005228][ T4995] ? lockdep_hardirqs_on+0x98/0x140 [ 66.010440][ T4995] ? _raw_spin_unlock_irq+0x2e/0x50 [ 66.015645][ T4995] ? ptrace_notify+0x278/0x380 [ 66.020418][ T4995] __x64_sys_open+0x225/0x270 [ 66.025135][ T4995] ? do_sys_openat2+0x500/0x500 [ 66.030000][ T4995] ? syscall_enter_from_user_mode+0x32/0x230 [ 66.035994][ T4995] ? syscall_enter_from_user_mode+0x8c/0x230 [ 66.042525][ T4995] do_syscall_64+0x41/0xc0 [ 66.047295][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.053199][ T4995] RIP: 0033:0x7f29c1c5d789 [ 66.057619][ T4995] 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 [ 66.077236][ T4995] RSP: 002b:00007ffef2fd9998 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 66.085659][ T4995] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f29c1c5d789 open("./bus", O_RDWR|O_CREAT|O_SYNC|O_NOATIME|FASYNC, 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 66.093721][ T4995] RDX: 0000000000000000 RSI: 00000000001430