./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2157454816 <...> Warning: Permanently added '10.128.0.70' (ED25519) to the list of known hosts. execve("./syz-executor2157454816", ["./syz-executor2157454816"], 0x7ffc04423a20 /* 10 vars */) = 0 brk(NULL) = 0x5555951c8000 brk(0x5555951c8d00) = 0x5555951c8d00 arch_prctl(ARCH_SET_FS, 0x5555951c8380) = 0 set_tid_address(0x5555951c8650) = 5818 set_robust_list(0x5555951c8660, 24) = 0 rseq(0x5555951c8ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2157454816", 4096) = 28 getrandom("\x61\x04\xc7\x3a\xaa\x4a\xf7\xb4", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555951c8d00 brk(0x5555951e9d00) = 0x5555951e9d00 brk(0x5555951ea000) = 0x5555951ea000 mprotect(0x7f7d32d83000, 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) = 0x7f7d2a800000 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(0x7f7d2a800000, 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 [ 75.743652][ T5818] loop0: detected capacity change from 0 to 32768 [ 75.799256][ T5818] ======================================================= [ 75.799256][ T5818] WARNING: The mand mount option has been deprecated and [ 75.799256][ T5818] and is ignored by this kernel. Remove the mand [ 75.799256][ T5818] option from the mount to silence this warning. [ 75.799256][ T5818] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,dir_resv_level=00000000000000000003,resv_level=00000000000000000006,coherency=ful"...) = 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) [ 75.854728][ T5818] JBD2: Ignoring recovery information on journal [ 75.884697][ T5818] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdirat(AT_FDCWD, "./file0", 000) = 0 mkdirat(AT_FDCWD, "./file1", 000) = 0 mkdir("./bus", 000) = 0 [ 75.947104][ T5818] overlayfs: upper fs does not support tmpfile. [ 75.956753][ T5818] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 75.964259][ T5818] [ 75.966591][ T5818] ====================================================== [ 75.973617][ T5818] WARNING: possible circular locking dependency detected [ 75.980658][ T5818] 6.13.0-rc6-syzkaller-00130-g2144da25584e #0 Not tainted [ 75.987772][ T5818] ------------------------------------------------------ [ 75.994803][ T5818] syz-executor215/5818 is trying to acquire lock: [ 76.001220][ T5818] ffff888073d52640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 76.014757][ T5818] [ 76.014757][ T5818] but task is already holding lock: [ 76.022123][ T5818] ffff888073d56ab8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 76.031627][ T5818] [ 76.031627][ T5818] which lock already depends on the new lock. [ 76.031627][ T5818] [ 76.042025][ T5818] [ 76.042025][ T5818] the existing dependency chain (in reverse order) is: [ 76.051062][ T5818] [ 76.051062][ T5818] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 76.058923][ T5818] lock_acquire+0x1ed/0x550 [ 76.063957][ T5818] down_write+0x99/0x220 [ 76.068755][ T5818] ocfs2_xattr_set_handle+0x539/0xa10 [ 76.074655][ T5818] ocfs2_init_security_set+0xbd/0xd0 [ 76.080475][ T5818] ocfs2_mknod+0x1ccf/0x2b30 [ 76.085589][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 76.090539][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 76.095349][ T5818] do_mkdirat+0x264/0x3a0 [ 76.100232][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 76.105549][ T5818] do_syscall_64+0xf3/0x230 [ 76.110609][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.117044][ T5818] [ 76.117044][ T5818] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 76.124374][ T5818] lock_acquire+0x1ed/0x550 [ 76.129441][ T5818] start_this_handle+0x1eb4/0x2110 [ 76.135103][ T5818] jbd2__journal_start+0x2da/0x5d0 [ 76.140755][ T5818] jbd2_journal_start+0x29/0x40 [ 76.146150][ T5818] ocfs2_start_trans+0x3c9/0x700 [ 76.151638][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 76.158075][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 76.165474][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 76.170600][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 76.175543][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 76.180316][ T5818] do_mkdirat+0x264/0x3a0 [ 76.185177][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 76.190471][ T5818] do_syscall_64+0xf3/0x230 [ 76.195507][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.201933][ T5818] [ 76.201933][ T5818] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 76.210466][ T5818] lock_acquire+0x1ed/0x550 [ 76.215494][ T5818] down_read+0xb1/0xa40 [ 76.220170][ T5818] ocfs2_start_trans+0x3be/0x700 [ 76.225681][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 76.232101][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 76.238955][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 76.244071][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 76.249010][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 76.253779][ T5818] do_mkdirat+0x264/0x3a0 [ 76.258644][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 76.263940][ T5818] do_syscall_64+0xf3/0x230 [ 76.268998][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.275425][ T5818] [ 76.275425][ T5818] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 76.282922][ T5818] lock_acquire+0x1ed/0x550 [ 76.287975][ T5818] ocfs2_start_trans+0x2b9/0x700 [ 76.293450][ T5818] ocfs2_mknod+0x150c/0x2b30 [ 76.298565][ T5818] ocfs2_mkdir+0x1ab/0x470 [ 76.303504][ T5818] vfs_mkdir+0x2f9/0x4f0 [ 76.308276][ T5818] do_mkdirat+0x264/0x3a0 [ 76.313135][ T5818] __x64_sys_mkdirat+0x87/0xa0 [ 76.318434][ T5818] do_syscall_64+0xf3/0x230 [ 76.323469][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.329895][ T5818] [ 76.329895][ T5818] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 76.340431][ T5818] validate_chain+0x18ef/0x5920 [ 76.345813][ T5818] __lock_acquire+0x1397/0x2100 [ 76.351195][ T5818] lock_acquire+0x1ed/0x550 [ 76.356226][ T5818] down_write+0x99/0x220 [ 76.360995][ T5818] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 76.367676][ T5818] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 76.374534][ T5818] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 76.380703][ T5818] ocfs2_xattr_set+0xf4e/0x1930 [ 76.386106][ T5818] __vfs_setxattr+0x468/0x4a0 [ 76.391320][ T5818] __vfs_setxattr_noperm+0x12e/0x660 [ 76.397138][ T5818] vfs_setxattr+0x221/0x430 [ 76.402176][ T5818] ovl_get_workdir+0xd90/0x1920 [ 76.407559][ T5818] ovl_fill_super+0x12a8/0x3560 [ 76.412941][ T5818] get_tree_nodev+0xb7/0x140 [ 76.418062][ T5818] vfs_get_tree+0x90/0x2b0 [ 76.423009][ T5818] do_new_mount+0x2be/0xb40 [ 76.428047][ T5818] __se_sys_mount+0x2d6/0x3c0 [ 76.433245][ T5818] do_syscall_64+0xf3/0x230 [ 76.438281][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.444709][ T5818] [ 76.444709][ T5818] other info that might help us debug this: [ 76.444709][ T5818] [ 76.454941][ T5818] Chain exists of: [ 76.454941][ T5818] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 76.454941][ T5818] [ 76.470717][ T5818] Possible unsafe locking scenario: [ 76.470717][ T5818] [ 76.478175][ T5818] CPU0 CPU1 [ 76.483540][ T5818] ---- ---- [ 76.488933][ T5818] lock(&oi->ip_xattr_sem); [ 76.493537][ T5818] lock(jbd2_handle); [ 76.500135][ T5818] lock(&oi->ip_xattr_sem); [ 76.507252][ T5818] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 76.514575][ T5818] [ 76.514575][ T5818] *** DEADLOCK *** [ 76.514575][ T5818] [ 76.522729][ T5818] 4 locks held by syz-executor215/5818: [ 76.528275][ T5818] #0: ffff8880789d80e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 76.538418][ T5818] #1: ffff888032f34420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 76.547584][ T5818] #2: ffff888073d56d80 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 76.558059][ T5818] #3: ffff888073d56ab8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 76.567997][ T5818] [ 76.567997][ T5818] stack backtrace: [ 76.573906][ T5818] CPU: 0 UID: 0 PID: 5818 Comm: syz-executor215 Not tainted 6.13.0-rc6-syzkaller-00130-g2144da25584e #0 [ 76.585016][ T5818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 76.595082][ T5818] Call Trace: [ 76.598382][ T5818] [ 76.601345][ T5818] dump_stack_lvl+0x241/0x360 [ 76.606081][ T5818] ? __pfx_dump_stack_lvl+0x10/0x10 [ 76.611303][ T5818] ? __pfx__printk+0x10/0x10 [ 76.615914][ T5818] print_circular_bug+0x13a/0x1b0 [ 76.620953][ T5818] check_noncircular+0x36a/0x4a0 [ 76.625902][ T5818] ? __pfx_check_noncircular+0x10/0x10 [ 76.631373][ T5818] ? lockdep_lock+0x123/0x2b0 [ 76.636062][ T5818] validate_chain+0x18ef/0x5920 [ 76.640925][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 76.646140][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 76.651353][ T5818] ? mark_lock+0x9a/0x360 [ 76.655733][ T5818] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 76.661730][ T5818] ? __pfx_lock_release+0x10/0x10 [ 76.666762][ T5818] ? mark_lock+0x9a/0x360 [ 76.671100][ T5818] __lock_acquire+0x1397/0x2100 [ 76.675960][ T5818] lock_acquire+0x1ed/0x550 [ 76.680468][ T5818] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 76.686804][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 76.691832][ T5818] ? __pfx___might_resched+0x10/0x10 [ 76.697132][ T5818] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 76.703472][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 76.708681][ T5818] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 76.714666][ T5818] down_write+0x99/0x220 [ 76.718914][ T5818] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 76.725245][ T5818] ? __pfx_down_write+0x10/0x10 [ 76.730130][ T5818] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 76.736293][ T5818] ? mark_lock+0x9a/0x360 [ 76.740636][ T5818] ? __lock_acquire+0x1397/0x2100 [ 76.745675][ T5818] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 76.752301][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 76.757330][ T5818] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 76.763497][ T5818] ? __pfx_lock_release+0x10/0x10 [ 76.768525][ T5818] ? do_raw_spin_lock+0x14f/0x370 [ 76.773565][ T5818] ? do_raw_spin_unlock+0x13c/0x8b0 [ 76.778781][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 76.783638][ T5818] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 76.789741][ T5818] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 76.796078][ T5818] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 76.802937][ T5818] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 76.809106][ T5818] ? ocfs2_xattr_set+0xf00/0x1930 [ 76.814143][ T5818] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 76.819811][ T5818] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 76.825975][ T5818] ? up_write+0x1a9/0x590 [ 76.830318][ T5818] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 76.836913][ T5818] ? __pfx_up_write+0x10/0x10 [ 76.841599][ T5818] ? __kmalloc_cache_noprof+0x243/0x390 [ 76.847146][ T5818] ? ocfs2_xattr_set+0x4d5/0x1930 [ 76.852180][ T5818] ocfs2_xattr_set+0xf4e/0x1930 [ 76.857064][ T5818] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 76.862377][ T5818] ? _prb_read_valid+0xa39/0xac0 [ 76.867353][ T5818] ? mark_lock+0x9a/0x360 [ 76.871697][ T5818] ? smk_tskacc+0x300/0x370 [ 76.876214][ T5818] ? posix_xattr_acl+0xa9/0xd0 [ 76.881004][ T5818] ? evm_protect_xattr+0x4be/0xb30 [ 76.886125][ T5818] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 76.892201][ T5818] __vfs_setxattr+0x468/0x4a0 [ 76.896896][ T5818] __vfs_setxattr_noperm+0x12e/0x660 [ 76.902197][ T5818] vfs_setxattr+0x221/0x430 [ 76.906716][ T5818] ? __pfx_vfs_setxattr+0x10/0x10 [ 76.911752][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 76.916612][ T5818] ? dput+0x37/0x2b0 [ 76.920507][ T5818] ovl_get_workdir+0xd90/0x1920 [ 76.925382][ T5818] ? __pfx_ovl_get_workdir+0x10/0x10 [ 76.930694][ T5818] ? ovl_inuse_trylock+0xab/0xf0 [ 76.935635][ T5818] ? do_raw_spin_lock+0x14f/0x370 [ 76.940674][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 76.945532][ T5818] ? ovl_inuse_trylock+0xab/0xf0 [ 76.950478][ T5818] ovl_fill_super+0x12a8/0x3560 [ 76.955349][ T5818] ? __pfx___mutex_trylock_common+0x10/0x10 [ 76.961262][ T5818] ? shrinker_register+0x118/0x230 [ 76.966392][ T5818] ? __pfx_lock_release+0x10/0x10 [ 76.971427][ T5818] ? __pfx_ovl_fill_super+0x10/0x10 [ 76.976634][ T5818] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 76.982464][ T5818] ? __pfx___mutex_lock+0x10/0x10 [ 76.987505][ T5818] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 76.993510][ T5818] ? sget_fc+0x909/0x9c0 [ 76.997762][ T5818] ? __pfx_set_anon_super_fc+0x10/0x10 [ 77.003243][ T5818] ? __pfx_ovl_fill_super+0x10/0x10 [ 77.008464][ T5818] get_tree_nodev+0xb7/0x140 [ 77.013082][ T5818] vfs_get_tree+0x90/0x2b0 [ 77.017516][ T5818] do_new_mount+0x2be/0xb40 [ 77.022044][ T5818] ? __pfx_do_new_mount+0x10/0x10 [ 77.027091][ T5818] __se_sys_mount+0x2d6/0x3c0 [ 77.031777][ T5818] ? __pfx___se_sys_mount+0x10/0x10 [ 77.036980][ T5818] ? do_syscall_64+0x100/0x230 [ 77.041758][ T5818] ? __x64_sys_mount+0x20/0xc0 [ 77.046528][ T5818] do_syscall_64+0xf3/0x230 [ 77.051042][ T5818] ? clear_bhb_loop+0x35/0x90 [ 77.055730][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.061657][ T5818] RIP: 0033:0x7f7d32d0c779 [ 77.066082][ 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 [ 77.085692][ T5818] RSP: 002b:00007fff3c4deb88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 77.094113][ T5818] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f7d32d0c779 mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [