./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor585571034 <...> Warning: Permanently added '10.128.0.122' (ED25519) to the list of known hosts. execve("./syz-executor585571034", ["./syz-executor585571034"], 0x7ffe8b397900 /* 10 vars */) = 0 brk(NULL) = 0x555570f1f000 brk(0x555570f1fe00) = 0x555570f1fe00 arch_prctl(ARCH_SET_FS, 0x555570f1f480) = 0 set_tid_address(0x555570f1f750) = 5818 set_robust_list(0x555570f1f760, 24) = 0 rseq(0x555570f1fda0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor585571034", 4096) = 27 getrandom("\xb4\x2a\xbf\x04\x89\x5e\x93\x1d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555570f1fe00 brk(0x555570f40e00) = 0x555570f40e00 brk(0x555570f41000) = 0x555570f41000 mprotect(0x7fc1f4a61000, 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=0x7fc1f49b6000, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fc1f49be070}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7fc1f49b6000, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fc1f49be070}, 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) = 0x7fc1ec400000 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(0x7fc1ec400000, 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 syzkaller login: [ 62.444802][ T5818] loop0: detected capacity change from 0 to 32768 [ 62.478493][ T5818] ======================================================= [ 62.478493][ T5818] WARNING: The mand mount option has been deprecated and 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) mkdir("./file0", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 62.478493][ T5818] and is ignored by this kernel. Remove the mand [ 62.478493][ T5818] option from the mount to silence this warning. [ 62.478493][ T5818] ======================================================= [ 62.529785][ T5818] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdir("./file1", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 62.599650][ T5818] overlayfs: upper fs does not support tmpfile. [ 62.608554][ T5818] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 62.616376][ T5818] [ 62.618704][ T5818] ====================================================== [ 62.625714][ T5818] WARNING: possible circular locking dependency detected [ 62.632744][ T5818] 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0 Not tainted [ 62.639851][ T5818] ------------------------------------------------------ [ 62.646870][ T5818] syz-executor585/5818 is trying to acquire lock: [ 62.653268][ T5818] ffff888071c5a640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 62.666763][ T5818] [ 62.666763][ T5818] but task is already holding lock: [ 62.674133][ T5818] ffff888071c5ce38 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 62.683594][ T5818] [ 62.683594][ T5818] which lock already depends on the new lock. [ 62.683594][ T5818] [ 62.693974][ T5818] [ 62.693974][ T5818] the existing dependency chain (in reverse order) is: [ 62.702973][ T5818] [ 62.702973][ T5818] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 62.710766][ T5818] lock_acquire+0x1ed/0x550 [ 62.715774][ T5818] down_write+0x99/0x220 [ 62.720519][ T5818] ocfs2_xattr_set_handle+0x539/0xa10 [ 62.726428][ T5818] ocfs2_init_security_set+0xbd/0xd0 [ 62.732229][ T5818] ocfs2_mknod+0x1ccf/0x2b30 [ 62.737324][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 62.742240][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 62.747003][ T5818] do_mkdirat+0x264/0x3a0 [ 62.751845][ T5818] __x64_sys_mkdir+0x6c/0x80 [ 62.756947][ T5818] do_syscall_64+0xf3/0x230 [ 62.761956][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.768356][ T5818] [ 62.768356][ T5818] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 62.775634][ T5818] lock_acquire+0x1ed/0x550 [ 62.780634][ T5818] start_this_handle+0x1eb4/0x2110 [ 62.786244][ T5818] jbd2__journal_start+0x2da/0x5d0 [ 62.791855][ T5818] jbd2_journal_start+0x29/0x40 [ 62.797205][ T5818] ocfs2_start_trans+0x3c9/0x700 [ 62.802652][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 62.809046][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.815892][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 62.820984][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 62.825900][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 62.830683][ T5818] do_mkdirat+0x264/0x3a0 [ 62.835521][ T5818] __x64_sys_mkdir+0x6c/0x80 [ 62.840615][ T5818] do_syscall_64+0xf3/0x230 [ 62.845711][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.852133][ T5818] [ 62.852133][ T5818] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 62.860695][ T5818] lock_acquire+0x1ed/0x550 [ 62.865718][ T5818] down_read+0xb1/0xa40 [ 62.870384][ T5818] ocfs2_start_trans+0x3be/0x700 [ 62.875827][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 62.882221][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.889048][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 62.894142][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 62.899089][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 62.903836][ T5818] do_mkdirat+0x264/0x3a0 [ 62.908667][ T5818] __x64_sys_mkdir+0x6c/0x80 [ 62.913759][ T5818] do_syscall_64+0xf3/0x230 [ 62.918785][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.925182][ T5818] [ 62.925182][ T5818] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 62.932635][ T5818] lock_acquire+0x1ed/0x550 [ 62.937652][ T5818] ocfs2_start_trans+0x2b9/0x700 [ 62.943093][ T5818] ocfs2_mknod+0x150c/0x2b30 [ 62.948183][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 62.953124][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 62.958605][ T5818] do_mkdirat+0x264/0x3a0 [ 62.963540][ T5818] __x64_sys_mkdir+0x6c/0x80 [ 62.968641][ T5818] do_syscall_64+0xf3/0x230 [ 62.973649][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.980057][ T5818] [ 62.980057][ T5818] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 62.990549][ T5818] validate_chain+0x18ef/0x5920 [ 62.995903][ T5818] __lock_acquire+0x1397/0x2100 [ 63.001252][ T5818] lock_acquire+0x1ed/0x550 [ 63.006250][ T5818] down_write+0x99/0x220 [ 63.010993][ T5818] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 63.017650][ T5818] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 63.024476][ T5818] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 63.030689][ T5818] ocfs2_xattr_set+0xf4e/0x1930 [ 63.036055][ T5818] __vfs_setxattr+0x468/0x4a0 [ 63.041237][ T5818] __vfs_setxattr_noperm+0x12e/0x660 [ 63.047028][ T5818] vfs_setxattr+0x221/0x430 [ 63.052037][ T5818] ovl_get_workdir+0xd90/0x1920 [ 63.057392][ T5818] ovl_fill_super+0x12a8/0x3560 [ 63.062742][ T5818] get_tree_nodev+0xb7/0x140 [ 63.067831][ T5818] vfs_get_tree+0x90/0x2b0 [ 63.072746][ T5818] do_new_mount+0x2be/0xb40 [ 63.077763][ T5818] __se_sys_mount+0x2d6/0x3c0 [ 63.082958][ T5818] do_syscall_64+0xf3/0x230 [ 63.087975][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.094387][ T5818] [ 63.094387][ T5818] other info that might help us debug this: [ 63.094387][ T5818] [ 63.104599][ T5818] Chain exists of: [ 63.104599][ T5818] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 63.104599][ T5818] [ 63.120395][ T5818] Possible unsafe locking scenario: [ 63.120395][ T5818] [ 63.127819][ T5818] CPU0 CPU1 [ 63.133161][ T5818] ---- ---- [ 63.138499][ T5818] lock(&oi->ip_xattr_sem); [ 63.143069][ T5818] lock(jbd2_handle); [ 63.149630][ T5818] lock(&oi->ip_xattr_sem); [ 63.156715][ T5818] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 63.163979][ T5818] [ 63.163979][ T5818] *** DEADLOCK *** [ 63.163979][ T5818] [ 63.172101][ T5818] 4 locks held by syz-executor585/5818: [ 63.177620][ T5818] #0: ffff88807d9000e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 63.187697][ T5818] #1: ffff88807dc60420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 63.196897][ T5818] #2: ffff888071c5d100 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 63.207338][ T5818] #3: ffff888071c5ce38 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 63.217259][ T5818] [ 63.217259][ T5818] stack backtrace: [ 63.223147][ T5818] CPU: 0 UID: 0 PID: 5818 Comm: syz-executor585 Not tainted 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0 [ 63.234418][ T5818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 63.244457][ T5818] Call Trace: [ 63.247735][ T5818] [ 63.250658][ T5818] dump_stack_lvl+0x241/0x360 [ 63.255347][ T5818] ? __pfx_dump_stack_lvl+0x10/0x10 [ 63.260533][ T5818] ? __pfx__printk+0x10/0x10 [ 63.265106][ T5818] print_circular_bug+0x13a/0x1b0 [ 63.270110][ T5818] check_noncircular+0x36a/0x4a0 [ 63.275026][ T5818] ? __pfx_check_noncircular+0x10/0x10 [ 63.280504][ T5818] ? lockdep_lock+0x123/0x2b0 [ 63.285161][ T5818] validate_chain+0x18ef/0x5920 [ 63.289989][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 63.295173][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 63.300350][ T5818] ? mark_lock+0x9a/0x360 [ 63.304679][ T5818] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 63.310674][ T5818] ? __pfx_lock_release+0x10/0x10 [ 63.315694][ T5818] ? mark_lock+0x9a/0x360 [ 63.320019][ T5818] __lock_acquire+0x1397/0x2100 [ 63.324862][ T5818] lock_acquire+0x1ed/0x550 [ 63.329344][ T5818] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 63.335655][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 63.340658][ T5818] ? __pfx___might_resched+0x10/0x10 [ 63.346187][ T5818] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 63.352500][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 63.357678][ T5818] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 63.363664][ T5818] down_write+0x99/0x220 [ 63.367897][ T5818] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 63.374213][ T5818] ? __pfx_down_write+0x10/0x10 [ 63.379046][ T5818] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 63.385195][ T5818] ? mark_lock+0x9a/0x360 [ 63.389504][ T5818] ? __lock_acquire+0x1397/0x2100 [ 63.394508][ T5818] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 63.401083][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 63.406087][ T5818] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 63.412143][ T5818] ? __pfx_lock_release+0x10/0x10 [ 63.417181][ T5818] ? do_raw_spin_lock+0x14f/0x370 [ 63.422189][ T5818] ? do_raw_spin_unlock+0x13c/0x8b0 [ 63.427371][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 63.432203][ T5818] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 63.438252][ T5818] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 63.444562][ T5818] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 63.451387][ T5818] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 63.457522][ T5818] ? ocfs2_xattr_set+0xf00/0x1930 [ 63.462530][ T5818] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 63.468145][ T5818] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 63.474278][ T5818] ? up_write+0x1a9/0x590 [ 63.478587][ T5818] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 63.485161][ T5818] ? __pfx_up_write+0x10/0x10 [ 63.489816][ T5818] ? __kmalloc_cache_noprof+0x243/0x390 [ 63.495341][ T5818] ? ocfs2_xattr_set+0x4d5/0x1930 [ 63.500342][ T5818] ocfs2_xattr_set+0xf4e/0x1930 [ 63.505172][ T5818] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 63.510435][ T5818] ? _prb_read_valid+0xa39/0xac0 [ 63.515358][ T5818] ? mark_lock+0x9a/0x360 [ 63.519668][ T5818] ? smk_tskacc+0x300/0x370 [ 63.524155][ T5818] ? posix_xattr_acl+0xa9/0xd0 [ 63.528909][ T5818] ? evm_protect_xattr+0x4be/0xb30 [ 63.534012][ T5818] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 63.539973][ T5818] __vfs_setxattr+0x468/0x4a0 [ 63.544632][ T5818] __vfs_setxattr_noperm+0x12e/0x660 [ 63.549896][ T5818] vfs_setxattr+0x221/0x430 [ 63.554395][ T5818] ? __pfx_vfs_setxattr+0x10/0x10 [ 63.559408][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 63.564251][ T5818] ? dput+0x37/0x2b0 [ 63.568135][ T5818] ovl_get_workdir+0xd90/0x1920 [ 63.572974][ T5818] ? __pfx_ovl_get_workdir+0x10/0x10 [ 63.578243][ T5818] ? ovl_inuse_trylock+0xab/0xf0 [ 63.583157][ T5818] ? do_raw_spin_lock+0x14f/0x370 [ 63.588163][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 63.593020][ T5818] ? ovl_inuse_trylock+0xab/0xf0 [ 63.597957][ T5818] ovl_fill_super+0x12a8/0x3560 [ 63.602799][ T5818] ? __pfx___mutex_trylock_common+0x10/0x10 [ 63.608851][ T5818] ? shrinker_register+0x118/0x230 [ 63.613947][ T5818] ? __pfx_lock_release+0x10/0x10 [ 63.618952][ T5818] ? __pfx_ovl_fill_super+0x10/0x10 [ 63.624127][ T5818] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 63.629909][ T5818] ? __pfx___mutex_lock+0x10/0x10 [ 63.634923][ T5818] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 63.640890][ T5818] ? sget_fc+0x909/0x9c0 [ 63.645122][ T5818] ? __pfx_set_anon_super_fc+0x10/0x10 [ 63.650562][ T5818] ? __pfx_ovl_fill_super+0x10/0x10 [ 63.655829][ T5818] get_tree_nodev+0xb7/0x140 [ 63.660403][ T5818] vfs_get_tree+0x90/0x2b0 [ 63.664802][ T5818] do_new_mount+0x2be/0xb40 [ 63.669283][ T5818] ? __pfx_do_new_mount+0x10/0x10 [ 63.674372][ T5818] __se_sys_mount+0x2d6/0x3c0 [ 63.679029][ T5818] ? __pfx___se_sys_mount+0x10/0x10 [ 63.684207][ T5818] ? exc_page_fault+0x590/0x8b0 [ 63.689040][ T5818] ? __x64_sys_mount+0x20/0xc0 [ 63.693790][ T5818] do_syscall_64+0xf3/0x230 [ 63.698272][ T5818] ? clear_bhb_loop+0x35/0x90 [ 63.702929][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.708805][ T5818] RIP: 0033:0x7fc1f49ea079 [ 63.713215][ T5818] 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 [ 63.732800][ T5818] RSP: 002b:00007ffee26ac858 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 63.741203][ T5818] RAX: ffffffffffffffda RBX: 00007ffee26ac860 RCX: 00007fc1f49ea079 mount(NULL, "./file0", "overlay", 0, "upperdir=./file1,lowerdir=.,workdir=./file0,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 63.749155][ T5818] RDX: 0000000020000100 RSI: 000000002000224