./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3293440800 <...> DUID 00:04:e6:d8:3e:4c:c1:15:84:42:dc:00:60:8c:e3:5f:26:b4 forked to background, child pid 5505 [ 35.290187][ T5506] 8021q: adding VLAN 0 to HW filter on device bond0 [ 35.309200][ T5506] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.28' (ED25519) to the list of known hosts. execve("./syz-executor3293440800", ["./syz-executor3293440800"], 0x7fffef52e640 /* 10 vars */) = 0 brk(NULL) = 0x55558b2e6000 brk(0x55558b2e6d00) = 0x55558b2e6d00 arch_prctl(ARCH_SET_FS, 0x55558b2e6380) = 0 set_tid_address(0x55558b2e6650) = 5836 set_robust_list(0x55558b2e6660, 24) = 0 rseq(0x55558b2e6ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3293440800", 4096) = 28 getrandom("\xf5\x12\xd9\xef\xab\x35\x28\xec", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558b2e6d00 brk(0x55558b307d00) = 0x55558b307d00 brk(0x55558b308000) = 0x55558b308000 mprotect(0x7fb44d219000, 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 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) = 0x7fb444c00000 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(0x7fb444c00000, 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: [ 57.384691][ T5836] loop0: detected capacity change from 0 to 32768 mount("/dev/loop0", "./file1", "ocfs2", MS_I_VERSION|MS_LAZYTIME, "localalloc=18446744073709551608,resv_level=00000000000000000002,heartbeat=none,coherency=buffered,er"...) = 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("./file1", 000) = 0 mkdir("./file0", 000) = 0 [ 57.457235][ T5836] JBD2: Ignoring recovery information on journal [ 57.479736][ T5836] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdir("./bus", 000) = 0 [ 57.556448][ T5836] overlayfs: upper fs does not support tmpfile. [ 57.564867][ T5836] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 57.572179][ T5836] [ 57.574497][ T5836] ====================================================== [ 57.581489][ T5836] WARNING: possible circular locking dependency detected [ 57.588488][ T5836] 6.12.0-syzkaller-07834-g06afb0f36106 #0 Not tainted [ 57.595656][ T5836] ------------------------------------------------------ [ 57.602662][ T5836] syz-executor329/5836 is trying to acquire lock: [ 57.609047][ T5836] ffff8880728a2640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 57.622541][ T5836] [ 57.622541][ T5836] but task is already holding lock: [ 57.629883][ T5836] ffff88807298a378 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 57.639354][ T5836] [ 57.639354][ T5836] which lock already depends on the new lock. [ 57.639354][ T5836] [ 57.649735][ T5836] [ 57.649735][ T5836] the existing dependency chain (in reverse order) is: [ 57.658721][ T5836] [ 57.658721][ T5836] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 57.666512][ T5836] lock_acquire+0x1ed/0x550 [ 57.671512][ T5836] down_write+0x99/0x220 [ 57.676266][ T5836] ocfs2_xattr_set_handle+0x539/0xa10 [ 57.682134][ T5836] ocfs2_init_security_set+0xbd/0xd0 [ 57.687918][ T5836] ocfs2_mknod+0x1ccf/0x2b40 [ 57.693010][ T5836] ocfs2_mkdir+0x1ab/0x480 [ 57.697927][ T5836] vfs_mkdir+0x2f9/0x4f0 [ 57.702675][ T5836] do_mkdirat+0x264/0x3a0 [ 57.707503][ T5836] __x64_sys_mkdir+0x6c/0x80 [ 57.712592][ T5836] do_syscall_64+0xf3/0x230 [ 57.717604][ T5836] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 57.724007][ T5836] [ 57.724007][ T5836] -> #3 (jbd2_handle){++++}-{0:0}: [ 57.731279][ T5836] lock_acquire+0x1ed/0x550 [ 57.736289][ T5836] start_this_handle+0x1eb4/0x2110 [ 57.741908][ T5836] jbd2__journal_start+0x2da/0x5d0 [ 57.747521][ T5836] jbd2_journal_start+0x29/0x40 [ 57.752874][ T5836] ocfs2_start_trans+0x3c9/0x700 [ 57.758309][ T5836] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 57.764704][ T5836] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 57.771533][ T5836] ocfs2_mknod+0x143a/0x2b40 [ 57.776633][ T5836] ocfs2_mkdir+0x1ab/0x480 [ 57.781724][ T5836] vfs_mkdir+0x2f9/0x4f0 [ 57.786469][ T5836] do_mkdirat+0x264/0x3a0 [ 57.791299][ T5836] __x64_sys_mkdir+0x6c/0x80 [ 57.796387][ T5836] do_syscall_64+0xf3/0x230 [ 57.801396][ T5836] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 57.807815][ T5836] [ 57.807815][ T5836] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 57.816306][ T5836] lock_acquire+0x1ed/0x550 [ 57.821309][ T5836] down_read+0xb1/0xa40 [ 57.825966][ T5836] ocfs2_start_trans+0x3be/0x700 [ 57.831419][ T5836] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 57.837819][ T5836] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 57.844651][ T5836] ocfs2_mknod+0x143a/0x2b40 [ 57.849742][ T5836] ocfs2_mkdir+0x1ab/0x480 [ 57.854660][ T5836] vfs_mkdir+0x2f9/0x4f0 [ 57.859404][ T5836] do_mkdirat+0x264/0x3a0 [ 57.864233][ T5836] __x64_sys_mkdir+0x6c/0x80 [ 57.869321][ T5836] do_syscall_64+0xf3/0x230 [ 57.874343][ T5836] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 57.880736][ T5836] [ 57.880736][ T5836] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 57.888359][ T5836] lock_acquire+0x1ed/0x550 [ 57.893363][ T5836] ocfs2_start_trans+0x2b9/0x700 [ 57.898797][ T5836] ocfs2_mknod+0x150c/0x2b40 [ 57.903889][ T5836] ocfs2_mkdir+0x1ab/0x480 [ 57.908810][ T5836] vfs_mkdir+0x2f9/0x4f0 [ 57.913552][ T5836] do_mkdirat+0x264/0x3a0 [ 57.918383][ T5836] __x64_sys_mkdir+0x6c/0x80 [ 57.923477][ T5836] do_syscall_64+0xf3/0x230 [ 57.928484][ T5836] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 57.934878][ T5836] [ 57.934878][ T5836] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 57.945364][ T5836] validate_chain+0x18ef/0x5920 [ 57.950715][ T5836] __lock_acquire+0x1397/0x2100 [ 57.956064][ T5836] lock_acquire+0x1ed/0x550 [ 57.961062][ T5836] down_write+0x99/0x220 [ 57.965805][ T5836] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 57.972461][ T5836] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 57.979287][ T5836] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 57.985420][ T5836] ocfs2_xattr_set+0xf4e/0x1930 [ 57.990788][ T5836] __vfs_setxattr+0x468/0x4a0 [ 57.995967][ T5836] __vfs_setxattr_noperm+0x12e/0x660 [ 58.001757][ T5836] vfs_setxattr+0x221/0x430 [ 58.006761][ T5836] ovl_get_workdir+0xd90/0x1920 [ 58.012113][ T5836] ovl_fill_super+0x12a8/0x3560 [ 58.017461][ T5836] get_tree_nodev+0xb7/0x140 [ 58.022549][ T5836] vfs_get_tree+0x90/0x2b0 [ 58.027463][ T5836] do_new_mount+0x2be/0xb40 [ 58.032467][ T5836] __se_sys_mount+0x2d6/0x3c0 [ 58.037643][ T5836] do_syscall_64+0xf3/0x230 [ 58.042645][ T5836] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.049039][ T5836] [ 58.049039][ T5836] other info that might help us debug this: [ 58.049039][ T5836] [ 58.059241][ T5836] Chain exists of: [ 58.059241][ T5836] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 58.059241][ T5836] [ 58.074965][ T5836] Possible unsafe locking scenario: [ 58.074965][ T5836] [ 58.082389][ T5836] CPU0 CPU1 [ 58.087736][ T5836] ---- ---- [ 58.093077][ T5836] lock(&oi->ip_xattr_sem); [ 58.097647][ T5836] lock(jbd2_handle); [ 58.104212][ T5836] lock(&oi->ip_xattr_sem); [ 58.111299][ T5836] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 58.118564][ T5836] [ 58.118564][ T5836] *** DEADLOCK *** [ 58.118564][ T5836] [ 58.126684][ T5836] 4 locks held by syz-executor329/5836: [ 58.132202][ T5836] #0: ffff88807cc460e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 58.142273][ T5836] #1: ffff88807ce10420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 58.151391][ T5836] #2: ffff88807298a640 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 58.161806][ T5836] #3: ffff88807298a378 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 58.171695][ T5836] [ 58.171695][ T5836] stack backtrace: [ 58.177572][ T5836] CPU: 0 UID: 0 PID: 5836 Comm: syz-executor329 Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 #0 [ 58.188310][ T5836] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 58.198347][ T5836] Call Trace: [ 58.201614][ T5836] [ 58.204525][ T5836] dump_stack_lvl+0x241/0x360 [ 58.209185][ T5836] ? __pfx_dump_stack_lvl+0x10/0x10 [ 58.214364][ T5836] ? __pfx__printk+0x10/0x10 [ 58.218934][ T5836] print_circular_bug+0x13a/0x1b0 [ 58.223939][ T5836] check_noncircular+0x36a/0x4a0 [ 58.228861][ T5836] ? __pfx_check_noncircular+0x10/0x10 [ 58.234307][ T5836] ? lockdep_lock+0x123/0x2b0 [ 58.238970][ T5836] validate_chain+0x18ef/0x5920 [ 58.243801][ T5836] ? __pfx_validate_chain+0x10/0x10 [ 58.248985][ T5836] ? __pfx_validate_chain+0x10/0x10 [ 58.254162][ T5836] ? mark_lock+0x9a/0x360 [ 58.258472][ T5836] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 58.264435][ T5836] ? __pfx_lock_release+0x10/0x10 [ 58.269435][ T5836] ? mark_lock+0x9a/0x360 [ 58.273746][ T5836] __lock_acquire+0x1397/0x2100 [ 58.278577][ T5836] lock_acquire+0x1ed/0x550 [ 58.283064][ T5836] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 58.289375][ T5836] ? __pfx_lock_acquire+0x10/0x10 [ 58.294377][ T5836] ? __pfx___might_resched+0x10/0x10 [ 58.299644][ T5836] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 58.305951][ T5836] ? __pfx_validate_chain+0x10/0x10 [ 58.311132][ T5836] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 58.317088][ T5836] down_write+0x99/0x220 [ 58.321314][ T5836] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 58.327623][ T5836] ? __pfx_down_write+0x10/0x10 [ 58.332455][ T5836] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 58.338602][ T5836] ? mark_lock+0x9a/0x360 [ 58.342928][ T5836] ? __lock_acquire+0x1397/0x2100 [ 58.347947][ T5836] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 58.354516][ T5836] ? __pfx_lock_acquire+0x10/0x10 [ 58.359516][ T5836] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 58.365561][ T5836] ? __pfx_lock_release+0x10/0x10 [ 58.370587][ T5836] ? do_raw_spin_lock+0x14f/0x370 [ 58.375599][ T5836] ? do_raw_spin_unlock+0x13c/0x8b0 [ 58.380778][ T5836] ? _raw_spin_unlock+0x28/0x50 [ 58.385606][ T5836] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 58.391653][ T5836] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 58.397957][ T5836] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 58.404789][ T5836] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 58.410925][ T5836] ? ocfs2_xattr_set+0xf00/0x1930 [ 58.415929][ T5836] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 58.421540][ T5836] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 58.427672][ T5836] ? up_write+0x1a9/0x590 [ 58.431980][ T5836] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 58.438551][ T5836] ? __pfx_up_write+0x10/0x10 [ 58.443211][ T5836] ? __kmalloc_cache_noprof+0x19c/0x2c0 [ 58.448733][ T5836] ocfs2_xattr_set+0xf4e/0x1930 [ 58.453564][ T5836] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 58.458835][ T5836] ? _prb_read_valid+0xa39/0xac0 [ 58.463753][ T5836] ? mark_lock+0x9a/0x360 [ 58.468064][ T5836] ? smk_tskacc+0x300/0x370 [ 58.472558][ T5836] ? posix_xattr_acl+0xa9/0xd0 [ 58.477303][ T5836] ? evm_protect_xattr+0x4be/0xb30 [ 58.482390][ T5836] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 58.488352][ T5836] __vfs_setxattr+0x468/0x4a0 [ 58.493017][ T5836] __vfs_setxattr_noperm+0x12e/0x660 [ 58.498283][ T5836] vfs_setxattr+0x221/0x430 [ 58.502770][ T5836] ? __pfx_vfs_setxattr+0x10/0x10 [ 58.507773][ T5836] ? _raw_spin_unlock+0x28/0x50 [ 58.512625][ T5836] ? dput+0x37/0x2b0 [ 58.516515][ T5836] ovl_get_workdir+0xd90/0x1920 [ 58.521359][ T5836] ? __pfx_ovl_get_workdir+0x10/0x10 [ 58.526625][ T5836] ? ovl_inuse_trylock+0xab/0xf0 [ 58.531553][ T5836] ? do_raw_spin_lock+0x14f/0x370 [ 58.536574][ T5836] ? _raw_spin_unlock+0x28/0x50 [ 58.541402][ T5836] ? ovl_inuse_trylock+0xab/0xf0 [ 58.546317][ T5836] ovl_fill_super+0x12a8/0x3560 [ 58.551150][ T5836] ? __pfx___mutex_trylock_common+0x10/0x10 [ 58.557023][ T5836] ? shrinker_register+0x118/0x230 [ 58.562115][ T5836] ? __pfx_lock_release+0x10/0x10 [ 58.567119][ T5836] ? __pfx_ovl_fill_super+0x10/0x10 [ 58.572293][ T5836] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 58.578074][ T5836] ? __pfx___mutex_lock+0x10/0x10 [ 58.583078][ T5836] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 58.589040][ T5836] ? sget_fc+0x909/0x9c0 [ 58.593260][ T5836] ? __pfx_set_anon_super_fc+0x10/0x10 [ 58.598701][ T5836] ? __pfx_ovl_fill_super+0x10/0x10 [ 58.603877][ T5836] get_tree_nodev+0xb7/0x140 [ 58.608449][ T5836] vfs_get_tree+0x90/0x2b0 [ 58.612846][ T5836] do_new_mount+0x2be/0xb40 [ 58.617331][ T5836] ? __pfx_do_new_mount+0x10/0x10 [ 58.622339][ T5836] __se_sys_mount+0x2d6/0x3c0 [ 58.626998][ T5836] ? __pfx___se_sys_mount+0x10/0x10 [ 58.632181][ T5836] ? do_syscall_64+0x100/0x230 [ 58.636925][ T5836] ? __x64_sys_mount+0x20/0xc0 [ 58.641673][ T5836] do_syscall_64+0xf3/0x230 [ 58.646158][ T5836] ? clear_bhb_loop+0x35/0x90 [ 58.650816][ T5836] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.656704][ T5836] RIP: 0033:0x7fb44d1a2839 [ 58.661107][ T5836] 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 [ 58.680689][ T5836] RSP: 002b:00007fff3408cde8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 58.689080][ T5836] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fb44d1a2839 [ 58.697037][ T5836] RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000 mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) ioctl(-1, BTRFS_IOC_BALANCE_V2, NULL) = -1 EBADF (Bad file descriptor) exit_group(0) = ? +++ exited with 0 +++ [ 58.705030][ T5836] RBP: 00007fb44d219610 R08: 0000000020000200 R09: 0000