./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor825813287 <...> Warning: Permanently added '10.128.0.57' (ED25519) to the list of known hosts. execve("./syz-executor825813287", ["./syz-executor825813287"], 0x7ffeb24a47f0 /* 10 vars */) = 0 brk(NULL) = 0x555573dda000 brk(0x555573ddad00) = 0x555573ddad00 arch_prctl(ARCH_SET_FS, 0x555573dda380) = 0 set_tid_address(0x555573dda650) = 5817 set_robust_list(0x555573dda660, 24) = 0 rseq(0x555573ddaca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor825813287", 4096) = 27 getrandom("\xdc\x6a\x67\x67\x53\x5d\x7f\x9c", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555573ddad00 brk(0x555573dfbd00) = 0x555573dfbd00 brk(0x555573dfc000) = 0x555573dfc000 mprotect(0x7f72ccc72000, 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", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f72c4600000 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(0x7f72c4600000, 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.055475][ T5817] loop0: detected capacity change from 0 to 32768 [ 63.089189][ T5817] ======================================================= [ 63.089189][ T5817] WARNING: The mand mount option has been deprecated and [ 63.089189][ T5817] and is ignored by this kernel. Remove the mand [ 63.089189][ T5817] option from the mount to silence this warning. [ 63.089189][ T5817] ======================================================= 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) [ 63.149520][ T5817] JBD2: Ignoring recovery information on journal [ 63.178302][ T5817] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. symlink("./file1", "./file0") = 0 mkdirat(AT_FDCWD, "./file1", 000) = 0 mkdirat(AT_FDCWD, "./bus", 000) = 0 [ 63.266967][ T5817] overlayfs: upper fs does not support tmpfile. [ 63.277552][ T5817] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 63.284966][ T5817] [ 63.287293][ T5817] ====================================================== [ 63.294319][ T5817] WARNING: possible circular locking dependency detected [ 63.301345][ T5817] 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 Not tainted [ 63.308441][ T5817] ------------------------------------------------------ [ 63.315439][ T5817] syz-executor825/5817 is trying to acquire lock: [ 63.321864][ T5817] ffff8880784e2640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 63.335446][ T5817] [ 63.335446][ T5817] but task is already holding lock: [ 63.342798][ T5817] ffff888078511538 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 63.352262][ T5817] [ 63.352262][ T5817] which lock already depends on the new lock. [ 63.352262][ T5817] [ 63.362665][ T5817] [ 63.362665][ T5817] the existing dependency chain (in reverse order) is: [ 63.371691][ T5817] [ 63.371691][ T5817] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 63.379573][ T5817] lock_acquire+0x1ed/0x550 [ 63.384600][ T5817] down_write+0x99/0x220 [ 63.389374][ T5817] ocfs2_xattr_set_handle+0x539/0xa10 [ 63.395254][ T5817] ocfs2_init_security_set+0xbd/0xd0 [ 63.401133][ T5817] ocfs2_symlink+0x2050/0x2d80 [ 63.406408][ T5817] vfs_symlink+0x137/0x2e0 [ 63.411333][ T5817] do_symlinkat+0x222/0x3a0 [ 63.416345][ T5817] __x64_sys_symlink+0x7a/0x90 [ 63.421609][ T5817] do_syscall_64+0xf3/0x230 [ 63.426652][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.433078][ T5817] [ 63.433078][ T5817] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 63.440369][ T5817] lock_acquire+0x1ed/0x550 [ 63.445407][ T5817] start_this_handle+0x1eb4/0x2110 [ 63.451036][ T5817] jbd2__journal_start+0x2da/0x5d0 [ 63.456674][ T5817] jbd2_journal_start+0x29/0x40 [ 63.462041][ T5817] ocfs2_start_trans+0x3c9/0x700 [ 63.467487][ T5817] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 63.473896][ T5817] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 63.480724][ T5817] ocfs2_calc_security_init+0x3b8/0x620 [ 63.486774][ T5817] ocfs2_symlink+0x125c/0x2d80 [ 63.492039][ T5817] vfs_symlink+0x137/0x2e0 [ 63.496954][ T5817] do_symlinkat+0x222/0x3a0 [ 63.501959][ T5817] __x64_sys_symlink+0x7a/0x90 [ 63.507220][ T5817] do_syscall_64+0xf3/0x230 [ 63.512232][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.518655][ T5817] [ 63.518655][ T5817] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 63.527335][ T5817] lock_acquire+0x1ed/0x550 [ 63.532344][ T5817] down_read+0xb1/0xa40 [ 63.537003][ T5817] ocfs2_start_trans+0x3be/0x700 [ 63.542457][ T5817] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 63.548852][ T5817] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 63.555679][ T5817] ocfs2_calc_security_init+0x3b8/0x620 [ 63.561727][ T5817] ocfs2_symlink+0x125c/0x2d80 [ 63.567013][ T5817] vfs_symlink+0x137/0x2e0 [ 63.571929][ T5817] do_symlinkat+0x222/0x3a0 [ 63.576948][ T5817] __x64_sys_symlink+0x7a/0x90 [ 63.582209][ T5817] do_syscall_64+0xf3/0x230 [ 63.587309][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.593706][ T5817] [ 63.593706][ T5817] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 63.601162][ T5817] lock_acquire+0x1ed/0x550 [ 63.606186][ T5817] ocfs2_start_trans+0x2b9/0x700 [ 63.611658][ T5817] ocfs2_symlink+0x1401/0x2d80 [ 63.616942][ T5817] vfs_symlink+0x137/0x2e0 [ 63.621865][ T5817] do_symlinkat+0x222/0x3a0 [ 63.626887][ T5817] __x64_sys_symlink+0x7a/0x90 [ 63.632163][ T5817] do_syscall_64+0xf3/0x230 [ 63.637184][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.643592][ T5817] [ 63.643592][ T5817] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 63.654609][ T5817] validate_chain+0x18ef/0x5920 [ 63.659967][ T5817] __lock_acquire+0x1397/0x2100 [ 63.665318][ T5817] lock_acquire+0x1ed/0x550 [ 63.670331][ T5817] down_write+0x99/0x220 [ 63.675075][ T5817] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 63.681747][ T5817] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 63.688580][ T5817] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 63.694722][ T5817] ocfs2_xattr_set+0xf4e/0x1930 [ 63.700074][ T5817] __vfs_setxattr+0x468/0x4a0 [ 63.705251][ T5817] __vfs_setxattr_noperm+0x12e/0x660 [ 63.711034][ T5817] vfs_setxattr+0x221/0x430 [ 63.716033][ T5817] ovl_get_workdir+0xd90/0x1920 [ 63.721388][ T5817] ovl_fill_super+0x12a8/0x3560 [ 63.726735][ T5817] get_tree_nodev+0xb7/0x140 [ 63.731832][ T5817] vfs_get_tree+0x90/0x2b0 [ 63.736751][ T5817] do_new_mount+0x2be/0xb40 [ 63.741756][ T5817] __se_sys_mount+0x2d6/0x3c0 [ 63.746934][ T5817] do_syscall_64+0xf3/0x230 [ 63.751958][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.758553][ T5817] [ 63.758553][ T5817] other info that might help us debug this: [ 63.758553][ T5817] [ 63.768766][ T5817] Chain exists of: [ 63.768766][ T5817] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 63.768766][ T5817] [ 63.784486][ T5817] Possible unsafe locking scenario: [ 63.784486][ T5817] [ 63.791936][ T5817] CPU0 CPU1 [ 63.797283][ T5817] ---- ---- [ 63.802624][ T5817] lock(&oi->ip_xattr_sem); [ 63.807228][ T5817] lock(jbd2_handle); [ 63.813884][ T5817] lock(&oi->ip_xattr_sem); [ 63.820976][ T5817] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 63.828418][ T5817] [ 63.828418][ T5817] *** DEADLOCK *** [ 63.828418][ T5817] [ 63.836914][ T5817] 4 locks held by syz-executor825/5817: [ 63.842461][ T5817] #0: ffff8880252020e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 63.852563][ T5817] #1: ffff888058f32420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 63.861706][ T5817] #2: ffff888078511800 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 63.872128][ T5817] #3: ffff888078511538 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 63.882026][ T5817] [ 63.882026][ T5817] stack backtrace: [ 63.888570][ T5817] CPU: 0 UID: 0 PID: 5817 Comm: syz-executor825 Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 [ 63.899682][ T5817] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 63.909765][ T5817] Call Trace: [ 63.913057][ T5817] [ 63.915977][ T5817] dump_stack_lvl+0x241/0x360 [ 63.920666][ T5817] ? __pfx_dump_stack_lvl+0x10/0x10 [ 63.925848][ T5817] ? __pfx__printk+0x10/0x10 [ 63.930463][ T5817] print_circular_bug+0x13a/0x1b0 [ 63.935575][ T5817] check_noncircular+0x36a/0x4a0 [ 63.940578][ T5817] ? __pfx_check_noncircular+0x10/0x10 [ 63.946067][ T5817] ? lockdep_lock+0x123/0x2b0 [ 63.950822][ T5817] validate_chain+0x18ef/0x5920 [ 63.955679][ T5817] ? __pfx_validate_chain+0x10/0x10 [ 63.960876][ T5817] ? __pfx_validate_chain+0x10/0x10 [ 63.966073][ T5817] ? mark_lock+0x9a/0x360 [ 63.970407][ T5817] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 63.976385][ T5817] ? __pfx_lock_release+0x10/0x10 [ 63.981421][ T5817] ? mark_lock+0x9a/0x360 [ 63.985932][ T5817] __lock_acquire+0x1397/0x2100 [ 63.990943][ T5817] lock_acquire+0x1ed/0x550 [ 63.995451][ T5817] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.001890][ T5817] ? __pfx_lock_acquire+0x10/0x10 [ 64.006923][ T5817] ? __pfx___might_resched+0x10/0x10 [ 64.012266][ T5817] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 64.018611][ T5817] ? __pfx_validate_chain+0x10/0x10 [ 64.023819][ T5817] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 64.029815][ T5817] down_write+0x99/0x220 [ 64.034061][ T5817] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.040383][ T5817] ? __pfx_down_write+0x10/0x10 [ 64.045241][ T5817] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 64.051472][ T5817] ? mark_lock+0x9a/0x360 [ 64.055821][ T5817] ? __lock_acquire+0x1397/0x2100 [ 64.060930][ T5817] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 64.067711][ T5817] ? __pfx_lock_acquire+0x10/0x10 [ 64.072745][ T5817] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 64.078805][ T5817] ? __pfx_lock_release+0x10/0x10 [ 64.083823][ T5817] ? do_raw_spin_lock+0x14f/0x370 [ 64.088925][ T5817] ? do_raw_spin_unlock+0x13c/0x8b0 [ 64.094107][ T5817] ? _raw_spin_unlock+0x28/0x50 [ 64.099080][ T5817] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 64.105148][ T5817] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 64.111460][ T5817] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 64.119438][ T5817] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 64.125594][ T5817] ? ocfs2_xattr_set+0xf00/0x1930 [ 64.130621][ T5817] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 64.136339][ T5817] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 64.142484][ T5817] ? up_write+0x1a9/0x590 [ 64.146802][ T5817] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 64.153397][ T5817] ? __pfx_up_write+0x10/0x10 [ 64.158113][ T5817] ? __kmalloc_cache_noprof+0x243/0x390 [ 64.163673][ T5817] ? ocfs2_xattr_set+0x4d5/0x1930 [ 64.168701][ T5817] ocfs2_xattr_set+0xf4e/0x1930 [ 64.173547][ T5817] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 64.178814][ T5817] ? _prb_read_valid+0xa39/0xac0 [ 64.183751][ T5817] ? mark_lock+0x9a/0x360 [ 64.188070][ T5817] ? smk_tskacc+0x300/0x370 [ 64.192579][ T5817] ? posix_xattr_acl+0xa9/0xd0 [ 64.197336][ T5817] ? evm_protect_xattr+0x4be/0xb30 [ 64.202440][ T5817] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 64.208484][ T5817] __vfs_setxattr+0x468/0x4a0 [ 64.213236][ T5817] __vfs_setxattr_noperm+0x12e/0x660 [ 64.218700][ T5817] vfs_setxattr+0x221/0x430 [ 64.223284][ T5817] ? __pfx_vfs_setxattr+0x10/0x10 [ 64.228318][ T5817] ? _raw_spin_unlock+0x28/0x50 [ 64.233192][ T5817] ? dput+0x37/0x2b0 [ 64.237082][ T5817] ovl_get_workdir+0xd90/0x1920 [ 64.241925][ T5817] ? __pfx_ovl_get_workdir+0x10/0x10 [ 64.247230][ T5817] ? ovl_inuse_trylock+0xab/0xf0 [ 64.252176][ T5817] ? do_raw_spin_lock+0x14f/0x370 [ 64.257219][ T5817] ? _raw_spin_unlock+0x28/0x50 [ 64.262059][ T5817] ? ovl_inuse_trylock+0xab/0xf0 [ 64.266999][ T5817] ovl_fill_super+0x12a8/0x3560 [ 64.271854][ T5817] ? __pfx___mutex_trylock_common+0x10/0x10 [ 64.277775][ T5817] ? shrinker_register+0x118/0x230 [ 64.282879][ T5817] ? __pfx_lock_release+0x10/0x10 [ 64.287899][ T5817] ? __pfx_ovl_fill_super+0x10/0x10 [ 64.293088][ T5817] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 64.298889][ T5817] ? __pfx___mutex_lock+0x10/0x10 [ 64.306186][ T5817] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 64.312188][ T5817] ? sget_fc+0x909/0x9c0 [ 64.316461][ T5817] ? __pfx_set_anon_super_fc+0x10/0x10 [ 64.321920][ T5817] ? __pfx_ovl_fill_super+0x10/0x10 [ 64.327115][ T5817] get_tree_nodev+0xb7/0x140 [ 64.331725][ T5817] vfs_get_tree+0x90/0x2b0 [ 64.336148][ T5817] do_new_mount+0x2be/0xb40 [ 64.340662][ T5817] ? __pfx_do_new_mount+0x10/0x10 [ 64.345790][ T5817] __se_sys_mount+0x2d6/0x3c0 [ 64.350483][ T5817] ? __pfx___se_sys_mount+0x10/0x10 [ 64.355693][ T5817] ? do_syscall_64+0x100/0x230 [ 64.360469][ T5817] ? __x64_sys_mount+0x20/0xc0 [ 64.365251][ T5817] do_syscall_64+0xf3/0x230 [ 64.369781][ T5817] ? clear_bhb_loop+0x35/0x90 [ 64.374738][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.380815][ T5817] RIP: 0033:0x7f72ccbfb7f9 [ 64.385263][ 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 [ 64.404952][ T5817] RSP: 002b:00007ffc72982c08 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 64.413366][ T5817] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f72ccbfb7f9 mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) openat(AT_FDCWD, NULL, O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = -1 EFAULT (Bad address) exit_group(0) = ? [ 64.421337][ T5817] RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000 [ 64.429302][ T5817] RBP: 00007f72ccc72610 R08: 0000000020000400 R09: 0000000000000000 [ 64.437280][ T5817] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 64.445419][ T5817] R13: 00007ffc72982dd8 R14: 0000000000000001 R15: 0000000000000001 [ 64.453656][ T5817] [ 64.457797][ T5817] overlayfs: upper fs missing required features. +++ exited with 0 +++