Warning: Permanently added '10.128.0.203' (ED25519) to the list of known hosts. executing program syzkaller login: [ 79.792172][ T4243] loop0: detected capacity change from 0 to 32768 [ 79.801971][ T4243] ======================================================= [ 79.801971][ T4243] WARNING: The mand mount option has been deprecated and [ 79.801971][ T4243] and is ignored by this kernel. Remove the mand [ 79.801971][ T4243] option from the mount to silence this warning. [ 79.801971][ T4243] ======================================================= [ 79.851988][ T4243] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 79.865670][ T4243] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 79.892640][ T4243] [ 79.895016][ T4243] ====================================================== [ 79.902037][ T4243] WARNING: possible circular locking dependency detected [ 79.909042][ T4243] 6.1.117-syzkaller #0 Not tainted [ 79.914138][ T4243] ------------------------------------------------------ [ 79.921139][ T4243] syz-executor142/4243 is trying to acquire lock: [ 79.927616][ T4243] ffff8880713fdf48 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 79.940971][ T4243] [ 79.940971][ T4243] but task is already holding lock: [ 79.948331][ T4243] ffff88806dc031b8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 79.957827][ T4243] [ 79.957827][ T4243] which lock already depends on the new lock. [ 79.957827][ T4243] [ 79.968223][ T4243] [ 79.968223][ T4243] the existing dependency chain (in reverse order) is: [ 79.977236][ T4243] [ 79.977236][ T4243] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 79.986031][ T4243] lock_acquire+0x1f8/0x5a0 [ 79.991058][ T4243] down_read+0xad/0xa30 [ 79.995740][ T4243] ocfs2_init_acl+0x398/0x930 [ 80.000944][ T4243] ocfs2_mknod+0x1f75/0x2e20 [ 80.006056][ T4243] ocfs2_create+0x1c0/0x4e0 [ 80.011079][ T4243] path_openat+0x12f1/0x2e60 [ 80.016187][ T4243] do_filp_open+0x230/0x480 [ 80.021208][ T4243] do_sys_openat2+0x13b/0x4f0 [ 80.026405][ T4243] __x64_sys_creat+0x11f/0x160 [ 80.031693][ T4243] do_syscall_64+0x3b/0xb0 [ 80.036632][ T4243] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.043063][ T4243] [ 80.043063][ T4243] -> #4 (jbd2_handle){++++}-{0:0}: [ 80.050364][ T4243] lock_acquire+0x1f8/0x5a0 [ 80.055400][ T4243] start_this_handle+0x1f71/0x21b0 [ 80.061032][ T4243] jbd2__journal_start+0x2d1/0x5c0 [ 80.066685][ T4243] jbd2_journal_start+0x25/0x30 [ 80.072065][ T4243] ocfs2_start_trans+0x3c0/0x6f0 [ 80.077526][ T4243] ocfs2_mknod+0x1638/0x2e20 [ 80.082628][ T4243] ocfs2_create+0x1c0/0x4e0 [ 80.087644][ T4243] path_openat+0x12f1/0x2e60 [ 80.092752][ T4243] do_filp_open+0x230/0x480 [ 80.097772][ T4243] do_sys_openat2+0x13b/0x4f0 [ 80.102969][ T4243] __x64_sys_creat+0x11f/0x160 [ 80.108255][ T4243] do_syscall_64+0x3b/0xb0 [ 80.113184][ T4243] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.119640][ T4243] [ 80.119640][ T4243] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 80.128158][ T4243] lock_acquire+0x1f8/0x5a0 [ 80.133189][ T4243] down_read+0xad/0xa30 [ 80.137878][ T4243] ocfs2_start_trans+0x3b5/0x6f0 [ 80.143341][ T4243] ocfs2_mknod+0x1638/0x2e20 [ 80.148460][ T4243] ocfs2_create+0x1c0/0x4e0 [ 80.153478][ T4243] path_openat+0x12f1/0x2e60 [ 80.158586][ T4243] do_filp_open+0x230/0x480 [ 80.163636][ T4243] do_sys_openat2+0x13b/0x4f0 [ 80.168831][ T4243] __x64_sys_creat+0x11f/0x160 [ 80.174113][ T4243] do_syscall_64+0x3b/0xb0 [ 80.179039][ T4243] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.185453][ T4243] [ 80.185453][ T4243] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 80.193196][ T4243] lock_acquire+0x1f8/0x5a0 [ 80.198253][ T4243] ocfs2_start_trans+0x2b0/0x6f0 [ 80.203715][ T4243] ocfs2_mknod+0x1638/0x2e20 [ 80.208816][ T4243] ocfs2_create+0x1c0/0x4e0 [ 80.213831][ T4243] path_openat+0x12f1/0x2e60 [ 80.218940][ T4243] do_filp_open+0x230/0x480 [ 80.223979][ T4243] do_sys_openat2+0x13b/0x4f0 [ 80.229188][ T4243] __x64_sys_creat+0x11f/0x160 [ 80.234472][ T4243] do_syscall_64+0x3b/0xb0 [ 80.239398][ T4243] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.245808][ T4243] [ 80.245808][ T4243] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 80.256319][ T4243] lock_acquire+0x1f8/0x5a0 [ 80.261340][ T4243] down_write+0x36/0x60 [ 80.266022][ T4243] ocfs2_reserve_local_alloc_bits+0x127/0x29d0 [ 80.272694][ T4243] ocfs2_reserve_clusters_with_limit+0x1b4/0xb50 [ 80.279539][ T4243] ocfs2_mknod+0x15b5/0x2e20 [ 80.284637][ T4243] ocfs2_create+0x1c0/0x4e0 [ 80.289647][ T4243] path_openat+0x12f1/0x2e60 [ 80.294771][ T4243] do_filp_open+0x230/0x480 [ 80.299788][ T4243] do_sys_openat2+0x13b/0x4f0 [ 80.304982][ T4243] __x64_sys_creat+0x11f/0x160 [ 80.310266][ T4243] do_syscall_64+0x3b/0xb0 [ 80.315190][ T4243] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.321616][ T4243] [ 80.321616][ T4243] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 80.332123][ T4243] validate_chain+0x1661/0x5950 [ 80.337492][ T4243] __lock_acquire+0x125b/0x1f80 [ 80.342860][ T4243] lock_acquire+0x1f8/0x5a0 [ 80.347879][ T4243] down_write+0x36/0x60 [ 80.352549][ T4243] ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 80.358974][ T4243] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 80.365819][ T4243] ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 80.371961][ T4243] ocfs2_xattr_set+0xf46/0x1930 [ 80.377320][ T4243] __vfs_setxattr+0x3e7/0x420 [ 80.382504][ T4243] __vfs_setxattr_noperm+0x12a/0x5e0 [ 80.388310][ T4243] vfs_setxattr+0x21d/0x420 [ 80.393328][ T4243] setxattr+0x250/0x2b0 [ 80.398000][ T4243] path_setxattr+0x1bc/0x2a0 [ 80.403103][ T4243] __x64_sys_lsetxattr+0xb4/0xd0 [ 80.408557][ T4243] do_syscall_64+0x3b/0xb0 [ 80.413485][ T4243] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.419913][ T4243] [ 80.419913][ T4243] other info that might help us debug this: [ 80.419913][ T4243] [ 80.430153][ T4243] Chain exists of: [ 80.430153][ T4243] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 80.430153][ T4243] [ 80.445896][ T4243] Possible unsafe locking scenario: [ 80.445896][ T4243] [ 80.453341][ T4243] CPU0 CPU1 [ 80.458699][ T4243] ---- ---- [ 80.464075][ T4243] lock(&oi->ip_xattr_sem); [ 80.468662][ T4243] lock(jbd2_handle); [ 80.475246][ T4243] lock(&oi->ip_xattr_sem); [ 80.482351][ T4243] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 80.489639][ T4243] [ 80.489639][ T4243] *** DEADLOCK *** [ 80.489639][ T4243] [ 80.497773][ T4243] 3 locks held by syz-executor142/4243: [ 80.503314][ T4243] #0: ffff88803103e460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 80.512466][ T4243] #1: ffff88806dc03488 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x1dd/0x420 [ 80.522909][ T4243] #2: ffff88806dc031b8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 80.532828][ T4243] [ 80.532828][ T4243] stack backtrace: [ 80.538720][ T4243] CPU: 0 PID: 4243 Comm: syz-executor142 Not tainted 6.1.117-syzkaller #0 [ 80.547214][ T4243] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 80.557267][ T4243] Call Trace: [ 80.560547][ T4243] [ 80.563476][ T4243] dump_stack_lvl+0x1e3/0x2cb [ 80.568151][ T4243] ? nf_tcp_handle_invalid+0x642/0x642 [ 80.573610][ T4243] ? print_circular_bug+0x12b/0x1a0 [ 80.578804][ T4243] check_noncircular+0x2fa/0x3b0 [ 80.583739][ T4243] ? add_chain_block+0x850/0x850 [ 80.588669][ T4243] ? lockdep_lock+0x11f/0x2a0 [ 80.593357][ T4243] ? unwind_get_return_address+0x49/0x80 [ 80.599008][ T4243] ? mark_lock+0x9a/0x340 [ 80.603344][ T4243] ? _find_first_zero_bit+0xd0/0x100 [ 80.608634][ T4243] validate_chain+0x1661/0x5950 [ 80.613494][ T4243] ? reacquire_held_locks+0x660/0x660 [ 80.618865][ T4243] ? ocfs2_get_system_file_inode+0x1e0/0x7b0 [ 80.624867][ T4243] ? __lock_acquire+0x1f80/0x1f80 [ 80.629905][ T4243] ? mark_lock+0x9a/0x340 [ 80.634329][ T4243] __lock_acquire+0x125b/0x1f80 [ 80.639207][ T4243] lock_acquire+0x1f8/0x5a0 [ 80.643737][ T4243] ? ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 80.649815][ T4243] ? read_lock_is_recursive+0x10/0x10 [ 80.655196][ T4243] ? __might_sleep+0xb0/0xb0 [ 80.659786][ T4243] ? __lock_acquire+0x125b/0x1f80 [ 80.664828][ T4243] down_write+0x36/0x60 [ 80.668985][ T4243] ? ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 80.675075][ T4243] ocfs2_reserve_suballoc_bits+0x182/0x5190 [ 80.680993][ T4243] ? mark_lock+0x9a/0x340 [ 80.685332][ T4243] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 80.691319][ T4243] ? do_raw_spin_unlock+0x137/0x8a0 [ 80.696522][ T4243] ? ocfs2_block_group_search+0x530/0x530 [ 80.702245][ T4243] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 80.708146][ T4243] ? _raw_spin_unlock+0x40/0x40 [ 80.713001][ T4243] ? stack_trace_save+0x113/0x1c0 [ 80.718033][ T4243] ? stack_trace_snprint+0xe0/0xe0 [ 80.723168][ T4243] ? __stack_depot_save+0x3f5/0x470 [ 80.728371][ T4243] ? kasan_set_track+0x60/0x70 [ 80.733140][ T4243] ? kasan_set_track+0x4b/0x70 [ 80.737913][ T4243] ? __kasan_kmalloc+0x97/0xb0 [ 80.742671][ T4243] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 80.749200][ T4243] ? ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 80.755007][ T4243] ? ocfs2_xattr_set+0xf46/0x1930 [ 80.760028][ T4243] ? __vfs_setxattr+0x3e7/0x420 [ 80.764877][ T4243] ? __vfs_setxattr_noperm+0x12a/0x5e0 [ 80.770351][ T4243] ? vfs_setxattr+0x21d/0x420 [ 80.775035][ T4243] ? setxattr+0x250/0x2b0 [ 80.779361][ T4243] ? path_setxattr+0x1bc/0x2a0 [ 80.784120][ T4243] ? __x64_sys_lsetxattr+0xb4/0xd0 [ 80.789244][ T4243] ? do_syscall_64+0x3b/0xb0 [ 80.793843][ T4243] ? entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.799931][ T4243] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 80.806269][ T4243] ? ocfs2_init_steal_slots+0x150/0x150 [ 80.811825][ T4243] ? ocfs2_xattr_block_set+0x3620/0x3620 [ 80.817475][ T4243] ? ocfs2_xattr_set+0xef8/0x1930 [ 80.822499][ T4243] ocfs2_init_xattr_set_ctxt+0x3ab/0x950 [ 80.828134][ T4243] ? ocfs2_prepare_refcount_xattr+0x1220/0x1220 [ 80.834388][ T4243] ? up_write+0x19d/0x580 [ 80.838722][ T4243] ? ocfs2_remove_btree_range+0x18a0/0x18a0 [ 80.844615][ T4243] ? __up_read+0x690/0x690 [ 80.849039][ T4243] ocfs2_xattr_set+0xf46/0x1930 [ 80.853890][ T4243] ? finish_task_switch+0x1ca/0x810 [ 80.859099][ T4243] ? __ocfs2_xattr_set_handle+0x1060/0x1060 [ 80.864996][ T4243] ? print_irqtrace_events+0x210/0x210 [ 80.870463][ T4243] ? mark_lock+0x9a/0x340 [ 80.874808][ T4243] ? aa_get_newest_label+0xfb/0x6e0 [ 80.880011][ T4243] ? asm_sysvec_reschedule_ipi+0x16/0x20 [ 80.885676][ T4243] ? posix_xattr_acl+0xa5/0xd0 [ 80.890525][ T4243] ? evm_protect_xattr+0x366/0xb10 [ 80.895653][ T4243] ? ocfs2_xattr_trusted_get+0x40/0x40 [ 80.901109][ T4243] __vfs_setxattr+0x3e7/0x420 [ 80.906052][ T4243] __vfs_setxattr_noperm+0x12a/0x5e0 [ 80.911597][ T4243] vfs_setxattr+0x21d/0x420 [ 80.916104][ T4243] ? xattr_permission+0x4f0/0x4f0 [ 80.921143][ T4243] ? __might_fault+0xbd/0x110 [ 80.925830][ T4243] setxattr+0x250/0x2b0 [ 80.929992][ T4243] ? path_setxattr+0x2a0/0x2a0 [ 80.934772][ T4243] ? __mnt_want_write+0x222/0x2a0 [ 80.939805][ T4243] path_setxattr+0x1bc/0x2a0 [ 80.944405][ T4243] ? simple_xattr_list_add+0xf0/0xf0 [ 80.949719][ T4243] ? syscall_enter_from_user_mode+0x2e/0x230 [ 80.955707][ T4243] __x64_sys_lsetxattr+0xb4/0xd0 [ 80.960643][ T4243] do_syscall_64+0x3b/0xb0 [ 80.965054][ T4243] ? clear_bhb_loop+0x45/0xa0 [ 80.969723][ T4243] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 80.975616][ T4243] RIP: 0033:0x7fbc25c016f9 [ 80.980032][ T4243] 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 [ 80.999630][ T4243] RSP: 002b:00007fff16abca68 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd [ 81.008130][ T4243] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fbc25c016f9 [ 81.016094][ T4243] RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000020000180 [ 81.024057][ T4243] RBP: 00007fbc25c78610 R08: 0000000000000000 R09: 0000000000000000 [ 81.032019][ T4243] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 81.039982][ T4243] R13: 00007fff16abcc38 R14: 0000000000000001 R15: 0000000000000001