./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1389452942 <...> Warning: Permanently added '10.128.0.141' (ECDSA) to the list of known hosts. execve("./syz-executor1389452942", ["./syz-executor1389452942"], 0x7ffc109049e0 /* 10 vars */) = 0 brk(NULL) = 0x555557149000 brk(0x555557149c40) = 0x555557149c40 arch_prctl(ARCH_SET_FS, 0x555557149300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1389452942", 4096) = 28 brk(0x55555716ac40) = 0x55555716ac40 brk(0x55555716b000) = 0x55555716b000 mprotect(0x7f75dbf9e000, 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) = 0x7f75d3ae4000 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(0x7f75d3ae4000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 71.021345][ T4998] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4998 'syz-executor138' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 71.073538][ T4998] loop0: detected capacity change from 0 to 8192 [ 71.086006][ T4998] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 71.099524][ T4998] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 71.108851][ T4998] REISERFS (device loop0): using ordered data mode [ 71.115515][ T4998] reiserfs: using flush barriers [ 71.121901][ T4998] 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 [ 71.138645][ T4998] REISERFS (device loop0): checking transaction log (loop0) mount("/dev/loop0", "./file0", "reiserfs", MS_DIRSYNC, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 71.187977][ T4998] REISERFS (device loop0): Using r5 hash to sort names [ 71.196032][ T4998] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 71.215835][ T4998] [ 71.218212][ T4998] ====================================================== [ 71.225251][ T4998] WARNING: possible circular locking dependency detected [ 71.232301][ T4998] 6.4.0-rc7-syzkaller-00194-g8a28a0b6f1a1 #0 Not tainted [ 71.239393][ T4998] ------------------------------------------------------ [ 71.246421][ T4998] syz-executor138/4998 is trying to acquire lock: [ 71.252829][ T4998] ffff888075ac0980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 71.262783][ T4998] [ 71.262783][ T4998] but task is already holding lock: [ 71.270146][ T4998] ffff8880152bb090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 71.279730][ T4998] [ 71.279730][ T4998] which lock already depends on the new lock. [ 71.279730][ T4998] [ 71.290135][ T4998] [ 71.290135][ T4998] the existing dependency chain (in reverse order) is: [ 71.299142][ T4998] [ 71.299142][ T4998] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 71.306368][ T4998] lock_acquire+0x1e3/0x520 [ 71.311403][ T4998] __mutex_lock_common+0x1d8/0x2530 [ 71.317139][ T4998] mutex_lock_nested+0x1b/0x20 [ 71.322426][ T4998] reiserfs_write_lock+0x7a/0xd0 [ 71.327895][ T4998] reiserfs_mkdir+0x321/0x8f0 [ 71.333105][ T4998] open_xa_dir+0x2cd/0x610 [ 71.338307][ T4998] xattr_lookup+0x24/0x280 [ 71.343249][ T4998] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 71.349328][ T4998] reiserfs_security_write+0x157/0x1d0 [ 71.355316][ T4998] reiserfs_new_inode+0x1631/0x1d40 [ 71.361045][ T4998] reiserfs_create+0x3e7/0x6e0 [ 71.366333][ T4998] path_openat+0x13df/0x3170 [ 71.371448][ T4998] do_filp_open+0x234/0x490 [ 71.376473][ T4998] do_sys_openat2+0x13f/0x500 [ 71.381877][ T4998] __x64_sys_open+0x225/0x270 [ 71.387086][ T4998] do_syscall_64+0x41/0xc0 [ 71.392025][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.398448][ T4998] [ 71.398448][ T4998] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 71.407068][ T4998] validate_chain+0x166b/0x58f0 [ 71.412450][ T4998] __lock_acquire+0x1316/0x2070 [ 71.417835][ T4998] lock_acquire+0x1e3/0x520 [ 71.422958][ T4998] down_write_nested+0x3d/0x50 [ 71.428247][ T4998] open_xa_dir+0x136/0x610 [ 71.433194][ T4998] xattr_lookup+0x24/0x280 [ 71.438139][ T4998] reiserfs_xattr_get+0xfd/0x570 [ 71.443603][ T4998] __vfs_getxattr+0x436/0x470 [ 71.448809][ T4998] smk_fetch+0xb1/0x140 [ 71.453503][ T4998] smack_d_instantiate+0x6d9/0xb40 [ 71.459142][ T4998] security_d_instantiate+0x9b/0xf0 [ 71.464884][ T4998] d_instantiate_new+0x65/0x120 [ 71.470264][ T4998] reiserfs_create+0x5cf/0x6e0 [ 71.475555][ T4998] path_openat+0x13df/0x3170 [ 71.480677][ T4998] do_filp_open+0x234/0x490 [ 71.485707][ T4998] do_sys_openat2+0x13f/0x500 [ 71.491115][ T4998] __x64_sys_open+0x225/0x270 [ 71.496409][ T4998] do_syscall_64+0x41/0xc0 [ 71.501352][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.507772][ T4998] [ 71.507772][ T4998] other info that might help us debug this: [ 71.507772][ T4998] [ 71.517999][ T4998] Possible unsafe locking scenario: [ 71.517999][ T4998] [ 71.525443][ T4998] CPU0 CPU1 [ 71.530803][ T4998] ---- ---- [ 71.536168][ T4998] lock(&sbi->lock); [ 71.540156][ T4998] lock(&type->i_mutex_dir_key#6/3); [ 71.548063][ T4998] lock(&sbi->lock); [ 71.554570][ T4998] lock(&type->i_mutex_dir_key#6/3); [ 71.559957][ T4998] [ 71.559957][ T4998] *** DEADLOCK *** [ 71.559957][ T4998] [ 71.568702][ T4998] 3 locks held by syz-executor138/4998: [ 71.574240][ T4998] #0: ffff88807c6a8460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 71.583412][ T4998] #1: ffff888075ac02e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 71.593632][ T4998] #2: ffff8880152bb090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 71.603665][ T4998] [ 71.603665][ T4998] stack backtrace: [ 71.609552][ T4998] CPU: 1 PID: 4998 Comm: syz-executor138 Not tainted 6.4.0-rc7-syzkaller-00194-g8a28a0b6f1a1 #0 [ 71.619960][ T4998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 71.630028][ T4998] Call Trace: [ 71.633319][ T4998] [ 71.636316][ T4998] dump_stack_lvl+0x1e7/0x2d0 [ 71.641010][ T4998] ? nf_tcp_handle_invalid+0x650/0x650 [ 71.646501][ T4998] ? print_circular_bug+0x12b/0x1a0 [ 71.651817][ T4998] check_noncircular+0x2fe/0x3b0 [ 71.656778][ T4998] ? read_lock_is_recursive+0x20/0x20 [ 71.662172][ T4998] ? add_chain_block+0x850/0x850 [ 71.667213][ T4998] ? lockdep_lock+0x123/0x2b0 [ 71.672004][ T4998] ? check_path+0x40/0x40 [ 71.676355][ T4998] ? noop_count+0x30/0x30 [ 71.680701][ T4998] ? _find_first_zero_bit+0xd4/0x100 [ 71.685998][ T4998] validate_chain+0x166b/0x58f0 [ 71.690867][ T4998] ? stack_trace_save+0x1c0/0x1c0 [ 71.695913][ T4998] ? reacquire_held_locks+0x660/0x660 [ 71.701328][ T4998] ? look_up_lock_class+0x77/0x140 [ 71.706473][ T4998] ? register_lock_class+0x104/0x990 [ 71.711846][ T4998] ? __lock_acquire+0x1316/0x2070 [ 71.716896][ T4998] ? is_dynamic_key+0x1f0/0x1f0 [ 71.721763][ T4998] ? mark_lock+0x9a/0x340 [ 71.726103][ T4998] __lock_acquire+0x1316/0x2070 [ 71.730969][ T4998] lock_acquire+0x1e3/0x520 [ 71.735476][ T4998] ? open_xa_dir+0x136/0x610 [ 71.740077][ T4998] ? read_lock_is_recursive+0x20/0x20 [ 71.745532][ T4998] ? lockdep_hardirqs_on+0x98/0x140 [ 71.750751][ T4998] ? __might_sleep+0xc0/0xc0 [ 71.755366][ T4998] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 71.761305][ T4998] ? _raw_spin_unlock+0x40/0x40 [ 71.766173][ T4998] ? stack_trace_snprint+0xf0/0xf0 [ 71.771304][ T4998] down_write_nested+0x3d/0x50 [ 71.776082][ T4998] ? open_xa_dir+0x136/0x610 [ 71.780683][ T4998] open_xa_dir+0x136/0x610 [ 71.785124][ T4998] ? kasan_set_track+0x61/0x70 [ 71.789904][ T4998] ? kasan_set_track+0x4f/0x70 [ 71.794679][ T4998] ? security_d_instantiate+0x9b/0xf0 [ 71.800073][ T4998] ? listxattr_filler+0x500/0x500 [ 71.805141][ T4998] ? do_sys_openat2+0x13f/0x500 [ 71.810005][ T4998] ? __static_call_text_end+0x52188/0x52188 [ 71.815914][ T4998] xattr_lookup+0x24/0x280 [ 71.820343][ T4998] reiserfs_xattr_get+0xfd/0x570 [ 71.825305][ T4998] ? security_get+0x6d/0xc0 [ 71.829820][ T4998] ? security_list+0x80/0x80 [ 71.834426][ T4998] __vfs_getxattr+0x436/0x470 [ 71.839132][ T4998] smk_fetch+0xb1/0x140 [ 71.843304][ T4998] smack_d_instantiate+0x6d9/0xb40 [ 71.848452][ T4998] ? smack_sem_semop+0x230/0x230 [ 71.853413][ T4998] security_d_instantiate+0x9b/0xf0 [ 71.858625][ T4998] d_instantiate_new+0x65/0x120 [ 71.863481][ T4998] reiserfs_create+0x5cf/0x6e0 [ 71.868276][ T4998] ? reiserfs_lookup+0x580/0x580 [ 71.873238][ T4998] ? bpf_lsm_inode_create+0x9/0x10 [ 71.878384][ T4998] ? security_inode_create+0xb8/0x100 [ 71.883764][ T4998] ? reiserfs_lookup+0x580/0x580 [ 71.888714][ T4998] path_openat+0x13df/0x3170 [ 71.893322][ T4998] ? do_filp_open+0x490/0x490 [ 71.898017][ T4998] do_filp_open+0x234/0x490 [ 71.902525][ T4998] ? vfs_tmpfile+0x4a0/0x4a0 [ 71.907164][ T4998] ? _raw_spin_unlock+0x28/0x40 [ 71.912025][ T4998] ? alloc_fd+0x59c/0x640 [ 71.916371][ T4998] do_sys_openat2+0x13f/0x500 [ 71.921063][ T4998] ? print_irqtrace_events+0x220/0x220 [ 71.928655][ T4998] ? do_sys_open+0x230/0x230 [ 71.933268][ T4998] ? lockdep_hardirqs_on+0x98/0x140 [ 71.938479][ T4998] ? _raw_spin_unlock_irq+0x2e/0x50 [ 71.943694][ T4998] ? ptrace_notify+0x278/0x380 [ 71.948472][ T4998] __x64_sys_open+0x225/0x270 [ 71.953167][ T4998] ? do_sys_openat2+0x500/0x500 [ 71.958047][ T4998] ? syscall_enter_from_user_mode+0x32/0x230 [ 71.964037][ T4998] ? syscall_enter_from_user_mode+0x8c/0x230 [ 71.970030][ T4998] do_syscall_64+0x41/0xc0 [ 71.974453][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.980358][ T4998] RIP: 0033:0x7f75dbf30789 [ 71.984778][ T4998] 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 [ 72.004481][ T4998] RSP: 002b:00007fffb521e4c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 72.012901][ T4998] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f75dbf30789 [ 72.020874][ T4998] RDX: 0000000000000000 RSI: 0000000000143142 RDI: 0000000020002000 [ 72.028847][ T4998] RBP: 00007f75dbef0020 R08: 00000000000010fb R09: 0000000000000000 open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_NOATIME|FASYNC, 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 72.036995][ T4998] R10: 00007fffb521e390 R11: 00000