./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3740553664 <...> DUID 00:04:9f:e8:07:f9:ba:36:1f:d4:05:68:5a:d1:6a:7f:90:cd no interfaces have a carrier [ 43.811927][ T4661] 8021q: adding VLAN 0 to HW filter on device bond0 [ 43.831794][ T4661] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.251' (ECDSA) to the list of known hosts. execve("./syz-executor3740553664", ["./syz-executor3740553664"], 0x7fff08b13010 /* 10 vars */) = 0 brk(NULL) = 0x5555564e5000 brk(0x5555564e5c40) = 0x5555564e5c40 arch_prctl(ARCH_SET_FS, 0x5555564e5300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3740553664", 4096) = 28 brk(0x555556506c40) = 0x555556506c40 brk(0x555556507000) = 0x555556507000 mprotect(0x7f5116c51000, 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) = 0x7f510e797000 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(0x7f510e797000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 70.882041][ T4995] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4995 'syz-executor374' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 70.940073][ T4995] loop0: detected capacity change from 0 to 8192 [ 70.953213][ T4995] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 70.966673][ T4995] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 70.976255][ T4995] REISERFS (device loop0): using ordered data mode [ 70.983119][ T4995] reiserfs: using flush barriers [ 70.989940][ 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 [ 71.007373][ T4995] REISERFS (device loop0): checking transaction log (loop0) [ 71.017744][ T4995] REISERFS (device loop0): Using r5 hash to sort names [ 71.026127][ T4995] REISERFS warning (device loop0): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are! mount("/dev/loop0", "./file0", "reiserfs", MS_DIRSYNC|MS_POSIXACL, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 71.039573][ T4995] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 71.061942][ T4995] [ 71.064342][ T4995] ====================================================== [ 71.071475][ T4995] WARNING: possible circular locking dependency detected [ 71.078825][ T4995] 6.4.0-rc5-syzkaller-00313-g4c605260bc60 #0 Not tainted [ 71.085966][ T4995] ------------------------------------------------------ [ 71.093006][ T4995] syz-executor374/4995 is trying to acquire lock: [ 71.099422][ T4995] ffff888074140980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 71.109991][ T4995] [ 71.109991][ T4995] but task is already holding lock: [ 71.117368][ T4995] ffff88801568b090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 71.126957][ T4995] [ 71.126957][ T4995] which lock already depends on the new lock. [ 71.126957][ T4995] [ 71.137864][ T4995] [ 71.137864][ T4995] the existing dependency chain (in reverse order) is: [ 71.146984][ T4995] [ 71.146984][ T4995] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 71.154225][ T4995] lock_acquire+0x1e3/0x520 [ 71.159910][ T4995] __mutex_lock_common+0x1d8/0x2530 [ 71.165692][ T4995] mutex_lock_nested+0x1b/0x20 [ 71.171140][ T4995] reiserfs_write_lock+0x7a/0xd0 [ 71.176633][ T4995] reiserfs_mkdir+0x321/0x8f0 [ 71.181924][ T4995] open_xa_dir+0x2cd/0x610 [ 71.186892][ T4995] xattr_lookup+0x24/0x280 [ 71.191871][ T4995] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 71.197990][ T4995] reiserfs_security_write+0x157/0x1d0 [ 71.204015][ T4995] reiserfs_new_inode+0x1631/0x1d40 [ 71.209780][ T4995] reiserfs_mkdir+0x5b0/0x8f0 [ 71.215035][ T4995] vfs_mkdir+0x29d/0x450 [ 71.219899][ T4995] do_mkdirat+0x264/0x520 [ 71.224759][ T4995] __x64_sys_mkdir+0x6e/0x80 [ 71.230019][ T4995] do_syscall_64+0x41/0xc0 [ 71.234968][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.242077][ T4995] [ 71.242077][ T4995] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 71.250781][ T4995] validate_chain+0x166b/0x58f0 [ 71.256162][ T4995] __lock_acquire+0x1316/0x2070 [ 71.261715][ T4995] lock_acquire+0x1e3/0x520 [ 71.266856][ T4995] down_write_nested+0x3d/0x50 [ 71.272351][ T4995] open_xa_dir+0x136/0x610 [ 71.277312][ T4995] xattr_lookup+0x24/0x280 [ 71.282339][ T4995] reiserfs_xattr_get+0xfd/0x570 [ 71.287997][ T4995] __vfs_getxattr+0x436/0x470 [ 71.293292][ T4995] smk_fetch+0xb1/0x140 [ 71.297987][ T4995] smack_d_instantiate+0x6d9/0xb40 [ 71.303990][ T4995] security_d_instantiate+0x9b/0xf0 [ 71.310023][ T4995] d_instantiate_new+0x65/0x120 [ 71.315534][ T4995] reiserfs_mkdir+0x769/0x8f0 [ 71.321489][ T4995] vfs_mkdir+0x29d/0x450 [ 71.326297][ T4995] do_mkdirat+0x264/0x520 [ 71.331256][ T4995] __x64_sys_mkdir+0x6e/0x80 [ 71.336464][ T4995] do_syscall_64+0x41/0xc0 [ 71.341403][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.347844][ T4995] [ 71.347844][ T4995] other info that might help us debug this: [ 71.347844][ T4995] [ 71.358179][ T4995] Possible unsafe locking scenario: [ 71.358179][ T4995] [ 71.365630][ T4995] CPU0 CPU1 [ 71.370990][ T4995] ---- ---- [ 71.376353][ T4995] lock(&sbi->lock); [ 71.380338][ T4995] lock(&type->i_mutex_dir_key#6/3); [ 71.388269][ T4995] lock(&sbi->lock); [ 71.394773][ T4995] lock(&type->i_mutex_dir_key#6/3); [ 71.400157][ T4995] [ 71.400157][ T4995] *** DEADLOCK *** [ 71.400157][ T4995] [ 71.408296][ T4995] 3 locks held by syz-executor374/4995: [ 71.413833][ T4995] #0: ffff888078cfe460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 71.422999][ T4995] #1: ffff8880741402e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 [ 71.433635][ T4995] #2: ffff88801568b090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 71.443673][ T4995] [ 71.443673][ T4995] stack backtrace: [ 71.449558][ T4995] CPU: 1 PID: 4995 Comm: syz-executor374 Not tainted 6.4.0-rc5-syzkaller-00313-g4c605260bc60 #0 [ 71.459967][ T4995] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 71.470027][ T4995] Call Trace: [ 71.473306][ T4995] [ 71.476239][ T4995] dump_stack_lvl+0x1e7/0x2d0 [ 71.480932][ T4995] ? nf_tcp_handle_invalid+0x650/0x650 [ 71.486400][ T4995] ? print_circular_bug+0x12b/0x1a0 [ 71.491606][ T4995] check_noncircular+0x2fe/0x3b0 [ 71.496552][ T4995] ? read_lock_is_recursive+0x20/0x20 [ 71.501935][ T4995] ? add_chain_block+0x850/0x850 [ 71.506884][ T4995] ? lockdep_lock+0x123/0x2b0 [ 71.511567][ T4995] ? check_path+0x40/0x40 [ 71.515904][ T4995] ? noop_count+0x30/0x30 [ 71.520255][ T4995] ? _find_first_zero_bit+0xd4/0x100 [ 71.525544][ T4995] validate_chain+0x166b/0x58f0 [ 71.530402][ T4995] ? stack_trace_save+0x1c0/0x1c0 [ 71.535444][ T4995] ? reacquire_held_locks+0x660/0x660 [ 71.540831][ T4995] ? look_up_lock_class+0x77/0x140 [ 71.545951][ T4995] ? register_lock_class+0x104/0x990 [ 71.551245][ T4995] ? __lock_acquire+0x1316/0x2070 [ 71.556273][ T4995] ? is_dynamic_key+0x1f0/0x1f0 [ 71.561134][ T4995] ? mark_lock+0x9a/0x340 [ 71.565481][ T4995] __lock_acquire+0x1316/0x2070 [ 71.570343][ T4995] lock_acquire+0x1e3/0x520 [ 71.574948][ T4995] ? open_xa_dir+0x136/0x610 [ 71.579554][ T4995] ? read_lock_is_recursive+0x20/0x20 [ 71.584938][ T4995] ? lockdep_hardirqs_on+0x98/0x140 [ 71.590231][ T4995] ? __might_sleep+0xc0/0xc0 [ 71.594829][ T4995] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 71.600729][ T4995] ? _raw_spin_unlock+0x40/0x40 [ 71.605583][ T4995] ? stack_trace_snprint+0xf0/0xf0 [ 71.610706][ T4995] down_write_nested+0x3d/0x50 [ 71.615473][ T4995] ? open_xa_dir+0x136/0x610 [ 71.620157][ T4995] open_xa_dir+0x136/0x610 [ 71.624579][ T4995] ? kasan_set_track+0x61/0x70 [ 71.629439][ T4995] ? kasan_set_track+0x4f/0x70 [ 71.634212][ T4995] ? security_d_instantiate+0x9b/0xf0 [ 71.639595][ T4995] ? listxattr_filler+0x500/0x500 [ 71.644624][ T4995] ? __x64_sys_mkdir+0x6e/0x80 [ 71.649419][ T4995] xattr_lookup+0x24/0x280 [ 71.653858][ T4995] reiserfs_xattr_get+0xfd/0x570 [ 71.658806][ T4995] ? security_get+0x6d/0xc0 [ 71.663326][ T4995] ? security_list+0x80/0x80 [ 71.667924][ T4995] __vfs_getxattr+0x436/0x470 [ 71.672617][ T4995] smk_fetch+0xb1/0x140 [ 71.676783][ T4995] smack_d_instantiate+0x6d9/0xb40 [ 71.681907][ T4995] ? smack_sem_semop+0x230/0x230 [ 71.686857][ T4995] ? __raw_spin_lock_init+0x45/0x100 [ 71.692155][ T4995] security_d_instantiate+0x9b/0xf0 [ 71.697366][ T4995] d_instantiate_new+0x65/0x120 [ 71.702230][ T4995] reiserfs_mkdir+0x769/0x8f0 [ 71.706945][ T4995] ? reiserfs_symlink+0x720/0x720 [ 71.712244][ T4995] ? from_kgid+0x1a7/0x730 [ 71.716769][ T4995] ? bpf_lsm_inode_mkdir+0x9/0x10 [ 71.721799][ T4995] ? security_inode_mkdir+0xb8/0x100 [ 71.727099][ T4995] vfs_mkdir+0x29d/0x450 [ 71.731349][ T4995] do_mkdirat+0x264/0x520 [ 71.735686][ T4995] ? vfs_mkdir+0x450/0x450 [ 71.740109][ T4995] ? getname_flags+0x1f0/0x4e0 [ 71.744877][ T4995] __x64_sys_mkdir+0x6e/0x80 [ 71.749471][ T4995] do_syscall_64+0x41/0xc0 [ 71.753890][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.759791][ T4995] RIP: 0033:0x7f5116be3819 [ 71.764211][ 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 [ 71.783841][ T4995] RSP: 002b:00007ffc6b3be028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 mkdir("./file1", 000) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 71.792276][ T499