./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3138216481 <...> Warning: Permanently added '10.128.1.2' (ED25519) to the list of known hosts. execve("./syz-executor3138216481", ["./syz-executor3138216481"], 0x7ffcc4f23900 /* 10 vars */) = 0 brk(NULL) = 0x5555912a5000 brk(0x5555912a5e00) = 0x5555912a5e00 arch_prctl(ARCH_SET_FS, 0x5555912a5480) = 0 set_tid_address(0x5555912a5750) = 5821 set_robust_list(0x5555912a5760, 24) = 0 rseq(0x5555912a5da0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3138216481", 4096) = 28 getrandom("\x22\x28\x0d\x81\x22\x86\x80\x9f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555912a5e00 brk(0x5555912c6e00) = 0x5555912c6e00 brk(0x5555912c7000) = 0x5555912c7000 mprotect(0x7f052504d000, 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=0x7f0524fa2060, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f0524faa0d0}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7f0524fa2060, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f0524faa0d0}, 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) = 0x7f051ca00000 write(3, "\x02\x02\x02\x02\x02\x02\x02\x02\x01\x00\x01\x00\x00\x00\x00\x00\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(0x7f051ca00000, 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 [ 64.451283][ T5821] loop0: detected capacity change from 0 to 32768 [ 64.505764][ T5821] ======================================================= [ 64.505764][ T5821] WARNING: The mand mount option has been deprecated and [ 64.505764][ T5821] and is ignored by this kernel. Remove the mand [ 64.505764][ T5821] option from the mount to silence this warning. [ 64.505764][ T5821] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_SYNCHRONOUS|MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME|MS_STRICTATIME, "acl,heartbeat=none,errors=remount-ro,coherency=full,preferred_slot=00000000000000000001,localflocks,"...) = 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) open(NULL, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_LARGEFILE|O_NOATIME|0x3c, 0206) = -1 EFAULT (Bad address) mkdir("./file0", 000) = 0 mkdir("./file2", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 64.558033][ T5821] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 64.585839][ T5821] overlayfs: upper fs does not support tmpfile. [ 64.594897][ T5821] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 64.602727][ T5821] [ 64.605056][ T5821] ====================================================== [ 64.612055][ T5821] WARNING: possible circular locking dependency detected [ 64.619155][ T5821] 6.13.0-rc7-syzkaller-00209-g9528d418de4d #0 Not tainted [ 64.626242][ T5821] ------------------------------------------------------ [ 64.633250][ T5821] syz-executor313/5821 is trying to acquire lock: [ 64.639674][ T5821] ffff888077c12640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.653194][ T5821] [ 64.653194][ T5821] but task is already holding lock: [ 64.660626][ T5821] ffff888077c15c78 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 64.670104][ T5821] [ 64.670104][ T5821] which lock already depends on the new lock. [ 64.670104][ T5821] [ 64.680515][ T5821] [ 64.680515][ T5821] the existing dependency chain (in reverse order) is: [ 64.689526][ T5821] [ 64.689526][ T5821] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 64.697340][ T5821] lock_acquire+0x1ed/0x550 [ 64.702360][ T5821] down_write+0x99/0x220 [ 64.707128][ T5821] ocfs2_xattr_set_handle+0x539/0xa10 [ 64.713019][ T5821] ocfs2_init_security_set+0xbd/0xd0 [ 64.718904][ T5821] ocfs2_mknod+0x1ccf/0x2b30 [ 64.724010][ T5821] ocfs2_mkdir+0x1ab/0x470 [ 64.729063][ T5821] vfs_mkdir+0x2f9/0x4f0 [ 64.733882][ T5821] do_mkdirat+0x264/0x3a0 [ 64.738733][ T5821] __x64_sys_mkdir+0x6c/0x80 [ 64.743863][ T5821] do_syscall_64+0xf3/0x230 [ 64.748886][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.755297][ T5821] [ 64.755297][ T5821] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 64.762589][ T5821] lock_acquire+0x1ed/0x550 [ 64.767612][ T5821] start_this_handle+0x1eb4/0x2110 [ 64.773238][ T5821] jbd2__journal_start+0x2da/0x5d0 [ 64.778866][ T5821] jbd2_journal_start+0x29/0x40 [ 64.784227][ T5821] ocfs2_start_trans+0x3c9/0x700 [ 64.789698][ T5821] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 64.796130][ T5821] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 64.802983][ T5821] ocfs2_mknod+0x143a/0x2b30 [ 64.808088][ T5821] ocfs2_mkdir+0x1ab/0x470 [ 64.813018][ T5821] vfs_mkdir+0x2f9/0x4f0 [ 64.817774][ T5821] do_mkdirat+0x264/0x3a0 [ 64.822617][ T5821] __x64_sys_mkdir+0x6c/0x80 [ 64.827721][ T5821] do_syscall_64+0xf3/0x230 [ 64.832745][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.839156][ T5821] [ 64.839156][ T5821] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 64.847665][ T5821] lock_acquire+0x1ed/0x550 [ 64.852695][ T5821] down_read+0xb1/0xa40 [ 64.857389][ T5821] ocfs2_start_trans+0x3be/0x700 [ 64.862893][ T5821] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 64.869318][ T5821] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 64.876169][ T5821] ocfs2_mknod+0x143a/0x2b30 [ 64.881273][ T5821] ocfs2_mkdir+0x1ab/0x470 [ 64.886204][ T5821] vfs_mkdir+0x2f9/0x4f0 [ 64.890963][ T5821] do_mkdirat+0x264/0x3a0 [ 64.895805][ T5821] __x64_sys_mkdir+0x6c/0x80 [ 64.900913][ T5821] do_syscall_64+0xf3/0x230 [ 64.905933][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.912342][ T5821] [ 64.912342][ T5821] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 64.919821][ T5821] lock_acquire+0x1ed/0x550 [ 64.924836][ T5821] ocfs2_start_trans+0x2b9/0x700 [ 64.930286][ T5821] ocfs2_mknod+0x150c/0x2b30 [ 64.935385][ T5821] ocfs2_mkdir+0x1ab/0x470 [ 64.940308][ T5821] vfs_mkdir+0x2f9/0x4f0 [ 64.945064][ T5821] do_mkdirat+0x264/0x3a0 [ 64.949927][ T5821] __x64_sys_mkdir+0x6c/0x80 [ 64.955031][ T5821] do_syscall_64+0xf3/0x230 [ 64.960048][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.966458][ T5821] [ 64.966458][ T5821] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 64.976969][ T5821] validate_chain+0x18ef/0x5920 [ 64.982335][ T5821] __lock_acquire+0x1397/0x2100 [ 64.987695][ T5821] lock_acquire+0x1ed/0x550 [ 64.992711][ T5821] down_write+0x99/0x220 [ 64.997466][ T5821] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 65.004134][ T5821] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 65.010977][ T5821] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 65.017157][ T5821] ocfs2_xattr_set+0xf4e/0x1930 [ 65.022527][ T5821] __vfs_setxattr+0x468/0x4a0 [ 65.027716][ T5821] __vfs_setxattr_noperm+0x12e/0x660 [ 65.033513][ T5821] vfs_setxattr+0x221/0x430 [ 65.038530][ T5821] ovl_get_workdir+0xd90/0x1920 [ 65.043900][ T5821] ovl_fill_super+0x12a8/0x3560 [ 65.049262][ T5821] get_tree_nodev+0xb7/0x140 [ 65.054449][ T5821] vfs_get_tree+0x90/0x2b0 [ 65.059384][ T5821] do_new_mount+0x2be/0xb40 [ 65.064400][ T5821] __se_sys_mount+0x2d6/0x3c0 [ 65.069586][ T5821] do_syscall_64+0xf3/0x230 [ 65.074604][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 65.081024][ T5821] [ 65.081024][ T5821] other info that might help us debug this: [ 65.081024][ T5821] [ 65.091240][ T5821] Chain exists of: [ 65.091240][ T5821] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 65.091240][ T5821] [ 65.106969][ T5821] Possible unsafe locking scenario: [ 65.106969][ T5821] [ 65.114407][ T5821] CPU0 CPU1 [ 65.119759][ T5821] ---- ---- [ 65.125112][ T5821] lock(&oi->ip_xattr_sem); [ 65.129696][ T5821] lock(jbd2_handle); [ 65.136366][ T5821] lock(&oi->ip_xattr_sem); [ 65.143487][ T5821] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 65.150766][ T5821] [ 65.150766][ T5821] *** DEADLOCK *** [ 65.150766][ T5821] [ 65.158900][ T5821] 4 locks held by syz-executor313/5821: [ 65.164431][ T5821] #0: ffff88807e0440e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 65.174548][ T5821] #1: ffff88807cce2420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 65.183705][ T5821] #2: ffff888077c15f40 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 65.194159][ T5821] #3: ffff888077c15c78 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 65.204083][ T5821] [ 65.204083][ T5821] stack backtrace: [ 65.209973][ T5821] CPU: 0 UID: 0 PID: 5821 Comm: syz-executor313 Not tainted 6.13.0-rc7-syzkaller-00209-g9528d418de4d #0 [ 65.221155][ T5821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 65.231207][ T5821] Call Trace: [ 65.234489][ T5821] [ 65.237411][ T5821] dump_stack_lvl+0x241/0x360 [ 65.242094][ T5821] ? __pfx_dump_stack_lvl+0x10/0x10 [ 65.247289][ T5821] ? __pfx__printk+0x10/0x10 [ 65.251876][ T5821] print_circular_bug+0x13a/0x1b0 [ 65.256918][ T5821] check_noncircular+0x36a/0x4a0 [ 65.261852][ T5821] ? __pfx_check_noncircular+0x10/0x10 [ 65.267303][ T5821] ? lockdep_lock+0x123/0x2b0 [ 65.272048][ T5821] validate_chain+0x18ef/0x5920 [ 65.276891][ T5821] ? __pfx_validate_chain+0x10/0x10 [ 65.282088][ T5821] ? __pfx_validate_chain+0x10/0x10 [ 65.287279][ T5821] ? mark_lock+0x9a/0x360 [ 65.291602][ T5821] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 65.297573][ T5821] ? __pfx_lock_release+0x10/0x10 [ 65.302590][ T5821] ? mark_lock+0x9a/0x360 [ 65.306915][ T5821] __lock_acquire+0x1397/0x2100 [ 65.311760][ T5821] lock_acquire+0x1ed/0x550 [ 65.316252][ T5821] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 65.322574][ T5821] ? __pfx_lock_acquire+0x10/0x10 [ 65.327589][ T5821] ? __pfx___might_resched+0x10/0x10 [ 65.332872][ T5821] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 65.339194][ T5821] ? __pfx_validate_chain+0x10/0x10 [ 65.344477][ T5821] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 65.350449][ T5821] down_write+0x99/0x220 [ 65.354682][ T5821] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 65.361002][ T5821] ? __pfx_down_write+0x10/0x10 [ 65.365846][ T5821] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 65.372082][ T5821] ? mark_lock+0x9a/0x360 [ 65.376404][ T5821] ? __lock_acquire+0x1397/0x2100 [ 65.381420][ T5821] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 65.388002][ T5821] ? __pfx_lock_acquire+0x10/0x10 [ 65.393016][ T5821] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 65.399077][ T5821] ? __pfx_lock_release+0x10/0x10 [ 65.404092][ T5821] ? do_raw_spin_lock+0x14f/0x370 [ 65.409108][ T5821] ? do_raw_spin_unlock+0x13c/0x8b0 [ 65.414302][ T5821] ? _raw_spin_unlock+0x28/0x50 [ 65.419146][ T5821] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 65.425219][ T5821] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 65.431543][ T5821] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 65.438386][ T5821] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 65.444539][ T5821] ? ocfs2_xattr_set+0xf00/0x1930 [ 65.449560][ T5821] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 65.455189][ T5821] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 65.461341][ T5821] ? up_write+0x1a9/0x590 [ 65.465664][ T5821] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 65.472264][ T5821] ? __pfx_up_write+0x10/0x10 [ 65.476935][ T5821] ? __kmalloc_cache_noprof+0x243/0x390 [ 65.482477][ T5821] ? ocfs2_xattr_set+0x4d5/0x1930 [ 65.487503][ T5821] ocfs2_xattr_set+0xf4e/0x1930 [ 65.492357][ T5821] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 65.497635][ T5821] ? __lock_acquire+0x1397/0x2100 [ 65.502665][ T5821] ? smk_tskacc+0x300/0x370 [ 65.507165][ T5821] ? posix_xattr_acl+0xa9/0xd0 [ 65.511928][ T5821] ? evm_protect_xattr+0x4be/0xb30 [ 65.517031][ T5821] ? ocfs2_xattr_user_set+0xae/0x100 [ 65.522314][ T5821] ? __pfx_ocfs2_xattr_user_set+0x10/0x10 [ 65.528027][ T5821] __vfs_setxattr+0x468/0x4a0 [ 65.532705][ T5821] __vfs_setxattr_noperm+0x12e/0x660 [ 65.537990][ T5821] vfs_setxattr+0x221/0x430 [ 65.542490][ T5821] ? __pfx_vfs_setxattr+0x10/0x10 [ 65.547516][ T5821] ? _raw_spin_unlock+0x28/0x50 [ 65.552361][ T5821] ? dput+0x37/0x2b0 [ 65.556245][ T5821] ovl_get_workdir+0xd90/0x1920 [ 65.561093][ T5821] ? __pfx_ovl_get_workdir+0x10/0x10 [ 65.566373][ T5821] ? ovl_inuse_trylock+0xab/0xf0 [ 65.571299][ T5821] ? do_raw_spin_lock+0x14f/0x370 [ 65.576325][ T5821] ? _raw_spin_unlock+0x28/0x50 [ 65.581167][ T5821] ? ovl_inuse_trylock+0xab/0xf0 [ 65.586102][ T5821] ovl_fill_super+0x12a8/0x3560 [ 65.590945][ T5821] ? __pfx___mutex_trylock_common+0x10/0x10 [ 65.596834][ T5821] ? shrinker_register+0x118/0x230 [ 65.601940][ T5821] ? __pfx_lock_release+0x10/0x10 [ 65.606961][ T5821] ? __pfx_ovl_fill_super+0x10/0x10 [ 65.612150][ T5821] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 65.617948][ T5821] ? __pfx___mutex_lock+0x10/0x10 [ 65.622967][ T5821] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 65.628945][ T5821] ? sget_fc+0x909/0x9c0 [ 65.633180][ T5821] ? __pfx_set_anon_super_fc+0x10/0x10 [ 65.638636][ T5821] ? __pfx_ovl_fill_super+0x10/0x10 [ 65.643828][ T5821] get_tree_nodev+0xb7/0x140 [ 65.648413][ T5821] vfs_get_tree+0x90/0x2b0 [ 65.652822][ T5821] do_new_mount+0x2be/0xb40 [ 65.657321][ T5821] ? __pfx_do_new_mount+0x10/0x10 [ 65.662344][ T5821] __se_sys_mount+0x2d6/0x3c0 [ 65.667010][ T5821] ? __pfx___se_sys_mount+0x10/0x10 [ 65.672207][ T5821] ? exc_page_fault+0x590/0x8b0 [ 65.677054][ T5821] ? __x64_sys_mount+0x20/0xc0 [ 65.681820][ T5821] do_syscall_64+0xf3/0x230 [ 65.686323][ T5821] ? clear_bhb_loop+0x35/0x90 [ 65.690990][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 65.696895][ T5821] RIP: 0033:0x7f0524fd60f9 [ 65.701305][ T5821] 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 [ 65.720904][ T5821] RSP: 002b:00007fffbb942ac8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 65.729310][ T5821] RAX: ffffffffffffffda RBX: 00007fffbb942ad0 RCX: 00007f0524fd60f9 [ 65.737274][ T5821] RDX: 0000000020000000 RSI: 0000000020000080 RDI: 0000000000000000 [ 65.745234][ T5821] RBP: 00007fffbb942ad8 R08: 0000000020000380 R09: 00007f0524fa2060 [ 65.753198][ T5821] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 mount(NULL, "./file0", "overlay", 0, "workdir=./file0,lowerdir=.,upperdir=./file2,userxattr,,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 65.761158][ T5821] R13: 0