Warning: Permanently added '10.128.0.181' (ED25519) to the list of known hosts. executing program [ 42.313354][ T4291] loop0: detected capacity change from 0 to 32768 [ 42.316908][ T4291] ======================================================= [ 42.316908][ T4291] WARNING: The mand mount option has been deprecated and [ 42.316908][ T4291] and is ignored by this kernel. Remove the mand [ 42.316908][ T4291] option from the mount to silence this warning. [ 42.316908][ T4291] ======================================================= [ 42.337690][ T4291] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 42.345404][ T4291] [ 42.346053][ T4291] ====================================================== [ 42.347693][ T4291] WARNING: possible circular locking dependency detected [ 42.349562][ T4291] 6.1.134-syzkaller #0 Not tainted [ 42.350917][ T4291] ------------------------------------------------------ [ 42.352792][ T4291] syz-executor256/4291 is trying to acquire lock: [ 42.354487][ T4291] ffff0000e2346d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 42.358054][ T4291] [ 42.358054][ T4291] but task is already holding lock: [ 42.359990][ T4291] ffff0000e234bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 42.362521][ T4291] [ 42.362521][ T4291] which lock already depends on the new lock. [ 42.362521][ T4291] [ 42.365256][ T4291] [ 42.365256][ T4291] the existing dependency chain (in reverse order) is: [ 42.367637][ T4291] [ 42.367637][ T4291] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 42.369732][ T4291] down_read+0x64/0x308 [ 42.370994][ T4291] ocfs2_init_acl+0x2c8/0x764 [ 42.372352][ T4291] ocfs2_mknod+0x1574/0x2560 [ 42.373700][ T4291] ocfs2_create+0x1a8/0x560 [ 42.375034][ T4291] path_openat+0xeac/0x2548 [ 42.376354][ T4291] do_filp_open+0x1bc/0x3cc [ 42.377680][ T4291] do_sys_openat2+0x128/0x3e0 [ 42.379090][ T4291] __arm64_sys_openat+0x1f0/0x240 [ 42.380542][ T4291] invoke_syscall+0x98/0x2bc [ 42.381928][ T4291] el0_svc_common+0x138/0x258 [ 42.383292][ T4291] do_el0_svc+0x58/0x13c [ 42.384568][ T4291] el0_svc+0x58/0x168 [ 42.385793][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 42.387312][ T4291] el0t_64_sync+0x18c/0x190 [ 42.388654][ T4291] [ 42.388654][ T4291] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 42.390580][ T4291] start_this_handle+0x1140/0x13ac [ 42.392117][ T4291] jbd2__journal_start+0x298/0x544 [ 42.393594][ T4291] jbd2_journal_start+0x3c/0x4c [ 42.395030][ T4291] ocfs2_start_trans+0x3e8/0x73c [ 42.396482][ T4291] ocfs2_mknod+0xe64/0x2560 [ 42.397831][ T4291] ocfs2_create+0x1a8/0x560 [ 42.399192][ T4291] path_openat+0xeac/0x2548 [ 42.400532][ T4291] do_filp_open+0x1bc/0x3cc [ 42.401909][ T4291] do_sys_openat2+0x128/0x3e0 [ 42.403323][ T4291] __arm64_sys_openat+0x1f0/0x240 [ 42.404809][ T4291] invoke_syscall+0x98/0x2bc [ 42.406232][ T4291] el0_svc_common+0x138/0x258 [ 42.407652][ T4291] do_el0_svc+0x58/0x13c [ 42.408994][ T4291] el0_svc+0x58/0x168 [ 42.410205][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 42.411698][ T4291] el0t_64_sync+0x18c/0x190 [ 42.413040][ T4291] [ 42.413040][ T4291] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 42.415328][ T4291] down_read+0x64/0x308 [ 42.416587][ T4291] ocfs2_start_trans+0x3dc/0x73c [ 42.418064][ T4291] ocfs2_mknod+0xe64/0x2560 [ 42.419434][ T4291] ocfs2_create+0x1a8/0x560 [ 42.420767][ T4291] path_openat+0xeac/0x2548 [ 42.422112][ T4291] do_filp_open+0x1bc/0x3cc [ 42.423454][ T4291] do_sys_openat2+0x128/0x3e0 [ 42.424849][ T4291] __arm64_sys_openat+0x1f0/0x240 [ 42.426344][ T4291] invoke_syscall+0x98/0x2bc [ 42.427718][ T4291] el0_svc_common+0x138/0x258 [ 42.429210][ T4291] do_el0_svc+0x58/0x13c [ 42.430515][ T4291] el0_svc+0x58/0x168 [ 42.431733][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 42.433242][ T4291] el0t_64_sync+0x18c/0x190 [ 42.434620][ T4291] [ 42.434620][ T4291] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 42.436666][ T4291] ocfs2_start_trans+0x260/0x73c [ 42.438150][ T4291] ocfs2_mknod+0xe64/0x2560 [ 42.439539][ T4291] ocfs2_create+0x1a8/0x560 [ 42.440904][ T4291] path_openat+0xeac/0x2548 [ 42.442269][ T4291] do_filp_open+0x1bc/0x3cc [ 42.443608][ T4291] do_sys_openat2+0x128/0x3e0 [ 42.445020][ T4291] __arm64_sys_openat+0x1f0/0x240 [ 42.446541][ T4291] invoke_syscall+0x98/0x2bc [ 42.447951][ T4291] el0_svc_common+0x138/0x258 [ 42.449349][ T4291] do_el0_svc+0x58/0x13c [ 42.450636][ T4291] el0_svc+0x58/0x168 [ 42.451819][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 42.453313][ T4291] el0t_64_sync+0x18c/0x190 [ 42.454658][ T4291] [ 42.454658][ T4291] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 42.457514][ T4291] down_write+0x5c/0x88 [ 42.458766][ T4291] ocfs2_reserve_local_alloc_bits+0xfc/0x2610 [ 42.460568][ T4291] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 42.462421][ T4291] ocfs2_reserve_clusters+0x3c/0x50 [ 42.463999][ T4291] ocfs2_mknod+0xe04/0x2560 [ 42.465343][ T4291] ocfs2_create+0x1a8/0x560 [ 42.466698][ T4291] path_openat+0xeac/0x2548 [ 42.468030][ T4291] do_filp_open+0x1bc/0x3cc [ 42.469397][ T4291] do_sys_openat2+0x128/0x3e0 [ 42.470807][ T4291] __arm64_sys_openat+0x1f0/0x240 [ 42.472289][ T4291] invoke_syscall+0x98/0x2bc [ 42.473793][ T4291] el0_svc_common+0x138/0x258 [ 42.475202][ T4291] do_el0_svc+0x58/0x13c [ 42.476489][ T4291] el0_svc+0x58/0x168 [ 42.477686][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 42.479173][ T4291] el0t_64_sync+0x18c/0x190 [ 42.480526][ T4291] [ 42.480526][ T4291] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 42.483380][ T4291] __lock_acquire+0x3338/0x7680 [ 42.484825][ T4291] lock_acquire+0x26c/0x7cc [ 42.486236][ T4291] down_write+0x5c/0x88 [ 42.487517][ T4291] ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 42.489234][ T4291] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 42.491076][ T4291] ocfs2_init_xattr_set_ctxt+0x3b0/0x9f8 [ 42.492704][ T4291] ocfs2_xattr_set+0xc08/0x1478 [ 42.494219][ T4291] ocfs2_xattr_trusted_set+0x4c/0x64 [ 42.495783][ T4291] __vfs_setxattr+0x388/0x3a4 [ 42.497177][ T4291] __vfs_setxattr_noperm+0x110/0x528 [ 42.498758][ T4291] __vfs_setxattr_locked+0x1ec/0x218 [ 42.500330][ T4291] vfs_setxattr+0x1a8/0x344 [ 42.501678][ T4291] setxattr+0x230/0x294 [ 42.502934][ T4291] path_setxattr+0x17c/0x258 [ 42.504281][ T4291] __arm64_sys_setxattr+0xbc/0xd8 [ 42.505779][ T4291] invoke_syscall+0x98/0x2bc [ 42.507160][ T4291] el0_svc_common+0x138/0x258 [ 42.508576][ T4291] do_el0_svc+0x58/0x13c [ 42.509893][ T4291] el0_svc+0x58/0x168 [ 42.511138][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 42.512625][ T4291] el0t_64_sync+0x18c/0x190 [ 42.513966][ T4291] [ 42.513966][ T4291] other info that might help us debug this: [ 42.513966][ T4291] [ 42.516680][ T4291] Chain exists of: [ 42.516680][ T4291] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 42.516680][ T4291] [ 42.520957][ T4291] Possible unsafe locking scenario: [ 42.520957][ T4291] [ 42.522988][ T4291] CPU0 CPU1 [ 42.524410][ T4291] ---- ---- [ 42.525846][ T4291] lock(&oi->ip_xattr_sem); [ 42.527093][ T4291] lock(jbd2_handle); [ 42.528872][ T4291] lock(&oi->ip_xattr_sem); [ 42.530786][ T4291] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 42.532729][ T4291] [ 42.532729][ T4291] *** DEADLOCK *** [ 42.532729][ T4291] [ 42.534898][ T4291] 3 locks held by syz-executor256/4291: [ 42.536394][ T4291] #0: ffff0000d9296460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 42.539061][ T4291] #1: ffff0000e234c2c8 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 42.541976][ T4291] #2: ffff0000e234bff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 42.544717][ T4291] [ 42.544717][ T4291] stack backtrace: [ 42.546281][ T4291] CPU: 1 PID: 4291 Comm: syz-executor256 Not tainted 6.1.134-syzkaller #0 [ 42.548611][ T4291] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 42.551357][ T4291] Call trace: [ 42.552250][ T4291] dump_backtrace+0x1c8/0x1f4 [ 42.553529][ T4291] show_stack+0x2c/0x3c [ 42.554675][ T4291] dump_stack_lvl+0x108/0x170 [ 42.556023][ T4291] dump_stack+0x1c/0x5c [ 42.557210][ T4291] print_circular_bug+0x150/0x1b8 [ 42.558614][ T4291] check_noncircular+0x2cc/0x378 [ 42.559995][ T4291] __lock_acquire+0x3338/0x7680 [ 42.561253][ T4291] lock_acquire+0x26c/0x7cc [ 42.562462][ T4291] down_write+0x5c/0x88 [ 42.563590][ T4291] ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 42.565221][ T4291] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 42.566957][ T4291] ocfs2_init_xattr_set_ctxt+0x3b0/0x9f8 [ 42.568453][ T4291] ocfs2_xattr_set+0xc08/0x1478 [ 42.569793][ T4291] ocfs2_xattr_trusted_set+0x4c/0x64 [ 42.571222][ T4291] __vfs_setxattr+0x388/0x3a4 [ 42.572537][ T4291] __vfs_setxattr_noperm+0x110/0x528 [ 42.573979][ T4291] __vfs_setxattr_locked+0x1ec/0x218 [ 42.575413][ T4291] vfs_setxattr+0x1a8/0x344 [ 42.576612][ T4291] setxattr+0x230/0x294 [ 42.577751][ T4291] path_setxattr+0x17c/0x258 [ 42.579012][ T4291] __arm64_sys_setxattr+0xbc/0xd8 [ 42.580380][ T4291] invoke_syscall+0x98/0x2bc [ 42.581602][ T4291] el0_svc_common+0x138/0x258 [ 42.582869][ T4291] do_el0_svc+0x58/0x13c [ 42.584005][ T4291] el0_svc+0x58/0x168 [ 42.585059][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 42.586420][ T4291] el0t_64_sync+0x18c/0x190