./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3489517714 <...> DUID 00:04:48:2f:83:80:5e:82:2f:af:2e:03:8c:bf:d4:14:8e:03 forked to background, child pid 4660 [ 39.097553][ T4661] 8021q: adding VLAN 0 to HW filter on device bond0 [ 39.115240][ T4661] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.24' (ECDSA) to the list of known hosts. execve("./syz-executor3489517714", ["./syz-executor3489517714"], 0x7fff75cc7580 /* 10 vars */) = 0 brk(NULL) = 0x555556f5c000 brk(0x555556f5cc40) = 0x555556f5cc40 arch_prctl(ARCH_SET_FS, 0x555556f5c300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3489517714", 4096) = 28 brk(0x555556f7dc40) = 0x555556f7dc40 brk(0x555556f7e000) = 0x555556f7e000 mprotect(0x7f5ca0a28000, 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) = 0x7f5c9856e000 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(0x7f5c9856e000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 66.033866][ T4995] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4995 'syz-executor348' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 66.085352][ T4995] loop0: detected capacity change from 0 to 8192 [ 66.097491][ T4995] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 66.110678][ T4995] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 66.120052][ T4995] REISERFS (device loop0): using ordered data mode [ 66.126678][ T4995] reiserfs: using flush barriers [ 66.133298][ 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 [ 66.150112][ T4995] REISERFS (device loop0): checking transaction log (loop0) [ 66.159434][ T4995] REISERFS (device loop0): Using r5 hash to sort names [ 66.167502][ 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 [ 66.180403][ T4995] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 66.207502][ T4995] [ 66.209901][ T4995] ====================================================== [ 66.216935][ T4995] WARNING: possible circular locking dependency detected [ 66.224060][ T4995] 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 Not tainted [ 66.231189][ T4995] ------------------------------------------------------ [ 66.238337][ T4995] syz-executor348/4995 is trying to acquire lock: [ 66.244746][ T4995] ffff888078af8980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 66.254643][ T4995] [ 66.254643][ T4995] but task is already holding lock: [ 66.262031][ T4995] ffff8880156ec090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 66.271616][ T4995] [ 66.271616][ T4995] which lock already depends on the new lock. [ 66.271616][ T4995] [ 66.282016][ T4995] [ 66.282016][ T4995] the existing dependency chain (in reverse order) is: [ 66.291065][ T4995] [ 66.291065][ T4995] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 66.298321][ T4995] lock_acquire+0x1e3/0x520 [ 66.303366][ T4995] __mutex_lock_common+0x1d8/0x2530 [ 66.309099][ T4995] mutex_lock_nested+0x1b/0x20 [ 66.314389][ T4995] reiserfs_write_lock+0x7a/0xd0 [ 66.319856][ T4995] reiserfs_mkdir+0x321/0x8f0 [ 66.325076][ T4995] open_xa_dir+0x2cd/0x610 [ 66.330042][ T4995] xattr_lookup+0x24/0x280 [ 66.334988][ T4995] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 66.341069][ T4995] reiserfs_security_write+0x157/0x1d0 [ 66.347065][ T4995] reiserfs_new_inode+0x1631/0x1d40 [ 66.352795][ T4995] reiserfs_mkdir+0x5b0/0x8f0 [ 66.357998][ T4995] vfs_mkdir+0x29d/0x450 [ 66.362767][ T4995] do_mkdirat+0x264/0x520 [ 66.367636][ T4995] __x64_sys_mkdir+0x6e/0x80 [ 66.372767][ T4995] do_syscall_64+0x41/0xc0 [ 66.377713][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.384169][ T4995] [ 66.384169][ T4995] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 66.392797][ T4995] validate_chain+0x166b/0x58f0 [ 66.398181][ T4995] __lock_acquire+0x1316/0x2070 [ 66.403561][ T4995] lock_acquire+0x1e3/0x520 [ 66.408590][ T4995] down_write_nested+0x3d/0x50 [ 66.413893][ T4995] open_xa_dir+0x136/0x610 [ 66.418837][ T4995] xattr_lookup+0x24/0x280 [ 66.423779][ T4995] reiserfs_xattr_get+0xfd/0x570 [ 66.429242][ T4995] __vfs_getxattr+0x436/0x470 [ 66.434451][ T4995] smk_fetch+0xb1/0x140 [ 66.439146][ T4995] smack_d_instantiate+0x6d9/0xb40 [ 66.444783][ T4995] security_d_instantiate+0x9b/0xf0 [ 66.450510][ T4995] d_instantiate_new+0x65/0x120 [ 66.455889][ T4995] reiserfs_mkdir+0x769/0x8f0 [ 66.461090][ T4995] vfs_mkdir+0x29d/0x450 [ 66.465856][ T4995] do_mkdirat+0x264/0x520 [ 66.470720][ T4995] __x64_sys_mkdir+0x6e/0x80 [ 66.475841][ T4995] do_syscall_64+0x41/0xc0 [ 66.480786][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.487208][ T4995] [ 66.487208][ T4995] other info that might help us debug this: [ 66.487208][ T4995] [ 66.497435][ T4995] Possible unsafe locking scenario: [ 66.497435][ T4995] [ 66.504883][ T4995] CPU0 CPU1 [ 66.510240][ T4995] ---- ---- [ 66.515600][ T4995] lock(&sbi->lock); [ 66.519584][ T4995] lock(&type->i_mutex_dir_key#6/3); [ 66.527491][ T4995] lock(&sbi->lock); [ 66.534006][ T4995] lock(&type->i_mutex_dir_key#6/3); [ 66.539392][ T4995] [ 66.539392][ T4995] *** DEADLOCK *** [ 66.539392][ T4995] [ 66.547546][ T4995] 3 locks held by syz-executor348/4995: [ 66.553099][ T4995] #0: ffff88807c26e460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 66.562278][ T4995] #1: ffff888078af82e0 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 [ 66.572933][ T4995] #2: ffff8880156ec090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 66.582974][ T4995] [ 66.582974][ T4995] stack backtrace: [ 66.588867][ T4995] CPU: 0 PID: 4995 Comm: syz-executor348 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 [ 66.599302][ T4995] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 66.609367][ T4995] Call Trace: [ 66.612655][ T4995] [ 66.615592][ T4995] dump_stack_lvl+0x1e7/0x2d0 [ 66.620278][ T4995] ? nf_tcp_handle_invalid+0x650/0x650 [ 66.625746][ T4995] ? print_circular_bug+0x12b/0x1a0 [ 66.630955][ T4995] check_noncircular+0x2fe/0x3b0 [ 66.635921][ T4995] ? read_lock_is_recursive+0x20/0x20 [ 66.641328][ T4995] ? add_chain_block+0x850/0x850 [ 66.646294][ T4995] ? lockdep_lock+0x123/0x2b0 [ 66.650990][ T4995] ? check_path+0x40/0x40 [ 66.655334][ T4995] ? noop_count+0x30/0x30 [ 66.659680][ T4995] ? _find_first_zero_bit+0xd4/0x100 [ 66.664978][ T4995] validate_chain+0x166b/0x58f0 [ 66.669847][ T4995] ? stack_trace_save+0x1c0/0x1c0 [ 66.674913][ T4995] ? reacquire_held_locks+0x660/0x660 [ 66.680335][ T4995] ? look_up_lock_class+0x77/0x140 [ 66.685555][ T4995] ? register_lock_class+0x104/0x990 [ 66.691038][ T4995] ? __lock_acquire+0x1316/0x2070 [ 66.696076][ T4995] ? is_dynamic_key+0x1f0/0x1f0 [ 66.700942][ T4995] ? mark_lock+0x9a/0x340 [ 66.705288][ T4995] __lock_acquire+0x1316/0x2070 [ 66.710165][ T4995] lock_acquire+0x1e3/0x520 [ 66.714676][ T4995] ? open_xa_dir+0x136/0x610 [ 66.719275][ T4995] ? read_lock_is_recursive+0x20/0x20 [ 66.724655][ T4995] ? lockdep_hardirqs_on+0x98/0x140 [ 66.729869][ T4995] ? __might_sleep+0xc0/0xc0 [ 66.734476][ T4995] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 66.740374][ T4995] ? _raw_spin_unlock+0x40/0x40 [ 66.745230][ T4995] ? stack_trace_snprint+0xf0/0xf0 [ 66.750361][ T4995] down_write_nested+0x3d/0x50 [ 66.755134][ T4995] ? open_xa_dir+0x136/0x610 [ 66.759731][ T4995] open_xa_dir+0x136/0x610 [ 66.764160][ T4995] ? kasan_set_track+0x61/0x70 [ 66.768932][ T4995] ? kasan_set_track+0x4f/0x70 [ 66.773706][ T4995] ? security_d_instantiate+0x9b/0xf0 [ 66.779092][ T4995] ? listxattr_filler+0x500/0x500 [ 66.784124][ T4995] ? __x64_sys_mkdir+0x6e/0x80 [ 66.788898][ T4995] xattr_lookup+0x24/0x280 [ 66.793323][ T4995] reiserfs_xattr_get+0xfd/0x570 [ 66.798271][ T4995] ? security_get+0x6d/0xc0 [ 66.802799][ T4995] ? security_list+0x80/0x80 [ 66.807412][ T4995] __vfs_getxattr+0x436/0x470 [ 66.812116][ T4995] smk_fetch+0xb1/0x140 [ 66.816296][ T4995] smack_d_instantiate+0x6d9/0xb40 [ 66.821425][ T4995] ? smack_sem_semop+0x230/0x230 [ 66.826379][ T4995] ? __raw_spin_lock_init+0x45/0x100 [ 66.831718][ T4995] security_d_instantiate+0x9b/0xf0 [ 66.836930][ T4995] d_instantiate_new+0x65/0x120 [ 66.841791][ T4995] reiserfs_mkdir+0x769/0x8f0 [ 66.846479][ T4995] ? reiserfs_symlink+0x720/0x720 [ 66.851509][ T4995] ? from_kgid+0x1a7/0x730 [ 66.855949][ T4995] ? bpf_lsm_inode_mkdir+0x9/0x10 [ 66.860978][ T4995] ? security_inode_mkdir+0xb8/0x100 [ 66.866275][ T4995] vfs_mkdir+0x29d/0x450 [ 66.870617][ T4995] do_mkdirat+0x264/0x520 [ 66.874974][ T4995] ? vfs_mkdir+0x450/0x450 [ 66.879420][ T4995] ? getname_flags+0x1f0/0x4e0 [ 66.884205][ T4995] __x64_sys_mkdir+0x6e/0x80 [ 66.888814][ T4995] do_syscall_64+0x41/0xc0 [ 66.893254][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.899189][ T4995] RIP: 0033:0x7f5ca09ba7a9 [ 66.903621][ 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.923241][ T4995] RSP: 002b:00007ffc45722308 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 [ 66.931685][ T4995] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5ca09ba7a9 [ 66.939778][ T4995] RDX: 00007f5ca0978e23 RSI: 0000000000000000 RDI: 0000000020000040 [ 66.947787][ T4995] RBP: 00007f5ca097a040 R08: 00000000000010e8 R09: 0000000000000000 mkdir("./file1", 000) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 66.955771][ T4995] R10: 00007ffc457221d0 R11: 000000000000024