./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1858744494 <...> Warning: Permanently added '10.128.0.218' (ED25519) to the list of known hosts. execve("./syz-executor1858744494", ["./syz-executor1858744494"], 0x7ffc7c7b5e10 /* 10 vars */) = 0 brk(NULL) = 0x55558012b000 brk(0x55558012bd00) = 0x55558012bd00 arch_prctl(ARCH_SET_FS, 0x55558012b380) = 0 set_tid_address(0x55558012b650) = 5829 set_robust_list(0x55558012b660, 24) = 0 rseq(0x55558012bca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1858744494", 4096) = 28 getrandom("\x98\xc2\x9c\xb8\xfa\x49\xb3\x06", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558012bd00 brk(0x55558014cd00) = 0x55558014cd00 brk(0x55558014d000) = 0x55558014d000 mprotect(0x7fe943064000, 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) = 0x7fe93aa00000 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(0x7fe93aa00000, 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 [ 67.172305][ T5829] loop0: detected capacity change from 0 to 32768 [ 67.215855][ T5829] ======================================================= [ 67.215855][ T5829] WARNING: The mand mount option has been deprecated and [ 67.215855][ T5829] and is ignored by this kernel. Remove the mand [ 67.215855][ T5829] option from the mount to silence this warning. [ 67.215855][ T5829] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_I_VERSION, "acl,nointr,atime_quantum=00000000000000000007,localflocks,localalloc=00000000000000000003,localflock"...) = 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) open("./file1", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0175137) = 4 [ 67.266705][ T5829] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 67.316984][ T5829] [ 67.319325][ T5829] ====================================================== [ 67.326323][ T5829] WARNING: possible circular locking dependency detected [ 67.333330][ T5829] 6.13.0-rc6-next-20250107-syzkaller #0 Not tainted [ 67.339896][ T5829] ------------------------------------------------------ [ 67.346892][ T5829] syz-executor185/5829 is trying to acquire lock: [ 67.353282][ T5829] ffff8880775bed80 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{4:4}, at: ocfs2_reserve_suballoc_bits+0x192/0x4e70 [ 67.366515][ T5829] [ 67.366515][ T5829] but task is already holding lock: [ 67.373854][ T5829] ffff8880775f06f8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 67.383312][ T5829] [ 67.383312][ T5829] which lock already depends on the new lock. [ 67.383312][ T5829] [ 67.393693][ T5829] [ 67.393693][ T5829] the existing dependency chain (in reverse order) is: [ 67.402685][ T5829] [ 67.402685][ T5829] -> #5 (&oi->ip_xattr_sem){++++}-{4:4}: [ 67.410489][ T5829] lock_acquire+0x1ed/0x550 [ 67.415498][ T5829] down_read+0xb1/0xa40 [ 67.420163][ T5829] ocfs2_init_acl+0x397/0x930 [ 67.425345][ T5829] ocfs2_mknod+0x1c05/0x2b30 [ 67.430434][ T5829] ocfs2_create+0x1ab/0x470 [ 67.435435][ T5829] path_openat+0x192f/0x3580 [ 67.440521][ T5829] do_filp_open+0x27f/0x4e0 [ 67.445525][ T5829] do_sys_openat2+0x13e/0x1d0 [ 67.450697][ T5829] __x64_sys_open+0x225/0x270 [ 67.455871][ T5829] do_syscall_64+0xf3/0x230 [ 67.460872][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.467288][ T5829] [ 67.467288][ T5829] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 67.474566][ T5829] lock_acquire+0x1ed/0x550 [ 67.479581][ T5829] start_this_handle+0x1eb4/0x2110 [ 67.485195][ T5829] jbd2__journal_start+0x2da/0x5d0 [ 67.490808][ T5829] jbd2_journal_start+0x29/0x40 [ 67.496161][ T5829] ocfs2_start_trans+0x3c9/0x700 [ 67.501597][ T5829] ocfs2_mknod+0x150c/0x2b30 [ 67.506690][ T5829] ocfs2_create+0x1ab/0x470 [ 67.511697][ T5829] path_openat+0x192f/0x3580 [ 67.516788][ T5829] do_filp_open+0x27f/0x4e0 [ 67.521789][ T5829] do_sys_openat2+0x13e/0x1d0 [ 67.526974][ T5829] __x64_sys_open+0x225/0x270 [ 67.532155][ T5829] do_syscall_64+0xf3/0x230 [ 67.537164][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.543562][ T5829] [ 67.543562][ T5829] -> #3 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 67.552059][ T5829] lock_acquire+0x1ed/0x550 [ 67.557065][ T5829] down_read+0xb1/0xa40 [ 67.561723][ T5829] ocfs2_start_trans+0x3be/0x700 [ 67.567163][ T5829] ocfs2_mknod+0x150c/0x2b30 [ 67.572255][ T5829] ocfs2_create+0x1ab/0x470 [ 67.577263][ T5829] path_openat+0x192f/0x3580 [ 67.582369][ T5829] do_filp_open+0x27f/0x4e0 [ 67.587371][ T5829] do_sys_openat2+0x13e/0x1d0 [ 67.592551][ T5829] __x64_sys_open+0x225/0x270 [ 67.597730][ T5829] do_syscall_64+0xf3/0x230 [ 67.602732][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.609128][ T5829] [ 67.609128][ T5829] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 67.616583][ T5829] lock_acquire+0x1ed/0x550 [ 67.621585][ T5829] ocfs2_start_trans+0x2b9/0x700 [ 67.627023][ T5829] ocfs2_mknod+0x150c/0x2b30 [ 67.632120][ T5829] ocfs2_create+0x1ab/0x470 [ 67.637124][ T5829] path_openat+0x192f/0x3580 [ 67.642214][ T5829] do_filp_open+0x27f/0x4e0 [ 67.647220][ T5829] do_sys_openat2+0x13e/0x1d0 [ 67.652395][ T5829] __x64_sys_open+0x225/0x270 [ 67.657593][ T5829] do_syscall_64+0xf3/0x230 [ 67.662647][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.669090][ T5829] [ 67.669090][ T5829] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{4:4}: [ 67.679601][ T5829] lock_acquire+0x1ed/0x550 [ 67.684617][ T5829] down_write+0x99/0x220 [ 67.689363][ T5829] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 67.696020][ T5829] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 67.702851][ T5829] ocfs2_mknod+0x1486/0x2b30 [ 67.707950][ T5829] ocfs2_create+0x1ab/0x470 [ 67.712958][ T5829] path_openat+0x192f/0x3580 [ 67.718048][ T5829] do_filp_open+0x27f/0x4e0 [ 67.723050][ T5829] do_sys_openat2+0x13e/0x1d0 [ 67.728226][ T5829] __x64_sys_open+0x225/0x270 [ 67.733406][ T5829] do_syscall_64+0xf3/0x230 [ 67.738415][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.744810][ T5829] [ 67.744810][ T5829] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{4:4}: [ 67.755313][ T5829] validate_chain+0x18ef/0x5920 [ 67.760678][ T5829] __lock_acquire+0x1397/0x2100 [ 67.766033][ T5829] lock_acquire+0x1ed/0x550 [ 67.771043][ T5829] down_write+0x99/0x220 [ 67.775791][ T5829] ocfs2_reserve_suballoc_bits+0x192/0x4e70 [ 67.782192][ T5829] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 67.789034][ T5829] ocfs2_init_xattr_set_ctxt+0x3a6/0x8e0 [ 67.795176][ T5829] ocfs2_xattr_set+0xf4e/0x1930 [ 67.800532][ T5829] __vfs_setxattr+0x468/0x4a0 [ 67.805717][ T5829] __vfs_setxattr_noperm+0x12e/0x660 [ 67.811511][ T5829] vfs_setxattr+0x221/0x430 [ 67.816518][ T5829] filename_setxattr+0x2af/0x430 [ 67.821958][ T5829] path_setxattrat+0x440/0x510 [ 67.827224][ T5829] __x64_sys_lsetxattr+0xbf/0xe0 [ 67.832657][ T5829] do_syscall_64+0xf3/0x230 [ 67.837661][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.844056][ T5829] [ 67.844056][ T5829] other info that might help us debug this: [ 67.844056][ T5829] [ 67.854272][ T5829] Chain exists of: [ 67.854272][ T5829] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 67.854272][ T5829] [ 67.869987][ T5829] Possible unsafe locking scenario: [ 67.869987][ T5829] [ 67.877416][ T5829] CPU0 CPU1 [ 67.882759][ T5829] ---- ---- [ 67.888103][ T5829] lock(&oi->ip_xattr_sem); [ 67.892671][ T5829] lock(jbd2_handle); [ 67.899237][ T5829] lock(&oi->ip_xattr_sem); [ 67.906327][ T5829] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 67.913599][ T5829] [ 67.913599][ T5829] *** DEADLOCK *** [ 67.913599][ T5829] [ 67.921741][ T5829] 3 locks held by syz-executor185/5829: [ 67.927271][ T5829] #0: ffff888034fda420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 67.936403][ T5829] #1: ffff8880775f09c0 (&sb->s_type->i_mutex_key#15){+.+.}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 67.946832][ T5829] #2: ffff8880775f06f8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 67.956729][ T5829] [ 67.956729][ T5829] stack backtrace: [ 67.962628][ T5829] CPU: 0 UID: 0 PID: 5829 Comm: syz-executor185 Not tainted 6.13.0-rc6-next-20250107-syzkaller #0 [ 67.962639][ T5829] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 67.962647][ T5829] Call Trace: [ 67.962653][ T5829] [ 67.962659][ T5829] dump_stack_lvl+0x241/0x360 [ 67.962671][ T5829] ? __pfx_dump_stack_lvl+0x10/0x10 [ 67.962679][ T5829] ? __pfx__printk+0x10/0x10 [ 67.962694][ T5829] print_circular_bug+0x13a/0x1b0 [ 67.962704][ T5829] check_noncircular+0x36a/0x4a0 [ 67.962719][ T5829] ? __pfx_check_noncircular+0x10/0x10 [ 67.962731][ T5829] ? lockdep_lock+0x123/0x2b0 [ 67.962744][ T5829] validate_chain+0x18ef/0x5920 [ 67.962756][ T5829] ? __pfx_validate_chain+0x10/0x10 [ 67.962773][ T5829] ? __pfx_validate_chain+0x10/0x10 [ 67.962787][ T5829] ? mark_lock+0x9a/0x360 [ 67.962800][ T5829] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 67.962813][ T5829] ? __pfx_lock_release+0x10/0x10 [ 67.962824][ T5829] ? mark_lock+0x9a/0x360 [ 67.962836][ T5829] __lock_acquire+0x1397/0x2100 [ 67.962850][ T5829] lock_acquire+0x1ed/0x550 [ 67.962860][ T5829] ? ocfs2_reserve_suballoc_bits+0x192/0x4e70 [ 67.962875][ T5829] ? __pfx_lock_acquire+0x10/0x10 [ 67.962886][ T5829] ? __pfx___might_resched+0x10/0x10 [ 67.962896][ T5829] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 67.962907][ T5829] ? __lock_acquire+0x1397/0x2100 [ 67.962919][ T5829] down_write+0x99/0x220 [ 67.962930][ T5829] ? ocfs2_reserve_suballoc_bits+0x192/0x4e70 [ 67.962942][ T5829] ? __pfx_down_write+0x10/0x10 [ 67.962954][ T5829] ocfs2_reserve_suballoc_bits+0x192/0x4e70 [ 67.962967][ T5829] ? mark_lock+0x9a/0x360 [ 67.962979][ T5829] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 67.962990][ T5829] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 67.963002][ T5829] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 67.963015][ T5829] ? lockdep_hardirqs_on+0x99/0x150 [ 67.963024][ T5829] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 67.963036][ T5829] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 67.963049][ T5829] ? __pfx_ocfs2_reserve_suballoc_bits+0x10/0x10 [ 67.963063][ T5829] ? stack_depot_save_flags+0x7b4/0x940 [ 67.963073][ T5829] ? kasan_save_track+0x51/0x80 [ 67.963084][ T5829] ? kasan_save_track+0x3f/0x80 [ 67.963094][ T5829] ? __kasan_kmalloc+0x98/0xb0 [ 67.963105][ T5829] ? __kmalloc_cache_noprof+0x243/0x390 [ 67.963114][ T5829] ? ocfs2_reserve_new_metadata_blocks+0x117/0x9c0 [ 67.963132][ T5829] ? ocfs2_init_xattr_set_ctxt+0x3a6/0x8e0 [ 67.963146][ T5829] ? ocfs2_xattr_set+0xf4e/0x1930 [ 67.963159][ T5829] ? __vfs_setxattr+0x468/0x4a0 [ 67.963177][ T5829] ? __vfs_setxattr_noperm+0x12e/0x660 [ 67.963195][ T5829] ? vfs_setxattr+0x221/0x430 [ 67.963212][ T5829] ? filename_setxattr+0x2af/0x430 [ 67.963224][ T5829] ? path_setxattrat+0x440/0x510 [ 67.963239][ T5829] ? __x64_sys_lsetxattr+0xbf/0xe0 [ 67.963251][ T5829] ? do_syscall_64+0xf3/0x230 [ 67.963261][ T5829] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.963281][ T5829] ? __kasan_kmalloc+0x98/0xb0 [ 67.963292][ T5829] ? __kmalloc_cache_noprof+0x243/0x390 [ 67.963301][ T5829] ? ocfs2_reserve_new_metadata_blocks+0x117/0x9c0 [ 67.963314][ T5829] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 67.963343][ T5829] ? __pfx_ocfs2_reserve_new_metadata_blocks+0x10/0x10 [ 67.963356][ T5829] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 67.963368][ T5829] ? ocfs2_xattr_set+0xf00/0x1930 [ 67.963377][ T5829] ocfs2_init_xattr_set_ctxt+0x3a6/0x8e0 [ 67.963388][ T5829] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 67.963398][ T5829] ? up_write+0x1a9/0x590 [ 67.963406][ T5829] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 67.963415][ T5829] ? __pfx_up_write+0x10/0x10 [ 67.963424][ T5829] ? __kmalloc_cache_noprof+0x243/0x390 [ 67.963432][ T5829] ? ocfs2_xattr_set+0x4d5/0x1930 [ 67.963441][ T5829] ocfs2_xattr_set+0xf4e/0x1930 [ 67.963453][ T5829] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 67.963465][ T5829] ? __pfx_validate_chain+0x10/0x10 [ 67.963478][ T5829] ? mark_lock+0x9a/0x360 [ 67.963493][ T5829] ? aa_get_newest_label+0xff/0x6f0 [ 67.963505][ T5829] ? posix_xattr_acl+0xa9/0xd0 [ 67.963517][ T5829] ? evm_protect_xattr+0x4be/0xb30 [ 67.963527][ T5829] ? rcu_is_watching+0x15/0xb0 [ 67.963536][ T5829] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 67.963545][ T5829] __vfs_setxattr+0x468/0x4a0 [ 67.963560][ T5829] __vfs_setxattr_noperm+0x12e/0x660 [ 67.963574][ T5829] vfs_setxattr+0x221/0x430 [ 67.963588][ T5829] ? __pfx_vfs_setxattr+0x10/0x10 [ 67.963602][ T5829] filename_setxattr+0x2af/0x430 [ 67.963611][ T5829] ? __phys_addr_symbol+0x2f/0x70 [ 67.963625][ T5829] ? __pfx_filename_setxattr+0x10/0x10 [ 67.963634][ T5829] ? getname_flags+0x1e3/0x540 [ 67.963643][ T5829] path_setxattrat+0x440/0x510 [ 67.963654][ T5829] ? __pfx_path_setxattrat+0x10/0x10 [ 67.963668][ T5829] ? _raw_spin_unlock_irq+0x2e/0x50 [ 67.963680][ T5829] ? ptrace_notify+0x279/0x380 [ 67.963690][ T5829] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 67.963702][ T5829] __x64_sys_lsetxattr+0xbf/0xe0 [ 67.963711][ T5829] do_syscall_64+0xf3/0x230 [ 67.963721][ T5829] ? clear_bhb_loop+0x35/0x90 [ 67.963733][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.963749][ T5829] RIP: 0033:0x7fe942fed679 [ 67.963761][ T5829] 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 [ 67.963769][ T5829] RSP: 002b:00007ffe11478c38 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd [ 67.963779][ T5829] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fe942fed679 [ 67.963786][ T5829] RDX: 0000000020000200 RSI: 00000000200000c0 RDI: 0000000020000100 [ 67.963791][ T5829] RBP: 00007fe943064610 R08: 0000000000000000 R09: 0000000000000000 [ 67.963797][ T5829] R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000001 lsetxattr("./file1", "trusted.overlay.upper", "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\x9c\xec\xdd\xcf\x4f\x1c\xd7\x1d\x00\xf0\x37\x03\xae\xc1\xb5\x5d\x70\x7d\x70\xa5\x4a\x5d\xa9\x96\x5a\xb5\x15\x02\x9f\xda\x62\xa9\x18\x63\x63"..., 65079, 0) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 67.963802][ T