./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor47854475 <...> Warning: Permanently added '10.128.0.97' (ED25519) to the list of known hosts. execve("./syz-executor47854475", ["./syz-executor47854475"], 0x7fff0bcf7140 /* 10 vars */) = 0 brk(NULL) = 0x555556a95000 brk(0x555556a95d00) = 0x555556a95d00 arch_prctl(ARCH_SET_FS, 0x555556a95380) = 0 set_tid_address(0x555556a95650) = 5029 set_robust_list(0x555556a95660, 24) = 0 rseq(0x555556a95ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor47854475", 4096) = 26 getrandom("\x68\xa3\x19\x8b\x34\x75\x90\xb6", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556a95d00 brk(0x555556ab6d00) = 0x555556ab6d00 brk(0x555556ab7000) = 0x555556ab7000 mprotect(0x7f694c79d000, 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) = 0x7f69442ec000 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(0x7f69442ec000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 60.250564][ T5029] syz-executor478[5029]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 60.302980][ T5029] loop0: detected capacity change from 0 to 8192 [ 60.315243][ T5029] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 60.328631][ T5029] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 60.339401][ T5029] REISERFS (device loop0): using ordered data mode [ 60.345966][ T5029] reiserfs: using flush barriers mount("/dev/loop0", "./file0", "reiserfs", MS_RDONLY|MS_NOSUID|MS_SYNCHRONOUS|MS_REC, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 mkdir(".", 0777) = -1 EEXIST (File exists) [ 60.355542][ T5029] 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 [ 60.372307][ T5029] REISERFS (device loop0): checking transaction log (loop0) [ 60.381982][ T5029] REISERFS (device loop0): Using tea hash to sort names [ 60.393589][ T5029] ======================================================= mount(NULL, ".", 0x200001c0, MS_NODEV|MS_NOEXEC|MS_SYNCHRONOUS|MS_REMOUNT|MS_MANDLOCK|MS_DIRSYNC|MS_NOATIME|MS_SILENT|MS_PRIVATE|MS_I_VERSION|MS_STRICTATIME, "") = 0 openat(AT_FDCWD, ".", O_RDONLY|O_DIRECTORY) = 4 chdir(".") = 0 [ 60.393589][ T5029] WARNING: The mand mount option has been deprecated and [ 60.393589][ T5029] and is ignored by this kernel. Remove the mand [ 60.393589][ T5029] option from the mount to silence this warning. [ 60.393589][ T5029] ======================================================= [ 60.429327][ T5029] reiserfs: enabling write barrier flush mode [ 60.441353][ T5029] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 60.454868][ T5029] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u) reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block [ 60.470137][ T5029] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u) reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block [ 60.484844][ T5029] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u) reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block [ 60.502312][ T5029] [ 60.504646][ T5029] ====================================================== [ 60.511637][ T5029] WARNING: possible circular locking dependency detected [ 60.518627][ T5029] 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 Not tainted [ 60.525618][ T5029] ------------------------------------------------------ [ 60.532609][ T5029] syz-executor478/5029 is trying to acquire lock: [ 60.538995][ T5029] ffff888077278980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 60.549124][ T5029] [ 60.549124][ T5029] but task is already holding lock: [ 60.556498][ T5029] ffff88807d1f3090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 60.566085][ T5029] [ 60.566085][ T5029] which lock already depends on the new lock. [ 60.566085][ T5029] [ 60.576583][ T5029] [ 60.576583][ T5029] the existing dependency chain (in reverse order) is: [ 60.585678][ T5029] [ 60.585678][ T5029] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 60.593139][ T5029] __mutex_lock+0x136/0xd60 [ 60.598159][ T5029] reiserfs_write_lock+0x7a/0xd0 [ 60.603611][ T5029] reiserfs_mkdir+0x321/0x8f0 [ 60.608799][ T5029] open_xa_dir+0x2cd/0x610 [ 60.613726][ T5029] xattr_lookup+0x24/0x280 [ 60.618655][ T5029] reiserfs_xattr_set_handle+0xfc/0xe20 [ 60.624882][ T5029] reiserfs_security_write+0x157/0x1d0 [ 60.630874][ T5029] reiserfs_new_inode+0x160d/0x1d10 [ 60.636768][ T5029] reiserfs_create+0x3e7/0x6e0 [ 60.642066][ T5029] path_openat+0x13e7/0x3180 [ 60.647182][ T5029] do_filp_open+0x234/0x490 [ 60.652213][ T5029] do_sys_openat2+0x13e/0x1d0 [ 60.657611][ T5029] __x64_sys_openat+0x247/0x290 [ 60.662969][ T5029] do_syscall_64+0x41/0xc0 [ 60.667902][ T5029] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.674408][ T5029] [ 60.674408][ T5029] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 60.683098][ T5029] __lock_acquire+0x39ff/0x7f70 [ 60.688458][ T5029] lock_acquire+0x1e3/0x520 [ 60.693466][ T5029] down_write_nested+0x3d/0x50 [ 60.698736][ T5029] open_xa_dir+0x136/0x610 [ 60.704020][ T5029] reiserfs_for_each_xattr+0x1a8/0xb40 [ 60.710166][ T5029] reiserfs_delete_xattrs+0x1f/0x90 [ 60.715877][ T5029] reiserfs_evict_inode+0x210/0x470 [ 60.721581][ T5029] evict+0x2a4/0x620 [ 60.725982][ T5029] reiserfs_new_inode+0x7c1/0x1d10 [ 60.731598][ T5029] reiserfs_create+0x3e7/0x6e0 [ 60.736879][ T5029] path_openat+0x13e7/0x3180 [ 60.741996][ T5029] do_filp_open+0x234/0x490 [ 60.747016][ T5029] do_sys_openat2+0x13e/0x1d0 [ 60.752225][ T5029] __x64_sys_openat+0x247/0x290 [ 60.757587][ T5029] do_syscall_64+0x41/0xc0 [ 60.762512][ T5029] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.769014][ T5029] [ 60.769014][ T5029] other info that might help us debug this: [ 60.769014][ T5029] [ 60.779225][ T5029] Possible unsafe locking scenario: [ 60.779225][ T5029] [ 60.786831][ T5029] CPU0 CPU1 [ 60.792178][ T5029] ---- ---- [ 60.797526][ T5029] lock(&sbi->lock); [ 60.801497][ T5029] lock(&type->i_mutex_dir_key#6/3); [ 60.809660][ T5029] lock(&sbi->lock); [ 60.816147][ T5029] lock(&type->i_mutex_dir_key#6/3); [ 60.821602][ T5029] [ 60.821602][ T5029] *** DEADLOCK *** [ 60.821602][ T5029] [ 60.829729][ T5029] 3 locks held by syz-executor478/5029: [ 60.835254][ T5029] #0: ffff8880768e6410 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 60.844387][ T5029] #1: ffff8880772782e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7c2/0x3180 [ 60.854643][ T5029] #2: ffff88807d1f3090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 60.864751][ T5029] [ 60.864751][ T5029] stack backtrace: [ 60.870623][ T5029] CPU: 0 PID: 5029 Comm: syz-executor478 Not tainted 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 [ 60.881015][ T5029] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 [ 60.891056][ T5029] Call Trace: [ 60.894327][ T5029] [ 60.897260][ T5029] dump_stack_lvl+0x1e7/0x2d0 [ 60.901927][ T5029] ? nf_tcp_handle_invalid+0x650/0x650 [ 60.907380][ T5029] ? print_circular_bug+0x12b/0x1a0 [ 60.912570][ T5029] check_noncircular+0x375/0x4a0 [ 60.917509][ T5029] ? print_deadlock_bug+0x600/0x600 [ 60.922708][ T5029] ? lockdep_lock+0x123/0x2b0 [ 60.927377][ T5029] ? mark_lock+0x9a/0x340 [ 60.931691][ T5029] ? _find_first_zero_bit+0xd4/0x100 [ 60.936971][ T5029] __lock_acquire+0x39ff/0x7f70 [ 60.941820][ T5029] ? verify_lock_unused+0x140/0x140 [ 60.947102][ T5029] ? is_bpf_text_address+0x26/0x2a0 [ 60.952287][ T5029] ? is_bpf_text_address+0x28d/0x2a0 [ 60.957558][ T5029] ? is_bpf_text_address+0x26/0x2a0 [ 60.962830][ T5029] ? stack_trace_save+0x1c0/0x1c0 [ 60.967950][ T5029] ? kernel_text_address+0xa3/0xe0 [ 60.973078][ T5029] ? __kernel_text_address+0xd/0x40 [ 60.978280][ T5029] ? unwind_get_return_address+0x91/0xc0 [ 60.983907][ T5029] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.989963][ T5029] ? arch_stack_walk+0x162/0x1a0 [ 60.994895][ T5029] lock_acquire+0x1e3/0x520 [ 60.999397][ T5029] ? open_xa_dir+0x136/0x610 [ 61.004070][ T5029] ? read_lock_is_recursive+0x20/0x20 [ 61.009444][ T5029] ? __might_sleep+0xc0/0xc0 [ 61.014032][ T5029] ? __lock_acquire+0x3683/0x7f70 [ 61.019044][ T5029] down_write_nested+0x3d/0x50 [ 61.023791][ T5029] ? open_xa_dir+0x136/0x610 [ 61.028369][ T5029] open_xa_dir+0x136/0x610 [ 61.032778][ T5029] ? listxattr_filler+0x500/0x500 [ 61.037789][ T5029] ? __asan_memset+0x23/0x40 [ 61.042370][ T5029] ? truncate_inode_pages_range+0x4fc/0x11a0 [ 61.048335][ T5029] ? reiserfs_for_each_xattr+0xb6/0xb40 [ 61.053875][ T5029] reiserfs_for_each_xattr+0x1a8/0xb40 [ 61.059323][ T5029] ? mapping_evict_folio+0x530/0x530 [ 61.064599][ T5029] ? reiserfs_for_each_xattr+0xb40/0xb40 [ 61.070220][ T5029] ? reiserfs_delete_xattrs+0x90/0x90 [ 61.075594][ T5029] ? reiserfs_xattr_init+0x670/0x670 [ 61.080880][ T5029] ? do_raw_spin_unlock+0x13b/0x8b0 [ 61.086067][ T5029] reiserfs_delete_xattrs+0x1f/0x90 [ 61.091253][ T5029] reiserfs_evict_inode+0x210/0x470 [ 61.096442][ T5029] ? entry_points_to_object+0x6f0/0x6f0 [ 61.101978][ T5029] ? do_raw_spin_unlock+0x13b/0x8b0 [ 61.107166][ T5029] ? entry_points_to_object+0x6f0/0x6f0 [ 61.112701][ T5029] evict+0x2a4/0x620 [ 61.116590][ T5029] reiserfs_new_inode+0x7c1/0x1d10 [ 61.121783][ T5029] ? reiserfs_write_inode+0x2e0/0x2e0 [ 61.127142][ T5029] ? do_journal_begin_r+0xdcd/0x1020 [ 61.132425][ T5029] ? journal_begin+0x1f3/0x360 [ 61.137175][ T5029] reiserfs_create+0x3e7/0x6e0 [ 61.141928][ T5029] ? reiserfs_lookup+0x580/0x580 [ 61.146864][ T5029] ? bpf_lsm_inode_create+0x9/0x10 [ 61.151976][ T5029] ? security_inode_create+0xb8/0x100 [ 61.157345][ T5029] ? reiserfs_lookup+0x580/0x580 [ 61.162273][ T5029] path_openat+0x13e7/0x3180 [ 61.166864][ T5029] ? do_filp_open+0x490/0x490 [ 61.171534][ T5029] do_filp_open+0x234/0x490 [ 61.176112][ T5029] ? vfs_tmpfile+0x4b0/0x4b0 [ 61.180709][ T5029] ? _raw_spin_unlock+0x28/0x40 [ 61.185634][ T5029] ? alloc_fd+0x59c/0x640 [ 61.189956][ T5029] do_sys_openat2+0x13e/0x1d0 [ 61.194623][ T5029] ? do_sys_open+0x230/0x230 [ 61.199210][ T5029] ? lockdep_hardirqs_on+0x98/0x140 [ 61.204482][ T5029] ? _raw_spin_unlock_irq+0x2e/0x50 [ 61.209672][ T5029] ? ptrace_notify+0x278/0x380 [ 61.214428][ T5029] __x64_sys_openat+0x247/0x290 [ 61.219279][ T5029] ? __ia32_sys_open+0x270/0x270 [ 61.224204][ T5029] ? syscall_enter_from_user_mode+0x32/0x230 [ 61.230177][ T5029] ? syscall_enter_from_user_mode+0x8c/0x230 [ 61.236167][ T5029] do_syscall_64+0x41/0xc0 [ 61.240586][ T5029] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 61.246914][ T5029] RIP: 0033:0x7f694c7296f9 [ 61.251416][ T5029] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 [ 61.271134][ T5029] RSP: 002b:00007ffe7506f3d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 61.279804][ T5029] RAX: ffffffffffffffda RBX: 00007ffe7506f5b8 RCX: 00007f694c7296f9 [ 61.287870][ T5029] RDX: 000000000000275a RSI: 0000000020000280 RDI: 00000000ffffff9c [ 61.295833][ T5029] RBP: 00007f694c79d610 R08: 00000000200000c0 R09: 0000000000000000 openat(AT_FDCWD, "cgroup.controllers", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = -1 ENOSPC (No space left on device) exit_group(0) = ? +++ exited with 0 +++ [ 61.303804][ T5029] R10: 0000000000000000 R11: 0000000000000246 R12: