./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2586566554 <...> Warning: Permanently added '10.128.1.29' (ED25519) to the list of known hosts. execve("./syz-executor2586566554", ["./syz-executor2586566554"], 0x7ffc1c045ff0 /* 10 vars */) = 0 brk(NULL) = 0x5555843fb000 brk(0x5555843fbe00) = 0x5555843fbe00 arch_prctl(ARCH_SET_FS, 0x5555843fb480) = 0 set_tid_address(0x5555843fb750) = 5825 set_robust_list(0x5555843fb760, 24) = 0 rseq(0x5555843fbda0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2586566554", 4096) = 28 getrandom("\x03\x7c\x57\x4f\xba\xf2\xfb\x40", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555843fbe00 brk(0x55558441ce00) = 0x55558441ce00 brk(0x55558441d000) = 0x55558441d000 mprotect(0x7fb0b930b000, 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=0x7fb0b925ffc0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fb0b9268030}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7fb0b925ffc0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fb0b9268030}, NULL, 8) = 0 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb0b0e00000 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(0x7fb0b0e00000, 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: [ 70.191123][ T5825] loop0: detected capacity change from 0 to 32768 [ 70.225877][ T5825] ======================================================= [ 70.225877][ T5825] 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 [ 70.225877][ T5825] and is ignored by this kernel. Remove the mand [ 70.225877][ T5825] option from the mount to silence this warning. [ 70.225877][ T5825] ======================================================= [ 70.280537][ T5825] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. chdir("./file1") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) mkdirat(AT_FDCWD, "./file0", 020) = 0 mkdir("./file2", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 70.399613][ T5825] overlayfs: upper fs does not support tmpfile. [ 70.408713][ T5825] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 70.416243][ T5825] [ 70.418581][ T5825] ====================================================== [ 70.425586][ T5825] WARNING: possible circular locking dependency detected [ 70.432600][ T5825] 6.13.0-syzkaller-09793-g69b8923f5003 #0 Not tainted [ 70.439380][ T5825] ------------------------------------------------------ [ 70.446382][ T5825] syz-executor258/5825 is trying to acquire lock: [ 70.452795][ T5825] ffff88807afb42c0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 70.466301][ T5825] [ 70.466301][ T5825] but task is already holding lock: [ 70.473648][ T5825] ffff88807538eab8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 70.483140][ T5825] [ 70.483140][ T5825] which lock already depends on the new lock. [ 70.483140][ T5825] [ 70.493621][ T5825] [ 70.493621][ T5825] the existing dependency chain (in reverse order) is: [ 70.502625][ T5825] [ 70.502625][ T5825] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 70.510443][ T5825] lock_acquire+0x1ed/0x550 [ 70.515473][ T5825] down_write+0x99/0x220 [ 70.520247][ T5825] ocfs2_xattr_set_handle+0x539/0xa10 [ 70.526142][ T5825] ocfs2_init_security_set+0xbd/0xd0 [ 70.532074][ T5825] ocfs2_mknod+0x1ccf/0x2b30 [ 70.537185][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 70.542116][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 70.546875][ T5825] do_mkdirat+0x264/0x3a0 [ 70.551726][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 70.557008][ T5825] do_syscall_64+0xf3/0x230 [ 70.562034][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.568452][ T5825] [ 70.568452][ T5825] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 70.575771][ T5825] lock_acquire+0x1ed/0x550 [ 70.580825][ T5825] start_this_handle+0x1eb4/0x2110 [ 70.586454][ T5825] jbd2__journal_start+0x2da/0x5d0 [ 70.592083][ T5825] jbd2_journal_start+0x29/0x40 [ 70.597449][ T5825] ocfs2_start_trans+0x3c9/0x700 [ 70.602914][ T5825] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 70.609327][ T5825] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 70.616178][ T5825] ocfs2_mknod+0x143a/0x2b30 [ 70.621288][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 70.626224][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 70.630980][ T5825] do_mkdirat+0x264/0x3a0 [ 70.635829][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 70.641123][ T5825] do_syscall_64+0xf3/0x230 [ 70.646161][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.652573][ T5825] [ 70.652573][ T5825] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 70.661110][ T5825] lock_acquire+0x1ed/0x550 [ 70.666142][ T5825] down_read+0xb1/0xa40 [ 70.670820][ T5825] ocfs2_start_trans+0x3be/0x700 [ 70.676281][ T5825] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 70.682711][ T5825] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 70.689558][ T5825] ocfs2_mknod+0x143a/0x2b30 [ 70.694664][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 70.699601][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 70.704355][ T5825] do_mkdirat+0x264/0x3a0 [ 70.709215][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 70.714517][ T5825] do_syscall_64+0xf3/0x230 [ 70.719585][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.726008][ T5825] [ 70.726008][ T5825] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 70.733493][ T5825] lock_acquire+0x1ed/0x550 [ 70.738519][ T5825] ocfs2_start_trans+0x2b9/0x700 [ 70.743972][ T5825] ocfs2_mknod+0x150c/0x2b30 [ 70.749073][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 70.754005][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 70.758768][ T5825] do_mkdirat+0x264/0x3a0 [ 70.763613][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 70.768895][ T5825] do_syscall_64+0xf3/0x230 [ 70.773919][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.780339][ T5825] [ 70.780339][ T5825] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 70.790952][ T5825] validate_chain+0x18ef/0x5920 [ 70.796334][ T5825] __lock_acquire+0x1397/0x2100 [ 70.801708][ T5825] lock_acquire+0x1ed/0x550 [ 70.806745][ T5825] down_write+0x99/0x220 [ 70.811521][ T5825] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 70.818194][ T5825] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 70.825043][ T5825] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 70.831201][ T5825] ocfs2_xattr_set+0xf4e/0x1930 [ 70.836572][ T5825] __vfs_setxattr+0x468/0x4a0 [ 70.841765][ T5825] __vfs_setxattr_noperm+0x12e/0x660 [ 70.847569][ T5825] vfs_setxattr+0x221/0x430 [ 70.852590][ T5825] ovl_get_workdir+0xda0/0x1930 [ 70.857955][ T5825] ovl_fill_super+0x12a8/0x3560 [ 70.863322][ T5825] get_tree_nodev+0xb7/0x140 [ 70.868456][ T5825] vfs_get_tree+0x90/0x2b0 [ 70.873386][ T5825] do_new_mount+0x2be/0xb40 [ 70.878407][ T5825] __se_sys_mount+0x2d6/0x3c0 [ 70.883631][ T5825] do_syscall_64+0xf3/0x230 [ 70.888653][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.895069][ T5825] [ 70.895069][ T5825] other info that might help us debug this: [ 70.895069][ T5825] [ 70.905315][ T5825] Chain exists of: [ 70.905315][ T5825] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 70.905315][ T5825] [ 70.921157][ T5825] Possible unsafe locking scenario: [ 70.921157][ T5825] [ 70.928620][ T5825] CPU0 CPU1 [ 70.934002][ T5825] ---- ---- [ 70.939371][ T5825] lock(&oi->ip_xattr_sem); [ 70.943973][ T5825] lock(jbd2_handle); [ 70.950569][ T5825] lock(&oi->ip_xattr_sem); [ 70.957785][ T5825] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 70.965088][ T5825] [ 70.965088][ T5825] *** DEADLOCK *** [ 70.965088][ T5825] [ 70.973225][ T5825] 4 locks held by syz-executor258/5825: [ 70.978758][ T5825] #0: ffff888030f800e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 70.988878][ T5825] #1: ffff88807e79c420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 70.998041][ T5825] #2: ffff88807538ed80 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 71.008495][ T5825] #3: ffff88807538eab8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 71.018423][ T5825] [ 71.018423][ T5825] stack backtrace: [ 71.024402][ T5825] CPU: 1 UID: 0 PID: 5825 Comm: syz-executor258 Not tainted 6.13.0-syzkaller-09793-g69b8923f5003 #0 [ 71.024419][ T5825] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 71.024431][ T5825] Call Trace: [ 71.024439][ T5825] [ 71.024446][ T5825] dump_stack_lvl+0x241/0x360 [ 71.024476][ T5825] ? __pfx_dump_stack_lvl+0x10/0x10 [ 71.024500][ T5825] ? __pfx__printk+0x10/0x10 [ 71.024544][ T5825] print_circular_bug+0x13a/0x1b0 [ 71.024571][ T5825] check_noncircular+0x36a/0x4a0 [ 71.024598][ T5825] ? __pfx_check_noncircular+0x10/0x10 [ 71.024622][ T5825] ? lockdep_lock+0x123/0x2b0 [ 71.024645][ T5825] validate_chain+0x18ef/0x5920 [ 71.024669][ T5825] ? __pfx_validate_chain+0x10/0x10 [ 71.024700][ T5825] ? __pfx_validate_chain+0x10/0x10 [ 71.024727][ T5825] ? mark_lock+0x9a/0x360 [ 71.024753][ T5825] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 71.024771][ T5825] ? __pfx_lock_release+0x10/0x10 [ 71.024792][ T5825] ? mark_lock+0x9a/0x360 [ 71.024814][ T5825] __lock_acquire+0x1397/0x2100 [ 71.024841][ T5825] lock_acquire+0x1ed/0x550 [ 71.024860][ T5825] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 71.024880][ T5825] ? __pfx_lock_acquire+0x10/0x10 [ 71.024903][ T5825] ? __pfx___might_resched+0x10/0x10 [ 71.024925][ T5825] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 71.024963][ T5825] ? __pfx_validate_chain+0x10/0x10 [ 71.024987][ T5825] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 71.025009][ T5825] down_write+0x99/0x220 [ 71.025033][ T5825] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 71.025050][ T5825] ? __pfx_down_write+0x10/0x10 [ 71.025082][ T5825] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 71.025105][ T5825] ? mark_lock+0x9a/0x360 [ 71.025128][ T5825] ? __lock_acquire+0x1397/0x2100 [ 71.025150][ T5825] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 71.025175][ T5825] ? __pfx_lock_acquire+0x10/0x10 [ 71.025195][ T5825] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 71.025212][ T5825] ? __pfx_lock_release+0x10/0x10 [ 71.025232][ T5825] ? do_raw_spin_lock+0x14f/0x370 [ 71.025251][ T5825] ? do_raw_spin_unlock+0x13c/0x8b0 [ 71.025270][ T5825] ? _raw_spin_unlock+0x28/0x50 [ 71.025286][ T5825] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 71.025303][ T5825] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 71.025328][ T5825] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 71.025353][ T5825] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 71.025372][ T5825] ? ocfs2_xattr_set+0xf00/0x1930 [ 71.025397][ T5825] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 71.025423][ T5825] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 71.025448][ T5825] ? up_write+0x1a9/0x590 [ 71.025473][ T5825] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 71.025497][ T5825] ? __pfx_up_write+0x10/0x10 [ 71.025523][ T5825] ? __kmalloc_cache_noprof+0x243/0x390 [ 71.025545][ T5825] ? ocfs2_xattr_set+0x4d5/0x1930 [ 71.025568][ T5825] ocfs2_xattr_set+0xf4e/0x1930 [ 71.025598][ T5825] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 71.025621][ T5825] ? _prb_read_valid+0xa39/0xac0 [ 71.025654][ T5825] ? mark_lock+0x9a/0x360 [ 71.025683][ T5825] ? smk_tskacc+0x300/0x370 [ 71.025703][ T5825] ? posix_xattr_acl+0xa9/0xd0 [ 71.025727][ T5825] ? evm_protect_xattr+0x4be/0xb30 [ 71.025752][ T5825] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 71.025778][ T5825] __vfs_setxattr+0x468/0x4a0 [ 71.025801][ T5825] __vfs_setxattr_noperm+0x12e/0x660 [ 71.025824][ T5825] vfs_setxattr+0x221/0x430 [ 71.025847][ T5825] ? __pfx_vfs_setxattr+0x10/0x10 [ 71.025866][ T5825] ? _raw_spin_unlock+0x28/0x50 [ 71.025883][ T5825] ? dput+0x37/0x2b0 [ 71.025904][ T5825] ovl_get_workdir+0xda0/0x1930 [ 71.025926][ T5825] ? __pfx_ovl_get_workdir+0x10/0x10 [ 71.025946][ T5825] ? ovl_inuse_trylock+0xab/0xf0 [ 71.025961][ T5825] ? do_raw_spin_lock+0x14f/0x370 [ 71.025984][ T5825] ? _raw_spin_unlock+0x28/0x50 [ 71.026000][ T5825] ? ovl_inuse_trylock+0xab/0xf0 [ 71.026016][ T5825] ovl_fill_super+0x12a8/0x3560 [ 71.026035][ T5825] ? shrinker_register+0x118/0x230 [ 71.026059][ T5825] ? __pfx_lock_release+0x10/0x10 [ 71.026091][ T5825] ? __pfx_ovl_fill_super+0x10/0x10 [ 71.026108][ T5825] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 71.026130][ T5825] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 71.026170][ T5825] ? sget_fc+0x909/0x9c0 [ 71.026193][ T5825] ? __pfx_set_anon_super_fc+0x10/0x10 [ 71.026218][ T5825] ? __pfx_ovl_fill_super+0x10/0x10 [ 71.026234][ T5825] get_tree_nodev+0xb7/0x140 [ 71.026260][ T5825] vfs_get_tree+0x90/0x2b0 [ 71.026277][ T5825] do_new_mount+0x2be/0xb40 [ 71.026298][ T5825] ? __pfx_do_new_mount+0x10/0x10 [ 71.026320][ T5825] __se_sys_mount+0x2d6/0x3c0 [ 71.026342][ T5825] ? __pfx___se_sys_mount+0x10/0x10 [ 71.026361][ T5825] ? exc_page_fault+0x590/0x8b0 [ 71.026381][ T5825] ? __x64_sys_mount+0x20/0xc0 [ 71.026401][ T5825] do_syscall_64+0xf3/0x230 [ 71.026422][ T5825] ? clear_bhb_loop+0x35/0x90 [ 71.026446][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.026468][ T5825] RIP: 0033:0x7fb0b9294039 [ 71.026486][ T5825] 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 [ 71.026499][ T5825] RSP: 002b:00007ffeb50215d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 71.026516][ T5825] RAX: ffffffffffffffda RBX: 00007ffeb50215e0 RCX: 00007fb0b9294039 [ 71.026527][ T5825] RDX: 0000000020000000 RSI: 0000000020000040 RDI: 0000000000000000 mount(NULL, "./file0", "overlay", 0, "workdir=./file0,lowerdir=.,upperdir=./file2,,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 71.026537][ T5825] RBP: 00007ffeb50215e8 R08: 0000000020000200 R