./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2974244242 <...> Warning: Permanently added '10.128.1.146' (ED25519) to the list of known hosts. execve("./syz-executor2974244242", ["./syz-executor2974244242"], 0x7ffd43c2d950 /* 10 vars */) = 0 brk(NULL) = 0x5555818eb000 brk(0x5555818ebd00) = 0x5555818ebd00 arch_prctl(ARCH_SET_FS, 0x5555818eb380) = 0 set_tid_address(0x5555818eb650) = 5817 set_robust_list(0x5555818eb660, 24) = 0 rseq(0x5555818ebca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2974244242", 4096) = 28 getrandom("\xe2\x9b\xae\xe6\x5d\xee\xcf\x22", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555818ebd00 brk(0x55558190cd00) = 0x55558190cd00 brk(0x55558190d000) = 0x55558190d000 mprotect(0x7fb92b762000, 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) = 0x7fb923200000 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(0x7fb923200000, 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 mount("/dev/loop0", "./file1", "ocfs2", MS_I_VERSION|MS_LAZYTIME, "localalloc=18446744073709551608,resv_level=00000000000000000002,heartbeat=none,coherency=buffered,er"...) = 0 [ 61.638880][ T5817] loop0: detected capacity change from 0 to 32768 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 mkdirat(AT_FDCWD, "./file1", 0243) = 0 mkdir("./bus", 000) = 0 [ 61.693401][ T5817] JBD2: Ignoring recovery information on journal [ 61.717649][ T5817] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 61.775276][ T5817] overlayfs: upper fs does not support tmpfile. [ 61.784871][ T5817] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 61.792108][ T5817] [ 61.794425][ T5817] ====================================================== [ 61.801417][ T5817] WARNING: possible circular locking dependency detected [ 61.808418][ T5817] 6.13.0-rc3-syzkaller-00193-ge9b8ffafd20a #0 Not tainted [ 61.815497][ T5817] ------------------------------------------------------ [ 61.822488][ T5817] syz-executor297/5817 is trying to acquire lock: [ 61.828875][ T5817] ffff888072882640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 61.842360][ T5817] [ 61.842360][ T5817] but task is already holding lock: [ 61.849703][ T5817] ffff888072885c78 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 61.859162][ T5817] [ 61.859162][ T5817] which lock already depends on the new lock. [ 61.859162][ T5817] [ 61.869540][ T5817] [ 61.869540][ T5817] the existing dependency chain (in reverse order) is: [ 61.878532][ T5817] [ 61.878532][ T5817] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 61.886331][ T5817] lock_acquire+0x1ed/0x550 [ 61.891338][ T5817] down_write+0x99/0x220 [ 61.896091][ T5817] ocfs2_xattr_set_handle+0x539/0xa10 [ 61.901967][ T5817] ocfs2_init_security_set+0xbd/0xd0 [ 61.907756][ T5817] ocfs2_mknod+0x1ccf/0x2b30 [ 61.912845][ T5817] ocfs2_mkdir+0x1ab/0x470 [ 61.917757][ T5817] vfs_mkdir+0x2f9/0x4f0 [ 61.922503][ T5817] do_mkdirat+0x264/0x3a0 [ 61.927330][ T5817] __x64_sys_mkdirat+0x87/0xa0 [ 61.932595][ T5817] do_syscall_64+0xf3/0x230 [ 61.937603][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 61.943997][ T5817] [ 61.943997][ T5817] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 61.951269][ T5817] lock_acquire+0x1ed/0x550 [ 61.956269][ T5817] start_this_handle+0x1eb4/0x2110 [ 61.961878][ T5817] jbd2__journal_start+0x2da/0x5d0 [ 61.967489][ T5817] jbd2_journal_start+0x29/0x40 [ 61.972839][ T5817] ocfs2_start_trans+0x3c9/0x700 [ 61.978276][ T5817] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 61.984669][ T5817] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 61.991500][ T5817] ocfs2_mknod+0x143a/0x2b30 [ 61.996588][ T5817] ocfs2_mkdir+0x1ab/0x470 [ 62.001500][ T5817] vfs_mkdir+0x2f9/0x4f0 [ 62.006246][ T5817] do_mkdirat+0x264/0x3a0 [ 62.011080][ T5817] __x64_sys_mkdirat+0x87/0xa0 [ 62.016343][ T5817] do_syscall_64+0xf3/0x230 [ 62.021347][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.027740][ T5817] [ 62.027740][ T5817] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 62.036241][ T5817] lock_acquire+0x1ed/0x550 [ 62.041258][ T5817] down_read+0xb1/0xa40 [ 62.045922][ T5817] ocfs2_start_trans+0x3be/0x700 [ 62.051370][ T5817] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 62.057771][ T5817] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.064603][ T5817] ocfs2_mknod+0x143a/0x2b30 [ 62.069708][ T5817] ocfs2_mkdir+0x1ab/0x470 [ 62.074625][ T5817] vfs_mkdir+0x2f9/0x4f0 [ 62.079366][ T5817] do_mkdirat+0x264/0x3a0 [ 62.084207][ T5817] __x64_sys_mkdirat+0x87/0xa0 [ 62.089490][ T5817] do_syscall_64+0xf3/0x230 [ 62.094504][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.100905][ T5817] [ 62.100905][ T5817] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 62.108359][ T5817] lock_acquire+0x1ed/0x550 [ 62.113363][ T5817] ocfs2_start_trans+0x2b9/0x700 [ 62.118802][ T5817] ocfs2_mknod+0x150c/0x2b30 [ 62.123897][ T5817] ocfs2_mkdir+0x1ab/0x470 [ 62.128814][ T5817] vfs_mkdir+0x2f9/0x4f0 [ 62.133564][ T5817] do_mkdirat+0x264/0x3a0 [ 62.138400][ T5817] __x64_sys_mkdirat+0x87/0xa0 [ 62.143663][ T5817] do_syscall_64+0xf3/0x230 [ 62.148671][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.155069][ T5817] [ 62.155069][ T5817] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 62.165565][ T5817] validate_chain+0x18ef/0x5920 [ 62.170917][ T5817] __lock_acquire+0x1397/0x2100 [ 62.176265][ T5817] lock_acquire+0x1ed/0x550 [ 62.181285][ T5817] down_write+0x99/0x220 [ 62.186028][ T5817] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 62.192681][ T5817] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 62.199508][ T5817] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 62.205640][ T5817] ocfs2_xattr_set+0xf4e/0x1930 [ 62.210990][ T5817] __vfs_setxattr+0x468/0x4a0 [ 62.216178][ T5817] __vfs_setxattr_noperm+0x12e/0x660 [ 62.221975][ T5817] vfs_setxattr+0x221/0x430 [ 62.226986][ T5817] ovl_get_workdir+0xd90/0x1920 [ 62.232351][ T5817] ovl_fill_super+0x12a8/0x3560 [ 62.237713][ T5817] get_tree_nodev+0xb7/0x140 [ 62.242807][ T5817] vfs_get_tree+0x90/0x2b0 [ 62.247732][ T5817] do_new_mount+0x2be/0xb40 [ 62.252738][ T5817] __se_sys_mount+0x2d6/0x3c0 [ 62.257912][ T5817] do_syscall_64+0xf3/0x230 [ 62.262923][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.269322][ T5817] [ 62.269322][ T5817] other info that might help us debug this: [ 62.269322][ T5817] [ 62.279537][ T5817] Chain exists of: [ 62.279537][ T5817] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 62.279537][ T5817] [ 62.295255][ T5817] Possible unsafe locking scenario: [ 62.295255][ T5817] [ 62.302683][ T5817] CPU0 CPU1 [ 62.308024][ T5817] ---- ---- [ 62.313365][ T5817] lock(&oi->ip_xattr_sem); [ 62.317935][ T5817] lock(jbd2_handle); [ 62.324511][ T5817] lock(&oi->ip_xattr_sem); [ 62.331597][ T5817] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 62.338863][ T5817] [ 62.338863][ T5817] *** DEADLOCK *** [ 62.338863][ T5817] [ 62.346983][ T5817] 4 locks held by syz-executor297/5817: [ 62.352509][ T5817] #0: ffff8880795300e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 62.362588][ T5817] #1: ffff88807cce8420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 62.371698][ T5817] #2: ffff888072885f40 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 62.382128][ T5817] #3: ffff888072885c78 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 62.392040][ T5817] [ 62.392040][ T5817] stack backtrace: [ 62.397924][ T5817] CPU: 0 UID: 0 PID: 5817 Comm: syz-executor297 Not tainted 6.13.0-rc3-syzkaller-00193-ge9b8ffafd20a #0 [ 62.409005][ T5817] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 62.419049][ T5817] Call Trace: [ 62.422311][ T5817] [ 62.425222][ T5817] dump_stack_lvl+0x241/0x360 [ 62.429883][ T5817] ? __pfx_dump_stack_lvl+0x10/0x10 [ 62.435065][ T5817] ? __pfx__printk+0x10/0x10 [ 62.439634][ T5817] print_circular_bug+0x13a/0x1b0 [ 62.444638][ T5817] check_noncircular+0x36a/0x4a0 [ 62.449576][ T5817] ? __pfx_check_noncircular+0x10/0x10 [ 62.455032][ T5817] ? lockdep_lock+0x123/0x2b0 [ 62.459694][ T5817] validate_chain+0x18ef/0x5920 [ 62.464534][ T5817] ? __pfx_validate_chain+0x10/0x10 [ 62.469721][ T5817] ? __pfx_validate_chain+0x10/0x10 [ 62.474930][ T5817] ? mark_lock+0x9a/0x360 [ 62.479247][ T5817] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 62.485213][ T5817] ? __pfx_lock_release+0x10/0x10 [ 62.490227][ T5817] ? mark_lock+0x9a/0x360 [ 62.494543][ T5817] __lock_acquire+0x1397/0x2100 [ 62.499377][ T5817] lock_acquire+0x1ed/0x550 [ 62.503866][ T5817] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 62.510176][ T5817] ? __pfx_lock_acquire+0x10/0x10 [ 62.515184][ T5817] ? __pfx___might_resched+0x10/0x10 [ 62.520459][ T5817] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 62.526783][ T5817] ? __pfx_validate_chain+0x10/0x10 [ 62.531969][ T5817] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 62.537936][ T5817] down_write+0x99/0x220 [ 62.542186][ T5817] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 62.548504][ T5817] ? __pfx_down_write+0x10/0x10 [ 62.553342][ T5817] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 62.559484][ T5817] ? mark_lock+0x9a/0x360 [ 62.563796][ T5817] ? __lock_acquire+0x1397/0x2100 [ 62.568799][ T5817] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 62.575371][ T5817] ? __pfx_lock_acquire+0x10/0x10 [ 62.580370][ T5817] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 62.586426][ T5817] ? __pfx_lock_release+0x10/0x10 [ 62.591434][ T5817] ? do_raw_spin_lock+0x14f/0x370 [ 62.596439][ T5817] ? do_raw_spin_unlock+0x13c/0x8b0 [ 62.601618][ T5817] ? _raw_spin_unlock+0x28/0x50 [ 62.606461][ T5817] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 62.612509][ T5817] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 62.618817][ T5817] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 62.625734][ T5817] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 62.631870][ T5817] ? ocfs2_xattr_set+0xf00/0x1930 [ 62.636880][ T5817] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 62.642497][ T5817] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 62.648626][ T5817] ? up_write+0x1a9/0x590 [ 62.652937][ T5817] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 62.659509][ T5817] ? __pfx_up_write+0x10/0x10 [ 62.664164][ T5817] ? __kmalloc_cache_noprof+0x243/0x390 [ 62.669685][ T5817] ? ocfs2_xattr_set+0x4d5/0x1930 [ 62.674688][ T5817] ocfs2_xattr_set+0xf4e/0x1930 [ 62.679523][ T5817] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 62.684790][ T5817] ? __lock_acquire+0x1397/0x2100 [ 62.689802][ T5817] ? smk_tskacc+0x300/0x370 [ 62.694286][ T5817] ? posix_xattr_acl+0xa9/0xd0 [ 62.699031][ T5817] ? evm_protect_xattr+0x4be/0xb30 [ 62.704120][ T5817] ? ocfs2_xattr_user_set+0xae/0x100 [ 62.709382][ T5817] ? __pfx_ocfs2_xattr_user_set+0x10/0x10 [ 62.715083][ T5817] __vfs_setxattr+0x468/0x4a0 [ 62.719745][ T5817] __vfs_setxattr_noperm+0x12e/0x660 [ 62.725011][ T5817] vfs_setxattr+0x221/0x430 [ 62.729492][ T5817] ? __pfx_vfs_setxattr+0x10/0x10 [ 62.734497][ T5817] ? _raw_spin_unlock+0x28/0x50 [ 62.739329][ T5817] ? dput+0x37/0x2b0 [ 62.743202][ T5817] ovl_get_workdir+0xd90/0x1920 [ 62.748034][ T5817] ? __pfx_ovl_get_workdir+0x10/0x10 [ 62.753299][ T5817] ? ovl_inuse_trylock+0xab/0xf0 [ 62.758214][ T5817] ? do_raw_spin_lock+0x14f/0x370 [ 62.763221][ T5817] ? _raw_spin_unlock+0x28/0x50 [ 62.768048][ T5817] ? ovl_inuse_trylock+0xab/0xf0 [ 62.772967][ T5817] ovl_fill_super+0x12a8/0x3560 [ 62.777799][ T5817] ? __pfx___mutex_trylock_common+0x10/0x10 [ 62.783683][ T5817] ? shrinker_register+0x118/0x230 [ 62.788787][ T5817] ? __pfx_lock_release+0x10/0x10 [ 62.793808][ T5817] ? __pfx_ovl_fill_super+0x10/0x10 [ 62.798995][ T5817] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 62.804784][ T5817] ? __pfx___mutex_lock+0x10/0x10 [ 62.809808][ T5817] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 62.815774][ T5817] ? sget_fc+0x909/0x9c0 [ 62.820000][ T5817] ? __pfx_set_anon_super_fc+0x10/0x10 [ 62.825447][ T5817] ? __pfx_ovl_fill_super+0x10/0x10 [ 62.830629][ T5817] get_tree_nodev+0xb7/0x140 [ 62.835203][ T5817] vfs_get_tree+0x90/0x2b0 [ 62.839604][ T5817] do_new_mount+0x2be/0xb40 [ 62.844090][ T5817] ? __pfx_do_new_mount+0x10/0x10 [ 62.849099][ T5817] __se_sys_mount+0x2d6/0x3c0 [ 62.853771][ T5817] ? __pfx___se_sys_mount+0x10/0x10 [ 62.858947][ T5817] ? do_syscall_64+0x100/0x230 [ 62.863710][ T5817] ? __x64_sys_mount+0x20/0xc0 [ 62.868449][ T5817] do_syscall_64+0xf3/0x230 [ 62.872936][ T5817] ? clear_bhb_loop+0x35/0x90 mount(NULL, "./file0", "overlay", 0, "upperdir=./file1,lowerdir=.,workdir=./bus,userxattr,,") = -1 EINVAL (Invalid argument) [ 62.877595][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.883485][ T5817] RIP: 0033:0x7fb92b6eb839 [ 62.887885][ T5817] 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 [ 62.907471][ T5817] RSP: 002b:00007ffdfbc3bb18 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 62.915863][ T5817] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fb92b6eb839 exit_group(0) = ? +++ exited with 0 +++ [ 62.923815][ T5817] RDX: 0000000020000200 RSI: 00000000200003c0 RDI: 0000000