Warning: Permanently added '10.128.0.166' (ED25519) to the list of known hosts. executing program [ 39.951471][ T4017] loop0: detected capacity change from 0 to 32768 [ 39.988653][ T4017] ======================================================= [ 39.988653][ T4017] WARNING: The mand mount option has been deprecated and [ 39.988653][ T4017] and is ignored by this kernel. Remove the mand [ 39.988653][ T4017] option from the mount to silence this warning. [ 39.988653][ T4017] ======================================================= [ 40.059525][ T4017] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 40.071794][ T4017] [ 40.072383][ T4017] ====================================================== [ 40.073842][ T4017] WARNING: possible circular locking dependency detected [ 40.075343][ T4017] 5.15.170-syzkaller #0 Not tainted [ 40.076369][ T4017] ------------------------------------------------------ [ 40.077860][ T4017] syz-executor330/4017 is trying to acquire lock: [ 40.079188][ T4017] ffff0000e18106f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_init_acl+0x2d0/0x778 [ 40.081337][ T4017] [ 40.081337][ T4017] but task is already holding lock: [ 40.082873][ T4017] ffff0000cb9aa990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xf98/0x12a4 [ 40.084879][ T4017] [ 40.084879][ T4017] which lock already depends on the new lock. [ 40.084879][ T4017] [ 40.087054][ T4017] [ 40.087054][ T4017] the existing dependency chain (in reverse order) is: [ 40.089093][ T4017] [ 40.089093][ T4017] -> #5 (jbd2_handle){++++}-{0:0}: [ 40.090730][ T4017] start_this_handle+0xfc0/0x12a4 [ 40.091875][ T4017] jbd2__journal_start+0x29c/0x7b4 [ 40.092996][ T4017] jbd2_journal_start+0x3c/0x4c [ 40.094107][ T4017] ocfs2_start_trans+0x468/0x804 [ 40.095303][ T4017] ocfs2_reserve_suballoc_bits+0x854/0x416c [ 40.096645][ T4017] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 40.098131][ T4017] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 40.099388][ T4017] ocfs2_xattr_set+0xc08/0x1478 [ 40.100476][ T4017] ocfs2_set_acl+0x410/0x4b4 [ 40.101614][ T4017] ocfs2_iop_set_acl+0x214/0x358 [ 40.102882][ T4017] posix_acl_xattr_set+0x2cc/0x378 [ 40.104140][ T4017] __vfs_setxattr+0x388/0x3a4 [ 40.105336][ T4017] __vfs_setxattr_noperm+0x110/0x528 [ 40.106580][ T4017] __vfs_setxattr_locked+0x1ec/0x218 [ 40.107805][ T4017] vfs_setxattr+0x1a8/0x344 [ 40.108798][ T4017] setxattr+0x250/0x2b4 [ 40.109732][ T4017] path_setxattr+0x17c/0x258 [ 40.110736][ T4017] __arm64_sys_lsetxattr+0xbc/0xd8 [ 40.111811][ T4017] invoke_syscall+0x98/0x2b8 [ 40.112858][ T4017] el0_svc_common+0x138/0x258 [ 40.114076][ T4017] do_el0_svc+0x58/0x14c [ 40.115013][ T4017] el0_svc+0x7c/0x1f0 [ 40.115864][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 40.116937][ T4017] el0t_64_sync+0x1a0/0x1a4 [ 40.118035][ T4017] [ 40.118035][ T4017] -> #4 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 40.119949][ T4017] down_read+0xc0/0x398 [ 40.120943][ T4017] ocfs2_start_trans+0x45c/0x804 [ 40.122039][ T4017] ocfs2_reserve_suballoc_bits+0x854/0x416c [ 40.123433][ T4017] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 40.124817][ T4017] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 40.126042][ T4017] ocfs2_xattr_set+0xc08/0x1478 [ 40.127127][ T4017] ocfs2_set_acl+0x410/0x4b4 [ 40.128265][ T4017] ocfs2_iop_set_acl+0x214/0x358 [ 40.129451][ T4017] posix_acl_xattr_set+0x2cc/0x378 [ 40.130688][ T4017] __vfs_setxattr+0x388/0x3a4 [ 40.131817][ T4017] __vfs_setxattr_noperm+0x110/0x528 [ 40.132967][ T4017] __vfs_setxattr_locked+0x1ec/0x218 [ 40.134109][ T4017] vfs_setxattr+0x1a8/0x344 [ 40.135154][ T4017] setxattr+0x250/0x2b4 [ 40.136152][ T4017] path_setxattr+0x17c/0x258 [ 40.137214][ T4017] __arm64_sys_lsetxattr+0xbc/0xd8 [ 40.138568][ T4017] invoke_syscall+0x98/0x2b8 [ 40.139605][ T4017] el0_svc_common+0x138/0x258 [ 40.140758][ T4017] do_el0_svc+0x58/0x14c [ 40.141774][ T4017] el0_svc+0x7c/0x1f0 [ 40.142858][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 40.144004][ T4017] el0t_64_sync+0x1a0/0x1a4 [ 40.145001][ T4017] [ 40.145001][ T4017] -> #3 (sb_internal#2){.+.+}-{0:0}: [ 40.146486][ T4017] ocfs2_start_trans+0x2dc/0x804 [ 40.147588][ T4017] ocfs2_reserve_suballoc_bits+0x854/0x416c [ 40.148923][ T4017] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 40.150415][ T4017] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 40.151782][ T4017] ocfs2_xattr_set+0xc08/0x1478 [ 40.153029][ T4017] ocfs2_set_acl+0x410/0x4b4 [ 40.154151][ T4017] ocfs2_iop_set_acl+0x214/0x358 [ 40.155380][ T4017] posix_acl_xattr_set+0x2cc/0x378 [ 40.156511][ T4017] __vfs_setxattr+0x388/0x3a4 [ 40.157611][ T4017] __vfs_setxattr_noperm+0x110/0x528 [ 40.158861][ T4017] __vfs_setxattr_locked+0x1ec/0x218 [ 40.160150][ T4017] vfs_setxattr+0x1a8/0x344 [ 40.161313][ T4017] setxattr+0x250/0x2b4 [ 40.162332][ T4017] path_setxattr+0x17c/0x258 [ 40.163427][ T4017] __arm64_sys_lsetxattr+0xbc/0xd8 [ 40.164697][ T4017] invoke_syscall+0x98/0x2b8 [ 40.165750][ T4017] el0_svc_common+0x138/0x258 [ 40.166803][ T4017] do_el0_svc+0x58/0x14c [ 40.167845][ T4017] el0_svc+0x7c/0x1f0 [ 40.168755][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 40.169862][ T4017] el0t_64_sync+0x1a0/0x1a4 [ 40.170985][ T4017] [ 40.170985][ T4017] -> #2 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 40.173308][ T4017] down_write+0xbc/0x12c [ 40.174341][ T4017] ocfs2_reserve_suballoc_bits+0x164/0x416c [ 40.175702][ T4017] ocfs2_reserve_clusters_with_limit+0x2ac/0xabc [ 40.177294][ T4017] ocfs2_reserve_suballoc_bits+0x834/0x416c [ 40.178669][ T4017] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 40.180219][ T4017] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 40.181510][ T4017] ocfs2_xattr_set+0xc08/0x1478 [ 40.182684][ T4017] ocfs2_set_acl+0x410/0x4b4 [ 40.183836][ T4017] ocfs2_iop_set_acl+0x214/0x358 [ 40.185130][ T4017] posix_acl_xattr_set+0x2cc/0x378 [ 40.186240][ T4017] __vfs_setxattr+0x388/0x3a4 [ 40.187446][ T4017] __vfs_setxattr_noperm+0x110/0x528 [ 40.188661][ T4017] __vfs_setxattr_locked+0x1ec/0x218 [ 40.189960][ T4017] vfs_setxattr+0x1a8/0x344 [ 40.191157][ T4017] setxattr+0x250/0x2b4 [ 40.192086][ T4017] path_setxattr+0x17c/0x258 [ 40.193090][ T4017] __arm64_sys_lsetxattr+0xbc/0xd8 [ 40.194367][ T4017] invoke_syscall+0x98/0x2b8 [ 40.195611][ T4017] el0_svc_common+0x138/0x258 [ 40.196909][ T4017] do_el0_svc+0x58/0x14c [ 40.198202][ T4017] el0_svc+0x7c/0x1f0 [ 40.199223][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 40.200427][ T4017] el0t_64_sync+0x1a0/0x1a4 [ 40.201504][ T4017] [ 40.201504][ T4017] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 40.203657][ T4017] down_write+0xbc/0x12c [ 40.204747][ T4017] ocfs2_reserve_suballoc_bits+0x164/0x416c [ 40.206197][ T4017] ocfs2_reserve_new_metadata_blocks+0x388/0x864 [ 40.207676][ T4017] ocfs2_init_xattr_set_ctxt+0x37c/0x950 [ 40.208920][ T4017] ocfs2_xattr_set+0xc08/0x1478 [ 40.210180][ T4017] ocfs2_set_acl+0x410/0x4b4 [ 40.211188][ T4017] ocfs2_iop_set_acl+0x214/0x358 [ 40.212303][ T4017] posix_acl_xattr_set+0x2cc/0x378 [ 40.213547][ T4017] __vfs_setxattr+0x388/0x3a4 [ 40.214539][ T4017] __vfs_setxattr_noperm+0x110/0x528 [ 40.215884][ T4017] __vfs_setxattr_locked+0x1ec/0x218 [ 40.217354][ T4017] vfs_setxattr+0x1a8/0x344 [ 40.218465][ T4017] setxattr+0x250/0x2b4 [ 40.219439][ T4017] path_setxattr+0x17c/0x258 [ 40.220533][ T4017] __arm64_sys_lsetxattr+0xbc/0xd8 [ 40.221616][ T4017] invoke_syscall+0x98/0x2b8 [ 40.222702][ T4017] el0_svc_common+0x138/0x258 [ 40.223922][ T4017] do_el0_svc+0x58/0x14c [ 40.225005][ T4017] el0_svc+0x7c/0x1f0 [ 40.226080][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 40.227189][ T4017] el0t_64_sync+0x1a0/0x1a4 [ 40.228362][ T4017] [ 40.228362][ T4017] -> #0 (&oi->ip_xattr_sem){++++}-{3:3}: [ 40.229993][ T4017] __lock_acquire+0x32d4/0x7638 [ 40.231172][ T4017] lock_acquire+0x240/0x77c [ 40.232322][ T4017] down_read+0xc0/0x398 [ 40.233335][ T4017] ocfs2_init_acl+0x2d0/0x778 [ 40.234447][ T4017] ocfs2_mknod+0x1558/0x24f8 [ 40.235545][ T4017] ocfs2_create+0x184/0x4c8 [ 40.236604][ T4017] path_openat+0xf18/0x26cc [ 40.237603][ T4017] do_filp_open+0x1a8/0x3b4 [ 40.238798][ T4017] do_sys_openat2+0x128/0x3e0 [ 40.239947][ T4017] __arm64_sys_openat+0x1f0/0x240 [ 40.241076][ T4017] invoke_syscall+0x98/0x2b8 [ 40.242089][ T4017] el0_svc_common+0x138/0x258 [ 40.243238][ T4017] do_el0_svc+0x58/0x14c [ 40.244178][ T4017] el0_svc+0x7c/0x1f0 [ 40.245139][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 40.246231][ T4017] el0t_64_sync+0x1a0/0x1a4 [ 40.247393][ T4017] [ 40.247393][ T4017] other info that might help us debug this: [ 40.247393][ T4017] [ 40.249539][ T4017] Chain exists of: [ 40.249539][ T4017] &oi->ip_xattr_sem --> &journal->j_trans_barrier --> jbd2_handle [ 40.249539][ T4017] [ 40.252149][ T4017] Possible unsafe locking scenario: [ 40.252149][ T4017] [ 40.253628][ T4017] CPU0 CPU1 [ 40.254745][ T4017] ---- ---- [ 40.255861][ T4017] lock(jbd2_handle); [ 40.256734][ T4017] lock(&journal->j_trans_barrier); [ 40.258404][ T4017] lock(jbd2_handle); [ 40.259905][ T4017] lock(&oi->ip_xattr_sem); [ 40.260882][ T4017] [ 40.260882][ T4017] *** DEADLOCK *** [ 40.260882][ T4017] [ 40.262648][ T4017] 8 locks held by syz-executor330/4017: [ 40.263749][ T4017] #0: ffff0000cb9a8460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 40.265807][ T4017] #1: ffff0000e18109c8 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x640/0x26cc [ 40.267995][ T4017] #2: ffff0000e18689c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x164/0x416c [ 40.270964][ T4017] #3: ffff0000e1816d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x164/0x416c [ 40.273689][ T4017] #4: ffff0000e186a648 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0xfc/0x2474 [ 40.276510][ T4017] #5: ffff0000cb9a8650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_mknod+0xe68/0x24f8 [ 40.278577][ T4017] #6: ffff0000d9ec54e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x45c/0x804 [ 40.281049][ T4017] #7: ffff0000cb9aa990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xf98/0x12a4 [ 40.283062][ T4017] [ 40.283062][ T4017] stack backtrace: [ 40.284237][ T4017] CPU: 1 PID: 4017 Comm: syz-executor330 Not tainted 5.15.170-syzkaller #0 [ 40.286024][ T4017] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 40.288059][ T4017] Call trace: [ 40.288723][ T4017] dump_backtrace+0x0/0x530 [ 40.289577][ T4017] show_stack+0x2c/0x3c [ 40.290520][ T4017] dump_stack_lvl+0x108/0x170 [ 40.291433][ T4017] dump_stack+0x1c/0x58 [ 40.292368][ T4017] print_circular_bug+0x150/0x1b8 [ 40.293421][ T4017] check_noncircular+0x2cc/0x378 [ 40.294409][ T4017] __lock_acquire+0x32d4/0x7638 [ 40.295371][ T4017] lock_acquire+0x240/0x77c [ 40.296341][ T4017] down_read+0xc0/0x398 [ 40.297345][ T4017] ocfs2_init_acl+0x2d0/0x778 [ 40.298294][ T4017] ocfs2_mknod+0x1558/0x24f8 [ 40.299260][ T4017] ocfs2_create+0x184/0x4c8 [ 40.300239][ T4017] path_openat+0xf18/0x26cc [ 40.301189][ T4017] do_filp_open+0x1a8/0x3b4 [ 40.302203][ T4017] do_sys_openat2+0x128/0x3e0 [ 40.303199][ T4017] __arm64_sys_openat+0x1f0/0x240 [ 40.304297][ T4017] invoke_syscall+0x98/0x2b8 [ 40.305220][ T4017] el0_svc_common+0x138/0x258 [ 40.306214][ T4017] do_el0_svc+0x58/0x14c [ 40.307040][ T4017] el0_svc+0x7c/0x1f0 [ 40.307934][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 40.308991][ T4017] el0t_64_sync+0x1a0/0x1a4