./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4076309617 <...> DUID 00:04:d6:b0:09:ff:72:32:c6:5d:c0:56:b1:2d:70:06:fa:56 forked to background, child pid 4660 [ 30.203720][ T4661] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.221524][ T4661] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.190' (ECDSA) to the list of known hosts. execve("./syz-executor4076309617", ["./syz-executor4076309617"], 0x7ffe8aeaa750 /* 10 vars */) = 0 brk(NULL) = 0x555555d59000 brk(0x555555d59c40) = 0x555555d59c40 arch_prctl(ARCH_SET_FS, 0x555555d59300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor4076309617", 4096) = 28 brk(0x555555d7ac40) = 0x555555d7ac40 brk(0x555555d7b000) = 0x555555d7b000 mprotect(0x7f02dd37e000, 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) = 0x7f02d4ec4000 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(0x7f02d4ec4000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 58.846576][ T4991] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4991 'syz-executor407' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 58.893765][ T4991] loop0: detected capacity change from 0 to 8192 [ 58.905393][ T4991] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 58.918641][ T4991] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 58.928324][ T4991] REISERFS (device loop0): using journaled data mode [ 58.937788][ T4991] 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 [ 58.955776][ T4991] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", MS_REC, "block-allocator=no_unhashed_relocation,jqfmt=vfsv0,noattrs,block-allocator=test4,barrier=none,block-"...) = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 59.001313][ T4991] REISERFS (device loop0): Using r5 hash to sort names [ 59.009295][ T4991] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 59.034849][ T4991] [ 59.037235][ T4991] ====================================================== [ 59.044475][ T4991] WARNING: possible circular locking dependency detected [ 59.051785][ T4991] 6.4.0-rc6-syzkaller-00242-g1639fae5132b #0 Not tainted [ 59.059161][ T4991] ------------------------------------------------------ [ 59.066180][ T4991] syz-executor407/4991 is trying to acquire lock: [ 59.072585][ T4991] ffff8880782c8980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 59.082417][ T4991] [ 59.082417][ T4991] but task is already holding lock: [ 59.089765][ T4991] ffff8880152ce090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 59.099320][ T4991] [ 59.099320][ T4991] which lock already depends on the new lock. [ 59.099320][ T4991] [ 59.109704][ T4991] [ 59.109704][ T4991] the existing dependency chain (in reverse order) is: [ 59.118721][ T4991] [ 59.118721][ T4991] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 59.129171][ T4991] lock_acquire+0x1e3/0x520 [ 59.135272][ T4991] __mutex_lock_common+0x1d8/0x2530 [ 59.141355][ T4991] mutex_lock_nested+0x1b/0x20 [ 59.146625][ T4991] reiserfs_write_lock+0x7a/0xd0 [ 59.152077][ T4991] reiserfs_mkdir+0x321/0x8f0 [ 59.157258][ T4991] open_xa_dir+0x2cd/0x610 [ 59.162184][ T4991] xattr_lookup+0x24/0x280 [ 59.167103][ T4991] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 59.173156][ T4991] reiserfs_security_write+0x157/0x1d0 [ 59.179117][ T4991] reiserfs_new_inode+0x1631/0x1d40 [ 59.186416][ T4991] reiserfs_create+0x3e7/0x6e0 [ 59.192953][ T4991] path_openat+0x13df/0x3170 [ 59.198756][ T4991] do_filp_open+0x234/0x490 [ 59.203877][ T4991] do_sys_openat2+0x13f/0x500 [ 59.209080][ T4991] __x64_sys_creat+0x123/0x160 [ 59.214373][ T4991] do_syscall_64+0x41/0xc0 [ 59.219322][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.225736][ T4991] [ 59.225736][ T4991] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 59.234325][ T4991] validate_chain+0x166b/0x58f0 [ 59.239726][ T4991] __lock_acquire+0x1316/0x2070 [ 59.245096][ T4991] lock_acquire+0x1e3/0x520 [ 59.250114][ T4991] down_write_nested+0x3d/0x50 [ 59.255386][ T4991] open_xa_dir+0x136/0x610 [ 59.260309][ T4991] xattr_lookup+0x24/0x280 [ 59.265228][ T4991] reiserfs_xattr_get+0xfd/0x570 [ 59.270702][ T4991] __vfs_getxattr+0x436/0x470 [ 59.275911][ T4991] smk_fetch+0xb1/0x140 [ 59.280588][ T4991] smack_d_instantiate+0x6d9/0xb40 [ 59.286216][ T4991] security_d_instantiate+0x9b/0xf0 [ 59.291949][ T4991] d_instantiate_new+0x65/0x120 [ 59.297317][ T4991] reiserfs_create+0x5cf/0x6e0 [ 59.302585][ T4991] path_openat+0x13df/0x3170 [ 59.307682][ T4991] do_filp_open+0x234/0x490 [ 59.312754][ T4991] do_sys_openat2+0x13f/0x500 [ 59.317940][ T4991] __x64_sys_creat+0x123/0x160 [ 59.323641][ T4991] do_syscall_64+0x41/0xc0 [ 59.328634][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.340615][ T4991] [ 59.340615][ T4991] other info that might help us debug this: [ 59.340615][ T4991] [ 59.351456][ T4991] Possible unsafe locking scenario: [ 59.351456][ T4991] [ 59.358893][ T4991] CPU0 CPU1 [ 59.364243][ T4991] ---- ---- [ 59.373524][ T4991] lock(&sbi->lock); [ 59.378042][ T4991] lock(&type->i_mutex_dir_key#6/3); [ 59.387244][ T4991] lock(&sbi->lock); [ 59.395310][ T4991] lock(&type->i_mutex_dir_key#6/3); [ 59.401102][ T4991] [ 59.401102][ T4991] *** DEADLOCK *** [ 59.401102][ T4991] [ 59.409418][ T4991] 3 locks held by syz-executor407/4991: [ 59.414965][ T4991] #0: ffff888015eae460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 59.424526][ T4991] #1: ffff8880782c82e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 59.434770][ T4991] #2: ffff8880152ce090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 59.445279][ T4991] [ 59.445279][ T4991] stack backtrace: [ 59.451149][ T4991] CPU: 1 PID: 4991 Comm: syz-executor407 Not tainted 6.4.0-rc6-syzkaller-00242-g1639fae5132b #0 [ 59.461540][ T4991] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 59.471580][ T4991] Call Trace: [ 59.474842][ T4991] [ 59.477758][ T4991] dump_stack_lvl+0x1e7/0x2d0 [ 59.482445][ T4991] ? nf_tcp_handle_invalid+0x650/0x650 [ 59.487990][ T4991] ? print_circular_bug+0x12b/0x1a0 [ 59.493447][ T4991] check_noncircular+0x2fe/0x3b0 [ 59.498378][ T4991] ? read_lock_is_recursive+0x20/0x20 [ 59.503741][ T4991] ? add_chain_block+0x850/0x850 [ 59.508669][ T4991] ? lockdep_lock+0x123/0x2b0 [ 59.513392][ T4991] ? check_path+0x40/0x40 [ 59.517705][ T4991] ? noop_count+0x30/0x30 [ 59.522021][ T4991] ? _find_first_zero_bit+0xd4/0x100 [ 59.527285][ T4991] validate_chain+0x166b/0x58f0 [ 59.532120][ T4991] ? stack_trace_save+0x1c0/0x1c0 [ 59.537134][ T4991] ? reacquire_held_locks+0x660/0x660 [ 59.542493][ T4991] ? look_up_lock_class+0x77/0x140 [ 59.547600][ T4991] ? register_lock_class+0x104/0x990 [ 59.553216][ T4991] ? __lock_acquire+0x1316/0x2070 [ 59.558227][ T4991] ? is_dynamic_key+0x1f0/0x1f0 [ 59.563158][ T4991] ? mark_lock+0x9a/0x340 [ 59.567474][ T4991] __lock_acquire+0x1316/0x2070 [ 59.572313][ T4991] lock_acquire+0x1e3/0x520 [ 59.576798][ T4991] ? open_xa_dir+0x136/0x610 [ 59.581373][ T4991] ? read_lock_is_recursive+0x20/0x20 [ 59.586734][ T4991] ? lockdep_hardirqs_on+0x98/0x140 [ 59.591917][ T4991] ? __might_sleep+0xc0/0xc0 [ 59.596496][ T4991] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 59.602370][ T4991] ? _raw_spin_unlock+0x40/0x40 [ 59.607202][ T4991] ? stack_trace_snprint+0xf0/0xf0 [ 59.612301][ T4991] down_write_nested+0x3d/0x50 [ 59.617165][ T4991] ? open_xa_dir+0x136/0x610 [ 59.621743][ T4991] open_xa_dir+0x136/0x610 [ 59.626143][ T4991] ? kasan_set_track+0x61/0x70 [ 59.630894][ T4991] ? kasan_set_track+0x4f/0x70 [ 59.635639][ T4991] ? security_d_instantiate+0x9b/0xf0 [ 59.640998][ T4991] ? listxattr_filler+0x500/0x500 [ 59.646008][ T4991] ? do_sys_openat2+0x13f/0x500 [ 59.650935][ T4991] ? __static_call_text_end+0x5a188/0x5a188 [ 59.656815][ T4991] xattr_lookup+0x24/0x280 [ 59.661217][ T4991] reiserfs_xattr_get+0xfd/0x570 [ 59.666139][ T4991] ? security_get+0x6d/0xc0 [ 59.670629][ T4991] ? security_list+0x80/0x80 [ 59.675217][ T4991] __vfs_getxattr+0x436/0x470 [ 59.679906][ T4991] smk_fetch+0xb1/0x140 [ 59.684062][ T4991] smack_d_instantiate+0x6d9/0xb40 [ 59.689166][ T4991] ? smack_sem_semop+0x230/0x230 [ 59.694093][ T4991] security_d_instantiate+0x9b/0xf0 [ 59.699282][ T4991] d_instantiate_new+0x65/0x120 [ 59.704120][ T4991] reiserfs_create+0x5cf/0x6e0 [ 59.708875][ T4991] ? reiserfs_lookup+0x580/0x580 [ 59.713800][ T4991] ? bpf_lsm_inode_create+0x9/0x10 [ 59.719687][ T4991] ? security_inode_create+0xb8/0x100 [ 59.725324][ T4991] ? reiserfs_lookup+0x580/0x580 [ 59.730889][ T4991] path_openat+0x13df/0x3170 [ 59.736825][ T4991] ? do_filp_open+0x490/0x490 [ 59.744250][ T4991] do_filp_open+0x234/0x490 [ 59.749428][ T4991] ? vfs_tmpfile+0x4a0/0x4a0 [ 59.754160][ T4991] ? _raw_spin_unlock+0x28/0x40 [ 59.759340][ T4991] ? alloc_fd+0x59c/0x640 [ 59.766203][ T4991] do_sys_openat2+0x13f/0x500 [ 59.772014][ T4991] ? do_sys_open+0x230/0x230 [ 59.778723][ T4991] ? _raw_spin_unlock_irq+0x2e/0x50 [ 59.784451][ T4991] ? ptrace_notify+0x278/0x380 [ 59.789226][ T4991] __x64_sys_creat+0x123/0x160 [ 59.794107][ T4991] ? __x64_compat_sys_openat+0x290/0x290 [ 59.799839][ T4991] ? syscall_enter_from_user_mode+0x32/0x230 [ 59.805828][ T4991] ? syscall_enter_from_user_mode+0x8c/0x230 [ 59.811808][ T4991] do_syscall_64+0x41/0xc0 [ 59.816220][ T4991] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.822110][ T4991] RIP: 0033:0x7f02dd310cc9 [ 59.826596][ T4991] 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 [ 59.846308][ T4991] RSP: 002b:00007ffdfc2c5c18 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 creat("./bus", 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 59.