./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor854545234 <...> Warning: Permanently added '10.128.1.54' (ED25519) to the list of known hosts. execve("./syz-executor854545234", ["./syz-executor854545234"], 0x7fff63cf96c0 /* 10 vars */) = 0 brk(NULL) = 0x55558b278000 brk(0x55558b278d00) = 0x55558b278d00 arch_prctl(ARCH_SET_FS, 0x55558b278380) = 0 set_tid_address(0x55558b278650) = 5818 set_robust_list(0x55558b278660, 24) = 0 rseq(0x55558b278ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor854545234", 4096) = 27 getrandom("\x5e\x9e\x28\x6b\xa0\x8d\x7f\xf6", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558b278d00 executing program brk(0x55558b299d00) = 0x55558b299d00 brk(0x55558b29a000) = 0x55558b29a000 mprotect(0x7f70a028c000, 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 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) = 0x7f7097c00000 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(0x7f7097c00000, 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 [ 63.601075][ T5818] loop0: detected capacity change from 0 to 32768 [ 63.643971][ T5818] ======================================================= [ 63.643971][ T5818] WARNING: The mand mount option has been deprecated and [ 63.643971][ T5818] and is ignored by this kernel. Remove the mand [ 63.643971][ T5818] option from the mount to silence this warning. [ 63.643971][ T5818] ======================================================= [ 63.691857][ T5818] JBD2: Ignoring recovery information on journal mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,dir_resv_level=00003,coherency=full,coherency=full,localflocks,coherency=full,noa"...) = 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) mkdirat(AT_FDCWD, "./file0", 000) = 0 [ 63.718263][ T5818] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdirat(AT_FDCWD, "./file1", 000) = 0 ioctl(-1, _IOC(_IOC_READ, 0x58, 0x3a, 0x80), 0) = -1 EBADF (Bad file descriptor) mkdir("./bus", 000) = 0 [ 63.806628][ T5818] overlayfs: upper fs does not support tmpfile. [ 63.815185][ T5818] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 63.822635][ T5818] [ 63.824960][ T5818] ====================================================== [ 63.831954][ T5818] WARNING: possible circular locking dependency detected [ 63.838954][ T5818] 6.13.0-rc7-syzkaller-00149-g9bffa1ad25b8 #0 Not tainted [ 63.846052][ T5818] ------------------------------------------------------ [ 63.853052][ T5818] syz-executor854/5818 is trying to acquire lock: [ 63.859445][ T5818] ffff888073422640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 63.872941][ T5818] [ 63.872941][ T5818] but task is already holding lock: [ 63.880302][ T5818] ffff888073552378 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 63.889769][ T5818] [ 63.889769][ T5818] which lock already depends on the new lock. [ 63.889769][ T5818] [ 63.900153][ T5818] [ 63.900153][ T5818] the existing dependency chain (in reverse order) is: [ 63.909149][ T5818] [ 63.909149][ T5818] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 63.916946][ T5818] lock_acquire+0x1ed/0x550 [ 63.921955][ T5818] down_write+0x99/0x220 [ 63.926704][ T5818] ocfs2_xattr_set_handle+0x539/0xa10 [ 63.932579][ T5818] ocfs2_init_security_set+0xbd/0xd0 [ 63.938369][ T5818] ocfs2_mknod+0x1ccf/0x2b30 [ 63.943459][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 63.948373][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 63.953115][ T5818] do_mkdirat+0x264/0x3a0 [ 63.957946][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 63.963207][ T5818] do_syscall_64+0xf3/0x230 [ 63.968208][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.974604][ T5818] [ 63.974604][ T5818] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 63.981879][ T5818] lock_acquire+0x1ed/0x550 [ 63.986899][ T5818] start_this_handle+0x1eb4/0x2110 [ 63.992508][ T5818] jbd2__journal_start+0x2da/0x5d0 [ 63.998122][ T5818] jbd2_journal_start+0x29/0x40 [ 64.003472][ T5818] ocfs2_start_trans+0x3c9/0x700 [ 64.008913][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 64.015307][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 64.022137][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 64.027225][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 64.032142][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 64.036882][ T5818] do_mkdirat+0x264/0x3a0 [ 64.041716][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 64.047001][ T5818] do_syscall_64+0xf3/0x230 [ 64.052004][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.058404][ T5818] [ 64.058404][ T5818] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 64.066899][ T5818] lock_acquire+0x1ed/0x550 [ 64.071917][ T5818] down_read+0xb1/0xa40 [ 64.076569][ T5818] ocfs2_start_trans+0x3be/0x700 [ 64.082008][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 64.088404][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 64.095230][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 64.100319][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 64.105233][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 64.109977][ T5818] do_mkdirat+0x264/0x3a0 [ 64.114806][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 64.120072][ T5818] do_syscall_64+0xf3/0x230 [ 64.125162][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.131560][ T5818] [ 64.131560][ T5818] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 64.139030][ T5818] lock_acquire+0x1ed/0x550 [ 64.144033][ T5818] ocfs2_start_trans+0x2b9/0x700 [ 64.149474][ T5818] ocfs2_mknod+0x150c/0x2b30 [ 64.154560][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 64.159476][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 64.164220][ T5818] do_mkdirat+0x264/0x3a0 [ 64.169050][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 64.174313][ T5818] do_syscall_64+0xf3/0x230 [ 64.179317][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.185711][ T5818] [ 64.185711][ T5818] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 64.196202][ T5818] validate_chain+0x18ef/0x5920 [ 64.201554][ T5818] __lock_acquire+0x1397/0x2100 [ 64.206902][ T5818] lock_acquire+0x1ed/0x550 [ 64.211904][ T5818] down_write+0x99/0x220 [ 64.216648][ T5818] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.223302][ T5818] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 64.230134][ T5818] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 64.236267][ T5818] ocfs2_xattr_set+0xf4e/0x1930 [ 64.241622][ T5818] __vfs_setxattr+0x468/0x4a0 [ 64.246804][ T5818] __vfs_setxattr_noperm+0x12e/0x660 [ 64.252615][ T5818] vfs_setxattr+0x221/0x430 [ 64.257631][ T5818] ovl_get_workdir+0xd90/0x1920 [ 64.263001][ T5818] ovl_fill_super+0x12a8/0x3560 [ 64.268370][ T5818] get_tree_nodev+0xb7/0x140 [ 64.273463][ T5818] vfs_get_tree+0x90/0x2b0 [ 64.278382][ T5818] do_new_mount+0x2be/0xb40 [ 64.283404][ T5818] __se_sys_mount+0x2d6/0x3c0 [ 64.288583][ T5818] do_syscall_64+0xf3/0x230 [ 64.293584][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.299984][ T5818] [ 64.299984][ T5818] other info that might help us debug this: [ 64.299984][ T5818] [ 64.310189][ T5818] Chain exists of: [ 64.310189][ T5818] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 64.310189][ T5818] [ 64.325898][ T5818] Possible unsafe locking scenario: [ 64.325898][ T5818] [ 64.333327][ T5818] CPU0 CPU1 [ 64.338671][ T5818] ---- ---- [ 64.344014][ T5818] lock(&oi->ip_xattr_sem); [ 64.348599][ T5818] lock(jbd2_handle); [ 64.355167][ T5818] lock(&oi->ip_xattr_sem); [ 64.362255][ T5818] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 64.369521][ T5818] [ 64.369521][ T5818] *** DEADLOCK *** [ 64.369521][ T5818] [ 64.377652][ T5818] 4 locks held by syz-executor854/5818: [ 64.383196][ T5818] #0: ffff8880329fa0e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 64.393273][ T5818] #1: ffff888079a92420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 64.402391][ T5818] #2: ffff888073552640 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 64.412811][ T5818] #3: ffff888073552378 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 64.422712][ T5818] [ 64.422712][ T5818] stack backtrace: [ 64.428610][ T5818] CPU: 1 UID: 0 PID: 5818 Comm: syz-executor854 Not tainted 6.13.0-rc7-syzkaller-00149-g9bffa1ad25b8 #0 [ 64.439693][ T5818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 64.449737][ T5818] Call Trace: [ 64.452997][ T5818] [ 64.455939][ T5818] dump_stack_lvl+0x241/0x360 [ 64.460604][ T5818] ? __pfx_dump_stack_lvl+0x10/0x10 [ 64.465785][ T5818] ? __pfx__printk+0x10/0x10 [ 64.470357][ T5818] print_circular_bug+0x13a/0x1b0 [ 64.475362][ T5818] check_noncircular+0x36a/0x4a0 [ 64.480284][ T5818] ? __pfx_check_noncircular+0x10/0x10 [ 64.485723][ T5818] ? lockdep_lock+0x123/0x2b0 [ 64.490379][ T5818] validate_chain+0x18ef/0x5920 [ 64.495210][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 64.500410][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 64.505589][ T5818] ? mark_lock+0x9a/0x360 [ 64.509899][ T5818] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 64.515867][ T5818] ? __pfx_lock_release+0x10/0x10 [ 64.520870][ T5818] ? mark_lock+0x9a/0x360 [ 64.525184][ T5818] __lock_acquire+0x1397/0x2100 [ 64.530018][ T5818] lock_acquire+0x1ed/0x550 [ 64.534499][ T5818] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.540810][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 64.545815][ T5818] ? __pfx___might_resched+0x10/0x10 [ 64.551087][ T5818] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 64.557390][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 64.562574][ T5818] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 64.568534][ T5818] down_write+0x99/0x220 [ 64.572755][ T5818] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.579061][ T5818] ? __pfx_down_write+0x10/0x10 [ 64.583897][ T5818] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.590031][ T5818] ? mark_lock+0x9a/0x360 [ 64.594341][ T5818] ? __lock_acquire+0x1397/0x2100 [ 64.599345][ T5818] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 64.605915][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 64.610917][ T5818] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 64.616964][ T5818] ? __pfx_lock_release+0x10/0x10 [ 64.621966][ T5818] ? do_raw_spin_lock+0x14f/0x370 [ 64.626975][ T5818] ? do_raw_spin_unlock+0x13c/0x8b0 [ 64.632158][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 64.637007][ T5818] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 64.643064][ T5818] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 64.649397][ T5818] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 64.656236][ T5818] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 64.662409][ T5818] ? ocfs2_xattr_set+0xf00/0x1930 [ 64.667423][ T5818] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 64.673044][ T5818] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 64.679191][ T5818] ? up_write+0x1a9/0x590 [ 64.683503][ T5818] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 64.690081][ T5818] ? __pfx_up_write+0x10/0x10 [ 64.694744][ T5818] ? __kmalloc_cache_noprof+0x243/0x390 [ 64.700272][ T5818] ? ocfs2_xattr_set+0x4d5/0x1930 [ 64.705283][ T5818] ocfs2_xattr_set+0xf4e/0x1930 [ 64.710120][ T5818] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 64.715389][ T5818] ? _prb_read_valid+0xa39/0xac0 [ 64.720319][ T5818] ? mark_lock+0x9a/0x360 [ 64.724634][ T5818] ? smk_tskacc+0x300/0x370 [ 64.729130][ T5818] ? posix_xattr_acl+0xa9/0xd0 [ 64.733874][ T5818] ? evm_protect_xattr+0x4be/0xb30 [ 64.738969][ T5818] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 64.744929][ T5818] __vfs_setxattr+0x468/0x4a0 [ 64.749594][ T5818] __vfs_setxattr_noperm+0x12e/0x660 [ 64.754863][ T5818] vfs_setxattr+0x221/0x430 [ 64.759379][ T5818] ? __pfx_vfs_setxattr+0x10/0x10 [ 64.764391][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 64.769228][ T5818] ? dput+0x37/0x2b0 [ 64.773113][ T5818] ovl_get_workdir+0xd90/0x1920 [ 64.777961][ T5818] ? __pfx_ovl_get_workdir+0x10/0x10 [ 64.783242][ T5818] ? ovl_inuse_trylock+0xab/0xf0 [ 64.788169][ T5818] ? do_raw_spin_lock+0x14f/0x370 [ 64.793184][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 64.798024][ T5818] ? ovl_inuse_trylock+0xab/0xf0 [ 64.802947][ T5818] ovl_fill_super+0x12a8/0x3560 [ 64.807780][ T5818] ? __pfx___mutex_trylock_common+0x10/0x10 [ 64.813658][ T5818] ? shrinker_register+0x118/0x230 [ 64.818757][ T5818] ? __pfx_lock_release+0x10/0x10 [ 64.823766][ T5818] ? __pfx_ovl_fill_super+0x10/0x10 [ 64.828946][ T5818] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 64.834735][ T5818] ? __pfx___mutex_lock+0x10/0x10 [ 64.839748][ T5818] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 64.845715][ T5818] ? sget_fc+0x909/0x9c0 [ 64.849961][ T5818] ? __pfx_set_anon_super_fc+0x10/0x10 [ 64.855400][ T5818] ? __pfx_ovl_fill_super+0x10/0x10 [ 64.860581][ T5818] get_tree_nodev+0xb7/0x140 [ 64.865154][ T5818] vfs_get_tree+0x90/0x2b0 [ 64.869551][ T5818] do_new_mount+0x2be/0xb40 [ 64.874038][ T5818] ? __pfx_do_new_mount+0x10/0x10 [ 64.879071][ T5818] __se_sys_mount+0x2d6/0x3c0 [ 64.883726][ T5818] ? __pfx___se_sys_mount+0x10/0x10 [ 64.888901][ T5818] ? do_syscall_64+0x100/0x230 [ 64.893640][ T5818] ? __x64_sys_mount+0x20/0xc0 [ 64.898383][ T5818] do_syscall_64+0xf3/0x230 [ 64.902869][ T5818] ? clear_bhb_loop+0x35/0x90 [ 64.907522][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.913411][ T5818] RIP: 0033:0x7f70a0215839 [ 64.917814][ 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 [ 64.937400][ T5818] RSP: 002b:00007ffe32da0ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 64.945794][ T5818] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f70a0215839 [ 64.953748][ T5818] RDX: 0000000020000000 RSI: 00000000200000c0 RDI: 0000000000000000 mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) renameat2(-1, NULL, -1, NULL, 0) = -1 EFAULT (Bad address) getdents64(-1, NULL, 0) = -1 EBADF (Bad file descriptor) exit_group(0) = ? +++ exited with 0 +++ [