./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2245125368 <...> Warning: Permanently added '10.128.1.239' (ED25519) to the list of known hosts. execve("./syz-executor2245125368", ["./syz-executor2245125368"], 0x7ffc8505f840 /* 10 vars */) = 0 brk(NULL) = 0x55557631c000 brk(0x55557631ce00) = 0x55557631ce00 arch_prctl(ARCH_SET_FS, 0x55557631c480) = 0 set_tid_address(0x55557631c750) = 5220 set_robust_list(0x55557631c760, 24) = 0 rseq(0x55557631cda0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2245125368", 4096) = 28 getrandom("\x5b\x95\xf5\x7d\x82\x5c\xf8\x62", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557631ce00 brk(0x55557633de00) = 0x55557633de00 brk(0x55557633e000) = 0x55557633e000 mprotect(0x7f262f061000, 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 rt_sigaction(SIGRTMIN, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGSEGV, {sa_handler=0x7f262efb6480, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f262efbe4f0}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7f262efb6480, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f262efbe4f0}, NULL, 8) = 0 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2626a00000 write(3, "\x02\x02\x02\x02\x02\x02\x02\x02\x74\x68\x69\x73\x20\x69\x73\x20\x61\x6e\x20\x6f\x63\x66\x73\x32\x20\x76\x6f\x6c\x75\x6d\x65\x00\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02"..., 16777216) = 16777216 munmap(0x7f2626a00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file1", 0777) = 0 [ 61.671933][ T5220] loop0: detected capacity change from 0 to 32768 [ 61.704730][ T5220] ======================================================= [ 61.704730][ T5220] WARNING: The mand mount option has been deprecated and mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,errors=remount-ro,coherency=full,coherency=full,localflocks,intr,noacl,") = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) unlink(NULL) = -1 EFAULT (Bad address) mkdir("./file0", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- mkdirat(AT_FDCWD, "./file1", 000) = 0 mkdirat(AT_FDCWD, "./bus", 000) = 0 [ 61.704730][ T5220] and is ignored by this kernel. Remove the mand [ 61.704730][ T5220] option from the mount to silence this warning. [ 61.704730][ T5220] ======================================================= [ 61.755355][ T5220] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 61.796023][ T5220] overlayfs: upper fs does not support tmpfile. [ 61.805172][ T5220] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 61.812658][ T5220] [ 61.814983][ T5220] ====================================================== [ 61.821990][ T5220] WARNING: possible circular locking dependency detected [ 61.828988][ T5220] 6.11.0-rc7-syzkaller-00149-g0babf683783d #0 Not tainted [ 61.836066][ T5220] ------------------------------------------------------ [ 61.843058][ T5220] syz-executor224/5220 is trying to acquire lock: [ 61.849455][ T5220] ffff888076c742c0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 61.862927][ T5220] [ 61.862927][ T5220] but task is already holding lock: [ 61.870262][ T5220] ffff888076c79538 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 61.879710][ T5220] [ 61.879710][ T5220] which lock already depends on the new lock. [ 61.879710][ T5220] [ 61.890086][ T5220] [ 61.890086][ T5220] the existing dependency chain (in reverse order) is: [ 61.899070][ T5220] [ 61.899070][ T5220] -> #4 (&oi->ip_xattr_sem){+.+.}-{3:3}: [ 61.906857][ T5220] lock_acquire+0x1ed/0x550 [ 61.911858][ T5220] down_write+0x99/0x220 [ 61.916604][ T5220] ocfs2_xattr_set_handle+0x539/0xa10 [ 61.922478][ T5220] ocfs2_init_security_set+0xbd/0xd0 [ 61.928273][ T5220] ocfs2_mknod+0x1ccf/0x2b40 [ 61.933371][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 61.938297][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 61.943045][ T5220] do_mkdirat+0x264/0x3a0 [ 61.947880][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 61.952974][ T5220] do_syscall_64+0xf3/0x230 [ 61.957979][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 61.964379][ T5220] [ 61.964379][ T5220] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 61.971662][ T5220] lock_acquire+0x1ed/0x550 [ 61.976674][ T5220] start_this_handle+0x1eb4/0x2110 [ 61.982295][ T5220] jbd2__journal_start+0x2da/0x5d0 [ 61.987908][ T5220] jbd2_journal_start+0x29/0x40 [ 61.993262][ T5220] ocfs2_start_trans+0x3c9/0x700 [ 61.998703][ T5220] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 62.005101][ T5220] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.011936][ T5220] ocfs2_mknod+0x143a/0x2b40 [ 62.017032][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 62.021955][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 62.026706][ T5220] do_mkdirat+0x264/0x3a0 [ 62.031539][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 62.036636][ T5220] do_syscall_64+0xf3/0x230 [ 62.041644][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.048041][ T5220] [ 62.048041][ T5220] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 62.056540][ T5220] lock_acquire+0x1ed/0x550 [ 62.061547][ T5220] down_read+0xb1/0xa40 [ 62.066208][ T5220] ocfs2_start_trans+0x3be/0x700 [ 62.071644][ T5220] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 62.078045][ T5220] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.084878][ T5220] ocfs2_mknod+0x143a/0x2b40 [ 62.089974][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 62.094894][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 62.099641][ T5220] do_mkdirat+0x264/0x3a0 [ 62.104475][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 62.109571][ T5220] do_syscall_64+0xf3/0x230 [ 62.114575][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.120974][ T5220] [ 62.120974][ T5220] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 62.128433][ T5220] lock_acquire+0x1ed/0x550 [ 62.133442][ T5220] ocfs2_start_trans+0x2b9/0x700 [ 62.138879][ T5220] ocfs2_mknod+0x150c/0x2b40 [ 62.143973][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 62.148896][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 62.153647][ T5220] do_mkdirat+0x264/0x3a0 [ 62.158479][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 62.163576][ T5220] do_syscall_64+0xf3/0x230 [ 62.168584][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.174982][ T5220] [ 62.174982][ T5220] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}: [ 62.185482][ T5220] validate_chain+0x18e0/0x5900 [ 62.190835][ T5220] __lock_acquire+0x137a/0x2040 [ 62.196195][ T5220] lock_acquire+0x1ed/0x550 [ 62.201200][ T5220] down_write+0x99/0x220 [ 62.205951][ T5220] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 62.212611][ T5220] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 62.219448][ T5220] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 62.225583][ T5220] ocfs2_xattr_set+0xf4e/0x1930 [ 62.230935][ T5220] __vfs_setxattr+0x468/0x4a0 [ 62.236117][ T5220] __vfs_setxattr_noperm+0x12e/0x660 [ 62.241907][ T5220] vfs_setxattr+0x221/0x430 [ 62.246916][ T5220] ovl_get_workdir+0xd90/0x1920 [ 62.252268][ T5220] ovl_fill_super+0x12a8/0x3560 [ 62.257620][ T5220] get_tree_nodev+0xb7/0x140 [ 62.262715][ T5220] vfs_get_tree+0x90/0x2b0 [ 62.267638][ T5220] do_new_mount+0x2be/0xb40 [ 62.272648][ T5220] __se_sys_mount+0x2d6/0x3c0 [ 62.277825][ T5220] do_syscall_64+0xf3/0x230 [ 62.282831][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.289228][ T5220] [ 62.289228][ T5220] other info that might help us debug this: [ 62.289228][ T5220] [ 62.299432][ T5220] Chain exists of: [ 62.299432][ T5220] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 62.299432][ T5220] [ 62.315146][ T5220] Possible unsafe locking scenario: [ 62.315146][ T5220] [ 62.322576][ T5220] CPU0 CPU1 [ 62.327921][ T5220] ---- ---- [ 62.333266][ T5220] lock(&oi->ip_xattr_sem); [ 62.337838][ T5220] lock(jbd2_handle); [ 62.344406][ T5220] lock(&oi->ip_xattr_sem); [ 62.351495][ T5220] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 62.358765][ T5220] [ 62.358765][ T5220] *** DEADLOCK *** [ 62.358765][ T5220] [ 62.366885][ T5220] 4 locks held by syz-executor224/5220: [ 62.372412][ T5220] #0: ffff8880303460e0 (&type->s_umount_key#44/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 [ 62.382504][ T5220] #1: ffff8880127dc420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 62.391646][ T5220] #2: ffff888076c79800 (&sb->s_type->i_mutex_key#16){++++}-{3:3}, at: vfs_setxattr+0x1e1/0x430 [ 62.402098][ T5220] #3: ffff888076c79538 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 62.412016][ T5220] [ 62.412016][ T5220] stack backtrace: [ 62.417896][ T5220] CPU: 0 UID: 0 PID: 5220 Comm: syz-executor224 Not tainted 6.11.0-rc7-syzkaller-00149-g0babf683783d #0 [ 62.428992][ T5220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 62.439057][ T5220] Call Trace: [ 62.442331][ T5220] [ 62.445249][ T5220] dump_stack_lvl+0x241/0x360 [ 62.449921][ T5220] ? __pfx_dump_stack_lvl+0x10/0x10 [ 62.455111][ T5220] ? print_circular_bug+0x130/0x1a0 [ 62.460298][ T5220] check_noncircular+0x36a/0x4a0 [ 62.465229][ T5220] ? __pfx_check_noncircular+0x10/0x10 [ 62.470676][ T5220] ? lockdep_lock+0x123/0x2b0 [ 62.475346][ T5220] validate_chain+0x18e0/0x5900 [ 62.480192][ T5220] ? __pfx_validate_chain+0x10/0x10 [ 62.485385][ T5220] ? mark_lock+0x9a/0x350 [ 62.489714][ T5220] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 62.495686][ T5220] ? __pfx_lock_release+0x10/0x10 [ 62.500695][ T5220] ? mark_lock+0x9a/0x350 [ 62.505013][ T5220] __lock_acquire+0x137a/0x2040 [ 62.509862][ T5220] lock_acquire+0x1ed/0x550 [ 62.514353][ T5220] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 62.520668][ T5220] ? __pfx_lock_acquire+0x10/0x10 [ 62.525679][ T5220] ? __pfx___might_resched+0x10/0x10 [ 62.530952][ T5220] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 62.537265][ T5220] ? __pfx_validate_chain+0x10/0x10 [ 62.542447][ T5220] down_write+0x99/0x220 [ 62.546672][ T5220] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 62.552982][ T5220] ? __pfx_down_write+0x10/0x10 [ 62.557819][ T5220] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 62.563964][ T5220] ? mark_lock+0x9a/0x350 [ 62.568282][ T5220] ? __lock_acquire+0x137a/0x2040 [ 62.573295][ T5220] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 62.579876][ T5220] ? __pfx_lock_acquire+0x10/0x10 [ 62.584886][ T5220] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 62.590939][ T5220] ? __pfx_lock_release+0x10/0x10 [ 62.595948][ T5220] ? do_raw_spin_lock+0x14f/0x370 [ 62.600956][ T5220] ? do_raw_spin_unlock+0x13c/0x8b0 [ 62.606140][ T5220] ? _raw_spin_unlock+0x28/0x50 [ 62.610978][ T5220] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 62.617036][ T5220] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 62.623355][ T5220] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 62.630194][ T5220] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 62.636334][ T5220] ? ocfs2_xattr_set+0xf00/0x1930 [ 62.641381][ T5220] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 62.647021][ T5220] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 62.653167][ T5220] ? up_write+0x1a9/0x590 [ 62.657486][ T5220] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 62.664068][ T5220] ? __pfx_up_write+0x10/0x10 [ 62.668734][ T5220] ? __kmalloc_cache_noprof+0x19c/0x2c0 [ 62.674270][ T5220] ocfs2_xattr_set+0xf4e/0x1930 [ 62.679115][ T5220] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 62.684389][ T5220] ? __pfx__prb_read_valid+0x10/0x10 [ 62.689665][ T5220] ? mark_lock+0x9a/0x350 [ 62.693991][ T5220] ? smk_tskacc+0x300/0x370 [ 62.698492][ T5220] ? posix_xattr_acl+0xa9/0xd0 [ 62.703241][ T5220] ? evm_protect_xattr+0x4be/0xb30 [ 62.708339][ T5220] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 62.714304][ T5220] __vfs_setxattr+0x468/0x4a0 [ 62.718973][ T5220] __vfs_setxattr_noperm+0x12e/0x660 [ 62.724250][ T5220] vfs_setxattr+0x221/0x430 [ 62.728744][ T5220] ? __pfx_vfs_setxattr+0x10/0x10 [ 62.733760][ T5220] ? _raw_spin_unlock+0x28/0x50 [ 62.738600][ T5220] ? dput+0x37/0x2b0 [ 62.742481][ T5220] ovl_get_workdir+0xd90/0x1920 [ 62.747319][ T5220] ? __pfx_ovl_get_workdir+0x10/0x10 [ 62.752588][ T5220] ? ovl_inuse_trylock+0xbc/0xd0 [ 62.757507][ T5220] ? do_raw_spin_lock+0x14f/0x370 [ 62.762519][ T5220] ? _raw_spin_unlock+0x28/0x50 [ 62.767356][ T5220] ? ovl_inuse_trylock+0xbc/0xd0 [ 62.772275][ T5220] ovl_fill_super+0x12a8/0x3560 [ 62.777110][ T5220] ? __pfx___might_resched+0x10/0x10 [ 62.782382][ T5220] ? shrinker_register+0x118/0x230 [ 62.787480][ T5220] ? __pfx_lock_release+0x10/0x10 [ 62.792496][ T5220] ? __pfx_ovl_fill_super+0x10/0x10 [ 62.797675][ T5220] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 62.803466][ T5220] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 62.809435][ T5220] ? sget_fc+0x909/0x9c0 [ 62.813664][ T5220] ? __pfx_set_anon_super_fc+0x10/0x10 [ 62.819108][ T5220] ? __pfx_ovl_fill_super+0x10/0x10 [ 62.824290][ T5220] get_tree_nodev+0xb7/0x140 [ 62.828887][ T5220] vfs_get_tree+0x90/0x2b0 [ 62.833308][ T5220] do_new_mount+0x2be/0xb40 [ 62.837812][ T5220] ? __pfx_do_new_mount+0x10/0x10 [ 62.842836][ T5220] __se_sys_mount+0x2d6/0x3c0 [ 62.847506][ T5220] ? __pfx___se_sys_mount+0x10/0x10 [ 62.852692][ T5220] ? do_syscall_64+0x100/0x230 [ 62.857447][ T5220] ? __x64_sys_mount+0x20/0xc0 [ 62.862208][ T5220] do_syscall_64+0xf3/0x230 [ 62.866699][ T5220] ? clear_bhb_loop+0x35/0x90 [ 62.871365][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.877249][ T5220] RIP: 0033:0x7f262efea4f9 [ 62.881654][ T5220] 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 [ 62.901249][ T5220] RSP: 002b:00007ffc1802ae08 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 62.909646][ T5220] RAX: ffffffffffffffda RBX: 00007ffc1802ae10 RCX: 00007f262efea4f9 [ 62.917601][ T5220] RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000 [ 62.925554][ T5220] RBP: 00007ffc1802ae18 R08: 0000000020000500 R09: 00007f262efb6480 [ 62.933507][ T5220] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 62.941459][ T5220] R13: 00007ffc1802b078 R14: 0000000000000001 R15: 0000000000000001 mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 62.949422][ T5220