Warning: Permanently added '10.128.0.242' (ED25519) to the list of known hosts. executing program [ 60.262019][ T4241] loop0: detected capacity change from 0 to 32768 [ 60.271100][ T4241] ======================================================= [ 60.271100][ T4241] WARNING: The mand mount option has been deprecated and [ 60.271100][ T4241] and is ignored by this kernel. Remove the mand [ 60.271100][ T4241] option from the mount to silence this warning. [ 60.271100][ T4241] ======================================================= [ 60.315499][ T4241] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 60.328929][ T4241] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 60.346807][ T4241] [ 60.349183][ T4241] ====================================================== [ 60.356198][ T4241] WARNING: possible circular locking dependency detected [ 60.363194][ T4241] 6.1.129-syzkaller #0 Not tainted [ 60.368283][ T4241] ------------------------------------------------------ [ 60.375278][ T4241] syz-executor377/4241 is trying to acquire lock: [ 60.381679][ T4241] ffff8880752f42c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 60.394924][ T4241] [ 60.394924][ T4241] but task is already holding lock: [ 60.402294][ T4241] ffff888072b81538 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 60.411884][ T4241] [ 60.411884][ T4241] which lock already depends on the new lock. [ 60.411884][ T4241] [ 60.422281][ T4241] [ 60.422281][ T4241] the existing dependency chain (in reverse order) is: [ 60.431274][ T4241] [ 60.431274][ T4241] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 60.439466][ T4241] lock_acquire+0x1f8/0x5a0 [ 60.444485][ T4241] down_read+0xad/0xa30 [ 60.449157][ T4241] ocfs2_init_acl+0x398/0x930 [ 60.454350][ T4241] ocfs2_mknod+0x1f75/0x2e20 [ 60.459454][ T4241] ocfs2_create+0x1c0/0x4e0 [ 60.464510][ T4241] path_openat+0x12f1/0x2e60 [ 60.469628][ T4241] do_filp_open+0x230/0x480 [ 60.474662][ T4241] do_sys_openat2+0x13b/0x4f0 [ 60.479855][ T4241] __x64_sys_creat+0x11f/0x160 [ 60.485123][ T4241] do_syscall_64+0x3b/0xb0 [ 60.490592][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 60.497195][ T4241] [ 60.497195][ T4241] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 60.504476][ T4241] lock_acquire+0x1f8/0x5a0 [ 60.509520][ T4241] start_this_handle+0x1f71/0x21b0 [ 60.515161][ T4241] jbd2__journal_start+0x2d1/0x5c0 [ 60.520792][ T4241] jbd2_journal_start+0x25/0x30 [ 60.526173][ T4241] ocfs2_start_trans+0x3c0/0x6f0 [ 60.531652][ T4241] ocfs2_mknod+0x1638/0x2e20 [ 60.536975][ T4241] ocfs2_create+0x1c0/0x4e0 [ 60.542280][ T4241] path_openat+0x12f1/0x2e60 [ 60.547382][ T4241] do_filp_open+0x230/0x480 [ 60.552404][ T4241] do_sys_openat2+0x13b/0x4f0 [ 60.557598][ T4241] __x64_sys_creat+0x11f/0x160 [ 60.562948][ T4241] do_syscall_64+0x3b/0xb0 [ 60.567905][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 60.574304][ T4241] [ 60.574304][ T4241] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 60.582823][ T4241] lock_acquire+0x1f8/0x5a0 [ 60.587834][ T4241] down_read+0xad/0xa30 [ 60.592510][ T4241] ocfs2_start_trans+0x3b5/0x6f0 [ 60.598303][ T4241] ocfs2_mknod+0x1638/0x2e20 [ 60.603432][ T4241] ocfs2_create+0x1c0/0x4e0 [ 60.608455][ T4241] path_openat+0x12f1/0x2e60 [ 60.613561][ T4241] do_filp_open+0x230/0x480 [ 60.618741][ T4241] do_sys_openat2+0x13b/0x4f0 [ 60.623938][ T4241] __x64_sys_creat+0x11f/0x160 [ 60.629206][ T4241] do_syscall_64+0x3b/0xb0 [ 60.634146][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 60.640545][ T4241] [ 60.640545][ T4241] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 60.648007][ T4241] lock_acquire+0x1f8/0x5a0 [ 60.653032][ T4241] ocfs2_start_trans+0x2b0/0x6f0 [ 60.658479][ T4241] ocfs2_mknod+0x1638/0x2e20 [ 60.663581][ T4241] ocfs2_create+0x1c0/0x4e0 [ 60.668674][ T4241] path_openat+0x12f1/0x2e60 [ 60.673861][ T4241] do_filp_open+0x230/0x480 [ 60.678875][ T4241] do_sys_openat2+0x13b/0x4f0 [ 60.684054][ T4241] __x64_sys_creat+0x11f/0x160 [ 60.689416][ T4241] do_syscall_64+0x3b/0xb0 [ 60.694339][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 60.700740][ T4241] [ 60.700740][ T4241] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 60.711239][ T4241] lock_acquire+0x1f8/0x5a0 [ 60.716292][ T4241] down_write+0x36/0x60 [ 60.721059][ T4241] ocfs2_reserve_local_alloc_bits+0x127/0x2a10 [ 60.727745][ T4241] ocfs2_reserve_clusters_with_limit+0x1b4/0xb50 [ 60.734687][ T4241] ocfs2_mknod+0x15b5/0x2e20 [ 60.739784][ T4241] ocfs2_create+0x1c0/0x4e0 [ 60.744811][ T4241] path_openat+0x12f1/0x2e60 [ 60.749908][ T4241] do_filp_open+0x230/0x480 [ 60.755003][ T4241] do_sys_openat2+0x13b/0x4f0 [ 60.760205][ T4241] __x64_sys_creat+0x11f/0x160 [ 60.765473][ T4241] do_syscall_64+0x3b/0xb0 [ 60.770401][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 60.776889][ T4241] [ 60.776889][ T4241] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 60.787385][ T4241] validate_chain+0x1661/0x5950 [ 60.792831][ T4241] __lock_acquire+0x125b/0x1f80 [ 60.798185][ T4241] lock_acquire+0x1f8/0x5a0 [ 60.803204][ T4241] down_write+0x36/0x60 [ 60.807884][ T4241] ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 60.814465][ T4241] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 60.821330][ T4241] ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 60.827467][ T4241] ocfs2_xattr_set+0xf46/0x1930 [ 60.832823][ T4241] __vfs_setxattr+0x3e7/0x420 [ 60.838091][ T4241] __vfs_setxattr_noperm+0x12a/0x5e0 [ 60.843908][ T4241] vfs_setxattr+0x21d/0x420 [ 60.849005][ T4241] setxattr+0x250/0x2b0 [ 60.853665][ T4241] path_setxattr+0x1bc/0x2a0 [ 60.858775][ T4241] __x64_sys_setxattr+0xb7/0xd0 [ 60.864130][ T4241] do_syscall_64+0x3b/0xb0 [ 60.869064][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 60.875470][ T4241] [ 60.875470][ T4241] other info that might help us debug this: [ 60.875470][ T4241] [ 60.885780][ T4241] Chain exists of: [ 60.885780][ T4241] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 60.885780][ T4241] [ 60.901849][ T4241] Possible unsafe locking scenario: [ 60.901849][ T4241] [ 60.909310][ T4241] CPU0 CPU1 [ 60.914655][ T4241] ---- ---- [ 60.920095][ T4241] lock(&oi->ip_xattr_sem); [ 60.924666][ T4241] lock(jbd2_handle); [ 60.931245][ T4241] lock(&oi->ip_xattr_sem); [ 60.938467][ T4241] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 60.945757][ T4241] [ 60.945757][ T4241] *** DEADLOCK *** [ 60.945757][ T4241] [ 60.953885][ T4241] 3 locks held by syz-executor377/4241: [ 60.959636][ T4241] #0: ffff888074a1a460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 60.968767][ T4241] #1: ffff888072b81808 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x1dd/0x420 [ 60.979192][ T4241] #2: ffff888072b81538 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 60.989086][ T4241] [ 60.989086][ T4241] stack backtrace: [ 60.994972][ T4241] CPU: 0 PID: 4241 Comm: syz-executor377 Not tainted 6.1.129-syzkaller #0 [ 61.003480][ T4241] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 61.013625][ T4241] Call Trace: [ 61.016891][ T4241] [ 61.019826][ T4241] dump_stack_lvl+0x1e3/0x2cb [ 61.024670][ T4241] ? nf_tcp_handle_invalid+0x647/0x647 [ 61.030136][ T4241] ? print_circular_bug+0x12b/0x1a0 [ 61.035451][ T4241] check_noncircular+0x2fa/0x3b0 [ 61.040471][ T4241] ? add_chain_block+0x850/0x850 [ 61.045391][ T4241] ? lockdep_lock+0x11f/0x2a0 [ 61.050053][ T4241] ? unwind_get_return_address+0x49/0x80 [ 61.055774][ T4241] ? mark_lock+0x9a/0x340 [ 61.060099][ T4241] ? _find_first_zero_bit+0xd0/0x100 [ 61.065566][ T4241] validate_chain+0x1661/0x5950 [ 61.070432][ T4241] ? reacquire_held_locks+0x660/0x660 [ 61.075793][ T4241] ? ocfs2_get_system_file_inode+0x1ef/0x840 [ 61.081760][ T4241] ? __lock_acquire+0x1f80/0x1f80 [ 61.086791][ T4241] ? mark_lock+0x9a/0x340 [ 61.091132][ T4241] __lock_acquire+0x125b/0x1f80 [ 61.095995][ T4241] lock_acquire+0x1f8/0x5a0 [ 61.100516][ T4241] ? ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 61.107076][ T4241] ? read_lock_is_recursive+0x10/0x10 [ 61.112461][ T4241] ? __might_sleep+0xb0/0xb0 [ 61.117075][ T4241] ? __lock_acquire+0x125b/0x1f80 [ 61.122096][ T4241] down_write+0x36/0x60 [ 61.126237][ T4241] ? ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 61.132289][ T4241] ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 61.138258][ T4241] ? mark_lock+0x9a/0x340 [ 61.142594][ T4241] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 61.148573][ T4241] ? do_raw_spin_unlock+0x137/0x8a0 [ 61.153791][ T4241] ? ocfs2_block_group_search+0x530/0x530 [ 61.159497][ T4241] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 61.165373][ T4241] ? _raw_spin_unlock+0x40/0x40 [ 61.170225][ T4241] ? stack_trace_save+0x113/0x1c0 [ 61.175248][ T4241] ? stack_trace_snprint+0xe0/0xe0 [ 61.180374][ T4241] ? __stack_depot_save+0x3f5/0x470 [ 61.185576][ T4241] ? kasan_set_track+0x60/0x70 [ 61.190322][ T4241] ? kasan_set_track+0x4b/0x70 [ 61.195077][ T4241] ? __kasan_kmalloc+0x97/0xb0 [ 61.199836][ T4241] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 61.206330][ T4241] ? ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 61.212217][ T4241] ? ocfs2_xattr_set+0xf46/0x1930 [ 61.217225][ T4241] ? __vfs_setxattr+0x3e7/0x420 [ 61.222077][ T4241] ? __vfs_setxattr_noperm+0x12a/0x5e0 [ 61.227520][ T4241] ? vfs_setxattr+0x21d/0x420 [ 61.232177][ T4241] ? setxattr+0x250/0x2b0 [ 61.236488][ T4241] ? path_setxattr+0x1bc/0x2a0 [ 61.241253][ T4241] ? __x64_sys_setxattr+0xb7/0xd0 [ 61.246258][ T4241] ? do_syscall_64+0x3b/0xb0 [ 61.250833][ T4241] ? entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 61.256894][ T4241] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 61.263386][ T4241] ? ocfs2_init_steal_slots+0x150/0x150 [ 61.268944][ T4241] ? ocfs2_xattr_block_set+0x3610/0x3610 [ 61.274598][ T4241] ? ocfs2_xattr_set+0xef8/0x1930 [ 61.279698][ T4241] ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 61.285430][ T4241] ? ocfs2_prepare_refcount_xattr+0x1220/0x1220 [ 61.291742][ T4241] ? up_write+0x19d/0x580 [ 61.296073][ T4241] ? ocfs2_remove_btree_range+0x18a0/0x18a0 [ 61.301956][ T4241] ? __up_read+0x690/0x690 [ 61.306535][ T4241] ocfs2_xattr_set+0xf46/0x1930 [ 61.311378][ T4241] ? __ocfs2_xattr_set_handle+0x1060/0x1060 [ 61.317260][ T4241] ? reacquire_held_locks+0x660/0x660 [ 61.322641][ T4241] ? lockdep_hardirqs_on+0x94/0x130 [ 61.327825][ T4241] ? aa_get_newest_label+0xfb/0x6e0 [ 61.333004][ T4241] ? end_current_label_crit_section+0x170/0x170 [ 61.339233][ T4241] ? evm_protected_xattr_common+0x181/0x1a0 [ 61.345200][ T4241] ? evm_protect_xattr+0x8b1/0xb10 [ 61.350295][ T4241] ? ocfs2_xattr_security_get+0x40/0x40 [ 61.355844][ T4241] __vfs_setxattr+0x3e7/0x420 [ 61.360508][ T4241] __vfs_setxattr_noperm+0x12a/0x5e0 [ 61.365779][ T4241] vfs_setxattr+0x21d/0x420 [ 61.370265][ T4241] ? __lock_acquire+0x1f80/0x1f80 [ 61.375363][ T4241] ? xattr_permission+0x4f0/0x4f0 [ 61.380368][ T4241] ? __might_fault+0xbd/0x110 [ 61.385031][ T4241] ? _copy_from_user+0x109/0x170 [ 61.389955][ T4241] setxattr+0x250/0x2b0 [ 61.394098][ T4241] ? path_setxattr+0x2a0/0x2a0 [ 61.398848][ T4241] ? __mnt_want_write+0x222/0x2a0 [ 61.403861][ T4241] path_setxattr+0x1bc/0x2a0 [ 61.408438][ T4241] ? simple_xattr_list_add+0xf0/0xf0 [ 61.413710][ T4241] ? syscall_enter_from_user_mode+0x2e/0x230 [ 61.419676][ T4241] __x64_sys_setxattr+0xb7/0xd0 [ 61.424512][ T4241] do_syscall_64+0x3b/0xb0 [ 61.428920][ T4241] ? clear_bhb_loop+0x45/0xa0 [ 61.434100][ T4241] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 61.439977][ T4241] RIP: 0033:0x7f3830c726f9 [ 61.444387][ T4241] 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 [ 61.463990][ T4241] RSP: 002b:00007ffd5561b658 EFLAGS: 00000246 ORIG_RAX: