./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1096530574 <...> Warning: Permanently added '10.128.1.85' (ECDSA) to the list of known hosts. execve("./syz-executor1096530574", ["./syz-executor1096530574"], 0x7ffdf50e6f60 /* 10 vars */) = 0 brk(NULL) = 0x5555560c0000 brk(0x5555560c0c40) = 0x5555560c0c40 arch_prctl(ARCH_SET_FS, 0x5555560c0300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1096530574", 4096) = 28 brk(0x5555560e1c40) = 0x5555560e1c40 brk(0x5555560e2000) = 0x5555560e2000 mprotect(0x7f9987521000, 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) = 0x7f997f067000 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(0x7f997f067000, 4194304) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 54.536783][ T4992] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4992 'syz-executor109' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 54.580616][ T4992] loop0: detected capacity change from 0 to 8192 [ 54.592355][ T4992] REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 [ 54.605491][ T4992] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 54.614978][ T4992] REISERFS (device loop0): using ordered data mode [ 54.621568][ T4992] reiserfs: using flush barriers [ 54.627827][ 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.644331][ T4992] 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 [ 54.684651][ T4992] REISERFS (device loop0): Using r5 hash to sort names [ 54.692467][ T4992] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 54.710053][ T4992] [ 54.712406][ T4992] ====================================================== [ 54.719420][ T4992] WARNING: possible circular locking dependency detected [ 54.726440][ T4992] 6.4.0-rc7-syzkaller-00041-ge660abd551f1 #0 Not tainted [ 54.733453][ T4992] ------------------------------------------------------ [ 54.740449][ T4992] syz-executor109/4992 is trying to acquire lock: [ 54.746840][ T4992] ffff888079ad8980 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}, at: open_xa_dir+0x136/0x610 [ 54.756773][ T4992] [ 54.756773][ T4992] but task is already holding lock: [ 54.764118][ T4992] ffff88801eb37090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 54.773669][ T4992] [ 54.773669][ T4992] which lock already depends on the new lock. [ 54.773669][ T4992] [ 54.784049][ T4992] [ 54.784049][ T4992] the existing dependency chain (in reverse order) is: [ 54.793043][ T4992] [ 54.793043][ T4992] -> #1 (&sbi->lock){+.+.}-{3:3}: [ 54.800232][ T4992] lock_acquire+0x1e3/0x520 [ 54.805255][ T4992] __mutex_lock_common+0x1d8/0x2530 [ 54.811026][ T4992] mutex_lock_nested+0x1b/0x20 [ 54.816306][ T4992] reiserfs_write_lock+0x7a/0xd0 [ 54.821752][ T4992] reiserfs_mkdir+0x321/0x8f0 [ 54.826932][ T4992] open_xa_dir+0x2cd/0x610 [ 54.831860][ T4992] xattr_lookup+0x24/0x280 [ 54.836785][ T4992] reiserfs_xattr_set_handle+0xfc/0xdc0 [ 54.842832][ T4992] reiserfs_security_write+0x157/0x1d0 [ 54.848795][ T4992] reiserfs_new_inode+0x1631/0x1d40 [ 54.854508][ T4992] reiserfs_create+0x3e7/0x6e0 [ 54.859792][ T4992] path_openat+0x13df/0x3170 [ 54.864900][ T4992] do_filp_open+0x234/0x490 [ 54.869907][ T4992] do_sys_openat2+0x13f/0x500 [ 54.875091][ T4992] __x64_sys_open+0x225/0x270 [ 54.880272][ T4992] do_syscall_64+0x41/0xc0 [ 54.885217][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 54.891641][ T4992] [ 54.891641][ T4992] -> #0 (&type->i_mutex_dir_key#6/3){+.+.}-{3:3}: [ 54.900230][ T4992] validate_chain+0x166b/0x58f0 [ 54.905587][ T4992] __lock_acquire+0x1316/0x2070 [ 54.910941][ T4992] lock_acquire+0x1e3/0x520 [ 54.915952][ T4992] down_write_nested+0x3d/0x50 [ 54.921306][ T4992] open_xa_dir+0x136/0x610 [ 54.926311][ T4992] xattr_lookup+0x24/0x280 [ 54.931228][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 54.936666][ T4992] __vfs_getxattr+0x436/0x470 [ 54.941844][ T4992] smk_fetch+0xb1/0x140 [ 54.946503][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 54.952121][ T4992] security_d_instantiate+0x9b/0xf0 [ 54.957821][ T4992] d_instantiate_new+0x65/0x120 [ 54.963168][ T4992] reiserfs_create+0x5cf/0x6e0 [ 54.968430][ T4992] path_openat+0x13df/0x3170 [ 54.973521][ T4992] do_filp_open+0x234/0x490 [ 54.978520][ T4992] do_sys_openat2+0x13f/0x500 [ 54.983697][ T4992] __x64_sys_open+0x225/0x270 [ 54.988874][ T4992] do_syscall_64+0x41/0xc0 [ 54.993789][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.000189][ T4992] [ 55.000189][ T4992] other info that might help us debug this: [ 55.000189][ T4992] [ 55.010399][ T4992] Possible unsafe locking scenario: [ 55.010399][ T4992] [ 55.017821][ T4992] CPU0 CPU1 [ 55.023164][ T4992] ---- ---- [ 55.028502][ T4992] lock(&sbi->lock); [ 55.032461][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 55.040349][ T4992] lock(&sbi->lock); [ 55.046836][ T4992] lock(&type->i_mutex_dir_key#6/3); [ 55.052207][ T4992] [ 55.052207][ T4992] *** DEADLOCK *** [ 55.052207][ T4992] [ 55.060334][ T4992] 3 locks held by syz-executor109/4992: [ 55.065859][ T4992] #0: ffff88807cd42460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 55.074982][ T4992] #1: ffff888079ad82e0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 [ 55.085137][ T4992] #2: ffff88801eb37090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 [ 55.095126][ T4992] [ 55.095126][ T4992] stack backtrace: [ 55.100998][ T4992] CPU: 1 PID: 4992 Comm: syz-executor109 Not tainted 6.4.0-rc7-syzkaller-00041-ge660abd551f1 #0 [ 55.111399][ T4992] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 55.121438][ T4992] Call Trace: [ 55.124704][ T4992] [ 55.127619][ T4992] dump_stack_lvl+0x1e7/0x2d0 [ 55.132286][ T4992] ? nf_tcp_handle_invalid+0x650/0x650 [ 55.137734][ T4992] ? print_circular_bug+0x12b/0x1a0 [ 55.142917][ T4992] check_noncircular+0x2fe/0x3b0 [ 55.147835][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 55.153187][ T4992] ? add_chain_block+0x850/0x850 [ 55.158107][ T4992] ? lockdep_lock+0x123/0x2b0 [ 55.162859][ T4992] ? check_path+0x40/0x40 [ 55.167167][ T4992] ? noop_count+0x30/0x30 [ 55.171476][ T4992] ? _find_first_zero_bit+0xd4/0x100 [ 55.176748][ T4992] validate_chain+0x166b/0x58f0 [ 55.181580][ T4992] ? stack_trace_save+0x1c0/0x1c0 [ 55.186612][ T4992] ? reacquire_held_locks+0x660/0x660 [ 55.191968][ T4992] ? look_up_lock_class+0x77/0x140 [ 55.197057][ T4992] ? register_lock_class+0x104/0x990 [ 55.202322][ T4992] ? __lock_acquire+0x1316/0x2070 [ 55.207324][ T4992] ? is_dynamic_key+0x1f0/0x1f0 [ 55.212155][ T4992] ? mark_lock+0x9a/0x340 [ 55.216464][ T4992] __lock_acquire+0x1316/0x2070 [ 55.221305][ T4992] lock_acquire+0x1e3/0x520 [ 55.225787][ T4992] ? open_xa_dir+0x136/0x610 [ 55.230362][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 55.235717][ T4992] ? lockdep_hardirqs_on+0x98/0x140 [ 55.240897][ T4992] ? __might_sleep+0xc0/0xc0 [ 55.245470][ T4992] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 55.251345][ T4992] ? _raw_spin_unlock+0x40/0x40 [ 55.256175][ T4992] ? stack_trace_snprint+0xf0/0xf0 [ 55.261270][ T4992] down_write_nested+0x3d/0x50 [ 55.266017][ T4992] ? open_xa_dir+0x136/0x610 [ 55.270592][ T4992] open_xa_dir+0x136/0x610 [ 55.274992][ T4992] ? kasan_set_track+0x61/0x70 [ 55.279735][ T4992] ? kasan_set_track+0x4f/0x70 [ 55.284476][ T4992] ? security_d_instantiate+0x9b/0xf0 [ 55.289835][ T4992] ? listxattr_filler+0x500/0x500 [ 55.294841][ T4992] ? do_sys_openat2+0x13f/0x500 [ 55.299672][ T4992] ? __static_call_text_end+0x59188/0x59188 [ 55.305548][ T4992] xattr_lookup+0x24/0x280 [ 55.309948][ T4992] reiserfs_xattr_get+0xfd/0x570 [ 55.314867][ T4992] ? security_get+0x6d/0xc0 [ 55.319351][ T4992] ? security_list+0x80/0x80 [ 55.323921][ T4992] __vfs_getxattr+0x436/0x470 [ 55.328583][ T4992] smk_fetch+0xb1/0x140 [ 55.332723][ T4992] smack_d_instantiate+0x6d9/0xb40 [ 55.337815][ T4992] ? smack_sem_semop+0x230/0x230 [ 55.342738][ T4992] security_d_instantiate+0x9b/0xf0 [ 55.347920][ T4992] d_instantiate_new+0x65/0x120 [ 55.352750][ T4992] reiserfs_create+0x5cf/0x6e0 [ 55.357493][ T4992] ? reiserfs_lookup+0x580/0x580 [ 55.362412][ T4992] ? bpf_lsm_inode_create+0x9/0x10 [ 55.367499][ T4992] ? security_inode_create+0xb8/0x100 [ 55.372852][ T4992] ? reiserfs_lookup+0x580/0x580 [ 55.377767][ T4992] path_openat+0x13df/0x3170 [ 55.382343][ T4992] ? do_filp_open+0x490/0x490 [ 55.386999][ T4992] do_filp_open+0x234/0x490 [ 55.391479][ T4992] ? vfs_tmpfile+0x4a0/0x4a0 [ 55.396051][ T4992] ? _raw_spin_unlock+0x28/0x40 [ 55.400881][ T4992] ? alloc_fd+0x59c/0x640 [ 55.405191][ T4992] do_sys_openat2+0x13f/0x500 [ 55.409852][ T4992] ? print_irqtrace_events+0x220/0x220 [ 55.415307][ T4992] ? do_sys_open+0x230/0x230 [ 55.419878][ T4992] ? lockdep_hardirqs_on+0x98/0x140 [ 55.425056][ T4992] ? _raw_spin_unlock_irq+0x2e/0x50 [ 55.430233][ T4992] ? ptrace_notify+0x278/0x380 [ 55.434973][ T4992] __x64_sys_open+0x225/0x270 [ 55.439630][ T4992] ? do_sys_openat2+0x500/0x500 [ 55.444461][ T4992] ? syscall_enter_from_user_mode+0x32/0x230 [ 55.450421][ T4992] ? syscall_enter_from_user_mode+0x8c/0x230 [ 55.456380][ T4992] do_syscall_64+0x41/0xc0 [ 55.460776][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.466650][ T4992] RIP: 0033:0x7f99874b3789 [ 55.471056][ 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.490638][ T4992] RSP: 002b:00007ffc894f9738 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 55.499030][ T4992] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f99874b3789 [ 55.506981][ T4992] RDX: 0000000000000000 RSI: 0000000000143042 RDI: 0000000020002000 [ 55.514933][ T4992] RBP: 00007f9987473020 R08: 00000000000010fb R09: 0000000000000000 [ 55.522884][ T4992] R10: 00007ffc894f9600 R11: 0000000000000246 R12: 00007f99874730b0 [ 55.530833][ T4992] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 open("./bus", O_RDWR|O_CREAT|O_SYNC|O_NOATIME|FASYNC, 000) = 4 exit_group(0) = ? +++ exited with 0 +++