./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor867858003 <...> DUID 00:04:e5:d7:6b:3e:19:ba:e5:eb:4b:9e:6a:98:ce:0b:a0:29 forked to background, child pid 4660 [ 28.688463][ T4661] 8021q: adding VLAN 0 to HW filter on device bond0 [ 28.702272][ T4661] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.134' (ECDSA) to the list of known hosts. execve("./syz-executor867858003", ["./syz-executor867858003"], 0x7ffd79a3ffc0 /* 10 vars */) = 0 brk(NULL) = 0x555557309000 brk(0x555557309c40) = 0x555557309c40 arch_prctl(ARCH_SET_FS, 0x555557309300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor867858003", 4096) = 27 brk(0x55555732ac40) = 0x55555732ac40 brk(0x55555732b000) = 0x55555732b000 mprotect(0x7f73102a6000, 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) = 0x7f7307dec000 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(0x7f7307dec000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 54.691404][ T4992] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4992 'syz-executor867' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 54.738485][ T4992] loop0: detected capacity change from 0 to 8192 [ 54.749713][ T4992] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 54.762771][ T4992] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 54.772054][ T4992] REISERFS (device loop0): using ordered data mode [ 54.778596][ T4992] reiserfs: using flush barriers [ 54.784890][ T4992] 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 [ 54.801480][ T4992] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", MS_SYNCHRONOUS|MS_DIRSYNC|MS_RELATIME|MS_STRICTATIME, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 54.843421][ T4992] REISERFS (device loop0): Using r5 hash to sort names [ 54.851517][ T4992] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 54.869117][ T4992] [ 54.871483][ T4992] ====================================================== [ 54.878509][ T4992] WARNING: possible circular locking dependency detected [ 54.885609][ T4992] 6.4.0-rc6-syzkaller-00049-g62d8779610bb #0 Not tainted [ 54.892607][ T4992] ------------------------------------------------------ [ 54.899624][ T4992] syz-executor867/4992 is trying to acquire lock: [ 54.906244][ T4992] ffff8880762b0980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 54.917775][ T4992] [ 54.917775][ T4992] but task is already holding lock: [ 54.925119][ T4992] ffff88814664e090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 54.934668][ T4992] [ 54.934668][ T4992] which lock already depends on the new lock. [ 54.934668][ T4992] [ 54.945057][ T4992] [ 54.945057][ T4992] the existing dependency chain (in reverse order) is: [ 54.954059][ T4992] [ 54.954059][ T4992] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 54.961264][ T4992] lock_acquire+0x1e3/0x520 [ 54.966297][ T4992] __mutex_lock_common+0x1d8/0x2530 [ 54.972010][ T4992] mutex_lock_nested+0x1b/0x20 [ 54.977280][ T4992] reiserfs_write_lock+0x7a/0xd0 [ 54.982735][ T4992] reiserfs_mkdir+0x321/0x8f0 [ 54.987930][ T4992] open_xa_dir+0x2cd/0x610 [ 54.992950][ T4992] xattr_lookup+0x24/0x280 [ 54.997877][ T4992] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 55.003940][ T4992] reiserfs_security_write+0x157/0x1d0 [ 55.009911][ T4992] reiserfs_new_inode+0x1631/0x1d40 [ 55.015637][ T4992] reiserfs_create+0x3e7/0x6e0 [ 55.020913][ T4992] path_openat+0x13df/0x3170 [ 55.026020][ T4992] do_filp_open+0x234/0x490 [ 55.031028][ T4992] do_sys_openat2+0x13f/0x500 [ 55.036216][ T4992] __x64_sys_open+0x225/0x270 [ 55.041406][ T4992] do_syscall_64+0x41/0xc0 [ 55.046324][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.052720][ T4992] [ 55.052720][ T4992] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 55.061310][ T4992] validate_chain+0x166b/0x58f0 [ 55.066668][ T4992] __lock_acquire+0x1316/0x2070 [ 55.072020][ T4992] lock_acquire+0x1e3/0x520 [ 55.077033][ T4992] down_write_nested+0x3d/0x50 [ 55.082295][ T4992] open_xa_dir+0x136/0x610 [ 55.087213][ T4992] xattr_lookup+0x24/0x280 [ 55.092159][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 55.097602][ T4992] __vfs_getxattr+0x436/0x470 [ 55.102780][ T4992] smk_fetch+0xb1/0x140 [ 55.107528][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 55.113147][ T4992] security_d_instantiate+0x9b/0xf0 [ 55.118935][ T4992] d_instantiate_new+0x65/0x120 [ 55.124294][ T4992] reiserfs_create+0x5cf/0x6e0 [ 55.129567][ T4992] path_openat+0x13df/0x3170 [ 55.134660][ T4992] do_filp_open+0x234/0x490 [ 55.139666][ T4992] do_sys_openat2+0x13f/0x500 [ 55.144847][ T4992] __x64_sys_open+0x225/0x270 [ 55.150032][ T4992] do_syscall_64+0x41/0xc0 [ 55.154946][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.161340][ T4992] [ 55.161340][ T4992] other info that might help us debug this: [ 55.161340][ T4992] [ 55.171544][ T4992] Possible unsafe locking scenario: [ 55.171544][ T4992] [ 55.178970][ T4992] CPU0 CPU1 [ 55.184313][ T4992] ---- ---- [ 55.189655][ T4992] lock(&sbi->lock); [ 55.193618][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 55.201490][ T4992] lock(&sbi->lock); [ 55.207972][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 55.213329][ T4992] [ 55.213329][ T4992] *** DEADLOCK *** [ 55.213329][ T4992] [ 55.221448][ T4992] 3 locks held by syz-executor867/4992: [ 55.226967][ T4992] #0: ffff88807cc10460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 55.236090][ T4992] #1: ffff8880762b02e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 55.246246][ T4992] #2: ffff88814664e090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 55.256229][ T4992] [ 55.256229][ T4992] stack backtrace: [ 55.262091][ T4992] CPU: 0 PID: 4992 Comm: syz-executor867 Not tainted 6.4.0-rc6-syzkaller-00049-g62d8779610bb #0 [ 55.272474][ T4992] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 55.282517][ T4992] Call Trace: [ 55.285787][ T4992] [ 55.288698][ T4992] dump_stack_lvl+0x1e7/0x2d0 [ 55.293359][ T4992] ? nf_tcp_handle_invalid+0x650/0x650 [ 55.298921][ T4992] ? print_circular_bug+0x12b/0x1a0 [ 55.304106][ T4992] check_noncircular+0x2fe/0x3b0 [ 55.309026][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 55.314381][ T4992] ? add_chain_block+0x850/0x850 [ 55.319306][ T4992] ? lockdep_lock+0x123/0x2b0 [ 55.323965][ T4992] ? check_path+0x40/0x40 [ 55.328279][ T4992] ? noop_count+0x30/0x30 [ 55.332588][ T4992] ? _find_first_zero_bit+0xd4/0x100 [ 55.337851][ T4992] validate_chain+0x166b/0x58f0 [ 55.342684][ T4992] ? stack_trace_save+0x1c0/0x1c0 [ 55.347701][ T4992] ? reacquire_held_locks+0x660/0x660 [ 55.353061][ T4992] ? look_up_lock_class+0x77/0x140 [ 55.358156][ T4992] ? register_lock_class+0x104/0x990 [ 55.363420][ T4992] ? __lock_acquire+0x1316/0x2070 [ 55.368430][ T4992] ? is_dynamic_key+0x1f0/0x1f0 [ 55.373266][ T4992] ? mark_lock+0x9a/0x340 [ 55.377580][ T4992] __lock_acquire+0x1316/0x2070 [ 55.382678][ T4992] lock_acquire+0x1e3/0x520 [ 55.387163][ T4992] ? open_xa_dir+0x136/0x610 [ 55.393040][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 55.398408][ T4992] ? lockdep_hardirqs_on+0x98/0x140 [ 55.403616][ T4992] ? __might_sleep+0xc0/0xc0 [ 55.408199][ T4992] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 55.414185][ T4992] ? _raw_spin_unlock+0x40/0x40 [ 55.419023][ T4992] ? stack_trace_snprint+0xf0/0xf0 [ 55.424120][ T4992] down_write_nested+0x3d/0x50 [ 55.428875][ T4992] ? open_xa_dir+0x136/0x610 [ 55.433448][ T4992] open_xa_dir+0x136/0x610 [ 55.437861][ T4992] ? kasan_set_track+0x61/0x70 [ 55.442612][ T4992] ? kasan_set_track+0x4f/0x70 [ 55.447356][ T4992] ? security_d_instantiate+0x9b/0xf0 [ 55.452713][ T4992] ? listxattr_filler+0x500/0x500 [ 55.457719][ T4992] ? do_sys_openat2+0x13f/0x500 [ 55.462552][ T4992] ? __static_call_text_end+0x5bfa8/0x5bfa8 [ 55.468436][ T4992] xattr_lookup+0x24/0x280 [ 55.472832][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 55.477753][ T4992] ? security_get+0x6d/0xc0 [ 55.482237][ T4992] ? security_list+0x80/0x80 [ 55.486809][ T4992] __vfs_getxattr+0x436/0x470 [ 55.491475][ T4992] smk_fetch+0xb1/0x140 [ 55.495618][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 55.500715][ T4992] ? smack_sem_semop+0x230/0x230 [ 55.505635][ T4992] security_d_instantiate+0x9b/0xf0 [ 55.510817][ T4992] d_instantiate_new+0x65/0x120 [ 55.515647][ T4992] reiserfs_create+0x5cf/0x6e0 [ 55.520400][ T4992] ? reiserfs_lookup+0x580/0x580 [ 55.525329][ T4992] ? bpf_lsm_inode_create+0x9/0x10 [ 55.530417][ T4992] ? security_inode_create+0xb8/0x100 [ 55.535770][ T4992] ? reiserfs_lookup+0x580/0x580 [ 55.540684][ T4992] path_openat+0x13df/0x3170 [ 55.545262][ T4992] ? do_filp_open+0x490/0x490 [ 55.549920][ T4992] do_filp_open+0x234/0x490 [ 55.554403][ T4992] ? vfs_tmpfile+0x4a0/0x4a0 [ 55.558977][ T4992] ? _raw_spin_unlock+0x28/0x40 [ 55.563805][ T4992] ? alloc_fd+0x59c/0x640 [ 55.568118][ T4992] do_sys_openat2+0x13f/0x500 [ 55.572776][ T4992] ? print_irqtrace_events+0x220/0x220 [ 55.578218][ T4992] ? do_sys_open+0x230/0x230 [ 55.582790][ T4992] ? lockdep_hardirqs_on+0x98/0x140 [ 55.587969][ T4992] ? _raw_spin_unlock_irq+0x2e/0x50 [ 55.593157][ T4992] ? ptrace_notify+0x278/0x380 [ 55.597902][ T4992] __x64_sys_open+0x225/0x270 [ 55.602561][ T4992] ? do_sys_openat2+0x500/0x500 [ 55.607392][ T4992] ? syscall_enter_from_user_mode+0x32/0x230 [ 55.613351][ T4992] ? syscall_enter_from_user_mode+0x8c/0x230 [ 55.619310][ T4992] do_syscall_64+0x41/0xc0 [ 55.623705][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.629577][ T4992] RIP: 0033:0x7f7310238799 [ 55.633970][ T4992] 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 [ 55.653552][ T4992] RSP: 002b:00007fff7b2b0578 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 55.661941][ T4992] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7310238799 [ 55.669904][ T4992] RDX: 0000000000000000 RSI: 0000000000143042 RDI: 0000000020002000 [ 55.677865][ T4992] RBP: 00007f73101f8030 R08: 00000000000010f8 R09: 0000000000000000 [ 55.685822][ T4992] R10: 00007fff7b2b0440 R11: 0000000000000246 R12: 00007f73101f80c0 open("./bus", O_RDWR|O_CREAT|O_SYNC|O_NOATIME|FASYNC, 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 55.694035][ T4992] R13: 00000000000