./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3258493915 <...> 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 [ 29.792377][ T4661] 8021q: adding VLAN 0 to HW filter on device bond0 [ 29.804427][ T4661] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.216' (ECDSA) to the list of known hosts. execve("./syz-executor3258493915", ["./syz-executor3258493915"], 0x7ffe56a21390 /* 10 vars */) = 0 brk(NULL) = 0x555555adf000 brk(0x555555adfc40) = 0x555555adfc40 arch_prctl(ARCH_SET_FS, 0x555555adf300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3258493915", 4096) = 28 brk(0x555555b00c40) = 0x555555b00c40 brk(0x555555b01000) = 0x555555b01000 mprotect(0x7fddeb0a7000, 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) = 0x7fdde2bed000 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(0x7fdde2bed000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 syzkaller login: [ 54.079614][ T4997] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4997 'syz-executor325' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 54.127345][ T4997] loop0: detected capacity change from 0 to 8192 [ 54.139045][ T4997] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 54.152129][ T4997] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 54.161770][ T4997] REISERFS (device loop0): using ordered data mode [ 54.168420][ T4997] reiserfs: using flush barriers [ 54.174500][ T4997] 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.191172][ T4997] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", 0, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 54.230417][ T4997] REISERFS (device loop0): Using r5 hash to sort names [ 54.238268][ T4997] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 54.266197][ T4997] [ 54.268662][ T4997] ====================================================== [ 54.275686][ T4997] WARNING: possible circular locking dependency detected [ 54.283219][ T4997] 6.4.0-rc5-syzkaller-00245-g64569520920a #0 Not tainted [ 54.290236][ T4997] ------------------------------------------------------ [ 54.297265][ T4997] syz-executor325/4997 is trying to acquire lock: [ 54.303661][ T4997] ffff8880786e0980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 54.313534][ T4997] [ 54.313534][ T4997] but task is already holding lock: [ 54.320901][ T4997] ffff8880156d1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 54.330502][ T4997] [ 54.330502][ T4997] which lock already depends on the new lock. [ 54.330502][ T4997] [ 54.340889][ T4997] [ 54.340889][ T4997] the existing dependency chain (in reverse order) is: [ 54.349907][ T4997] [ 54.349907][ T4997] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 54.357108][ T4997] lock_acquire+0x1e3/0x520 [ 54.362123][ T4997] __mutex_lock_common+0x1d8/0x2530 [ 54.367833][ T4997] mutex_lock_nested+0x1b/0x20 [ 54.373106][ T4997] reiserfs_write_lock+0x7a/0xd0 [ 54.378551][ T4997] reiserfs_mkdir+0x321/0x8f0 [ 54.383742][ T4997] open_xa_dir+0x2cd/0x610 [ 54.388665][ T4997] xattr_lookup+0x24/0x280 [ 54.393593][ T4997] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 54.399646][ T4997] reiserfs_security_write+0x157/0x1d0 [ 54.405698][ T4997] reiserfs_new_inode+0x1631/0x1d40 [ 54.411402][ T4997] reiserfs_create+0x3e7/0x6e0 [ 54.416667][ T4997] path_openat+0x13df/0x3170 [ 54.421770][ T4997] do_filp_open+0x234/0x490 [ 54.426777][ T4997] do_sys_openat2+0x13f/0x500 [ 54.431967][ T4997] __x64_sys_openat+0x247/0x290 [ 54.437322][ T4997] do_syscall_64+0x41/0xc0 [ 54.442241][ T4997] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 54.448727][ T4997] [ 54.448727][ T4997] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 54.457325][ T4997] validate_chain+0x166b/0x58f0 [ 54.462696][ T4997] __lock_acquire+0x1316/0x2070 [ 54.468062][ T4997] lock_acquire+0x1e3/0x520 [ 54.473082][ T4997] down_write_nested+0x3d/0x50 [ 54.478351][ T4997] open_xa_dir+0x136/0x610 [ 54.483271][ T4997] xattr_lookup+0x24/0x280 [ 54.488190][ T4997] reiserfs_xattr_get+0xfd/0x570 [ 54.493631][ T4997] __vfs_getxattr+0x436/0x470 [ 54.498814][ T4997] smk_fetch+0xb1/0x140 [ 54.503473][ T4997] smack_d_instantiate+0x6d9/0xb40 [ 54.509089][ T4997] security_d_instantiate+0x9b/0xf0 [ 54.514794][ T4997] d_instantiate_new+0x65/0x120 [ 54.520152][ T4997] reiserfs_create+0x5cf/0x6e0 [ 54.525420][ T4997] path_openat+0x13df/0x3170 [ 54.530520][ T4997] do_filp_open+0x234/0x490 [ 54.535525][ T4997] do_sys_openat2+0x13f/0x500 [ 54.540706][ T4997] __x64_sys_openat+0x247/0x290 [ 54.546065][ T4997] do_syscall_64+0x41/0xc0 [ 54.550990][ T4997] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 54.557397][ T4997] [ 54.557397][ T4997] other info that might help us debug this: [ 54.557397][ T4997] [ 54.567605][ T4997] Possible unsafe locking scenario: [ 54.567605][ T4997] [ 54.575037][ T4997] CPU0 CPU1 [ 54.580379][ T4997] ---- ---- [ 54.585719][ T4997] lock(&sbi->lock); [ 54.589684][ T4997] lock(&type->i_mutex_dir_key#6/3); [ 54.597561][ T4997] lock(&sbi->lock); [ 54.604040][ T4997] lock(&type->i_mutex_dir_key#6/3); [ 54.609403][ T4997] [ 54.609403][ T4997] *** DEADLOCK *** [ 54.609403][ T4997] [ 54.617527][ T4997] 3 locks held by syz-executor325/4997: [ 54.623048][ T4997] #0: ffff888079c14460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 54.632167][ T4997] #1: ffff8880786e02e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 54.642328][ T4997] #2: ffff8880156d1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 54.652347][ T4997] [ 54.652347][ T4997] stack backtrace: [ 54.658214][ T4997] CPU: 0 PID: 4997 Comm: syz-executor325 Not tainted 6.4.0-rc5-syzkaller-00245-g64569520920a #0 [ 54.668608][ T4997] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 54.678648][ T4997] Call Trace: [ 54.681911][ T4997] [ 54.684829][ T4997] dump_stack_lvl+0x1e7/0x2d0 [ 54.689491][ T4997] ? nf_tcp_handle_invalid+0x650/0x650 [ 54.694935][ T4997] ? print_circular_bug+0x12b/0x1a0 [ 54.700133][ T4997] check_noncircular+0x2fe/0x3b0 [ 54.705056][ T4997] ? read_lock_is_recursive+0x20/0x20 [ 54.710409][ T4997] ? add_chain_block+0x850/0x850 [ 54.715334][ T4997] ? lockdep_lock+0x123/0x2b0 [ 54.719996][ T4997] ? check_path+0x40/0x40 [ 54.724308][ T4997] ? noop_count+0x30/0x30 [ 54.728620][ T4997] ? _find_first_zero_bit+0xd4/0x100 [ 54.733885][ T4997] validate_chain+0x166b/0x58f0 [ 54.738722][ T4997] ? stack_trace_save+0x1c0/0x1c0 [ 54.743747][ T4997] ? reacquire_held_locks+0x660/0x660 [ 54.749104][ T4997] ? look_up_lock_class+0x77/0x140 [ 54.754294][ T4997] ? register_lock_class+0x104/0x990 [ 54.759566][ T4997] ? __lock_acquire+0x1316/0x2070 [ 54.764575][ T4997] ? is_dynamic_key+0x1f0/0x1f0 [ 54.769414][ T4997] ? mark_lock+0x9a/0x340 [ 54.773820][ T4997] __lock_acquire+0x1316/0x2070 [ 54.778662][ T4997] lock_acquire+0x1e3/0x520 [ 54.783153][ T4997] ? open_xa_dir+0x136/0x610 [ 54.787730][ T4997] ? read_lock_is_recursive+0x20/0x20 [ 54.793090][ T4997] ? lockdep_hardirqs_on+0x98/0x140 [ 54.798273][ T4997] ? __might_sleep+0xc0/0xc0 [ 54.802848][ T4997] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 54.808725][ T4997] ? _raw_spin_unlock+0x40/0x40 [ 54.813557][ T4997] ? stack_trace_snprint+0xf0/0xf0 [ 54.818656][ T4997] down_write_nested+0x3d/0x50 [ 54.823406][ T4997] ? open_xa_dir+0x136/0x610 [ 54.827984][ T4997] open_xa_dir+0x136/0x610 [ 54.832384][ T4997] ? kasan_set_track+0x61/0x70 [ 54.837132][ T4997] ? kasan_set_track+0x4f/0x70 [ 54.841917][ T4997] ? security_d_instantiate+0x9b/0xf0 [ 54.847274][ T4997] ? listxattr_filler+0x500/0x500 [ 54.852279][ T4997] ? do_sys_openat2+0x13f/0x500 [ 54.857113][ T4997] ? __static_call_text_end+0x5cfa8/0x5cfa8 [ 54.862993][ T4997] xattr_lookup+0x24/0x280 [ 54.867442][ T4997] reiserfs_xattr_get+0xfd/0x570 [ 54.872364][ T4997] ? security_get+0x6d/0xc0 [ 54.876851][ T4997] ? security_list+0x80/0x80 [ 54.881426][ T4997] __vfs_getxattr+0x436/0x470 [ 54.886089][ T4997] smk_fetch+0xb1/0x140 [ 54.890232][ T4997] smack_d_instantiate+0x6d9/0xb40 [ 54.895331][ T4997] ? smack_sem_semop+0x230/0x230 [ 54.900254][ T4997] security_d_instantiate+0x9b/0xf0 [ 54.905462][ T4997] d_instantiate_new+0x65/0x120 [ 54.910295][ T4997] reiserfs_create+0x5cf/0x6e0 [ 54.915130][ T4997] ? reiserfs_lookup+0x580/0x580 [ 54.920052][ T4997] ? bpf_lsm_inode_create+0x9/0x10 [ 54.925145][ T4997] ? security_inode_create+0xb8/0x100 [ 54.930501][ T4997] ? reiserfs_lookup+0x580/0x580 [ 54.935426][ T4997] path_openat+0x13df/0x3170 [ 54.940008][ T4997] ? do_filp_open+0x490/0x490 [ 54.944849][ T4997] do_filp_open+0x234/0x490 [ 54.949418][ T4997] ? vfs_tmpfile+0x4a0/0x4a0 [ 54.953999][ T4997] ? _raw_spin_unlock+0x28/0x40 [ 54.958832][ T4997] ? alloc_fd+0x59c/0x640 [ 54.963149][ T4997] do_sys_openat2+0x13f/0x500 [ 54.967810][ T4997] ? print_irqtrace_events+0x220/0x220 [ 54.973259][ T4997] ? do_sys_open+0x230/0x230 [ 54.977837][ T4997] ? lockdep_hardirqs_on+0x98/0x140 [ 54.983020][ T4997] ? _raw_spin_unlock_irq+0x2e/0x50 [ 54.988198][ T4997] ? ptrace_notify+0x278/0x380 [ 54.992945][ T4997] __x64_sys_openat+0x247/0x290 [ 54.997786][ T4997] ? __ia32_sys_open+0x270/0x270 [ 55.002715][ T4997] ? syscall_enter_from_user_mode+0x32/0x230 [ 55.008682][ T4997] ? syscall_enter_from_user_mode+0x8c/0x230 [ 55.014648][ T4997] do_syscall_64+0x41/0xc0 [ 55.019049][ T4997] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.024924][ T4997] RIP: 0033:0x7fddeb039799 [ 55.029323][ T4997] 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.049088][ T4997] RSP: 002b:00007ffe42568088 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 55.057485][ T4997] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fddeb039799 [ 55.065442][ T4997] RDX: 000000000000275a RSI: 00000000200001c0 RDI: 00000000ffffff9c [ 55.073397][ T4997] RBP: 00007fddeaff9030 R08: 00000000000010e6 R09: 0000000000000000 openat(AT_FDCWD, "cgroup.controllers", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 55.081441][ T4997] R10: 0000000