Warning: Permanently added '10.128.1.120' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 42.708404][ T3499] loop0: detected capacity change from 0 to 512 [ 42.718198][ T3499] EXT4-fs (loop0): Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE [ 42.737823][ T3499] EXT4-fs (loop0): 1 truncate cleaned up [ 42.743575][ T3499] EXT4-fs (loop0): mounted filesystem without journal. Opts: inode_readahead_blks=0x0000000000000000,nogrpid,debug_want_extra_isize=0x0000000000000066,dioread_nolock,max_batch_time=0x0000000000000008,resgid=0x0000000000000003,,errors=continue. Quota mode: writeback. [ 42.773642][ T3499] [ 42.775984][ T3499] ====================================================== [ 42.782999][ T3499] WARNING: possible circular locking dependency detected [ 42.790014][ T3499] 5.15.115-syzkaller #0 Not tainted [ 42.795392][ T3499] ------------------------------------------------------ [ 42.802571][ T3499] syz-executor255/3499 is trying to acquire lock: [ 42.808962][ T3499] ffff88807633f198 (&ea_inode->i_rwsem#9/1){+.+.}-{3:3}, at: ext4_xattr_inode_iget+0x4a3/0x5e0 [ 42.819388][ T3499] [ 42.819388][ T3499] but task is already holding lock: [ 42.826731][ T3499] ffff88807633e628 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x12e8/0x1990 [ 42.836030][ T3499] [ 42.836030][ T3499] which lock already depends on the new lock. [ 42.836030][ T3499] [ 42.846414][ T3499] [ 42.846414][ T3499] the existing dependency chain (in reverse order) is: [ 42.855405][ T3499] [ 42.855405][ T3499] -> #1 (&ei->i_data_sem){++++}-{3:3}: [ 42.863241][ T3499] lock_acquire+0x1db/0x4f0 [ 42.868242][ T3499] down_write+0x97/0x170 [ 42.872986][ T3499] ext4_xattr_set_entry+0x3187/0x3c00 [ 42.878851][ T3499] ext4_xattr_ibody_set+0x11d/0x330 [ 42.884551][ T3499] ext4_xattr_set_handle+0xc72/0x1560 [ 42.890440][ T3499] ext4_xattr_set+0x231/0x3d0 [ 42.895627][ T3499] __vfs_setxattr+0x3e7/0x420 [ 42.901322][ T3499] __vfs_setxattr_noperm+0x12a/0x5e0 [ 42.907189][ T3499] vfs_setxattr+0x21d/0x420 [ 42.912184][ T3499] setxattr+0x27e/0x2e0 [ 42.916915][ T3499] path_setxattr+0x1bc/0x2a0 [ 42.921997][ T3499] __x64_sys_setxattr+0xb7/0xd0 [ 42.927354][ T3499] do_syscall_64+0x3d/0xb0 [ 42.932279][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.938674][ T3499] [ 42.938674][ T3499] -> #0 (&ea_inode->i_rwsem#9/1){+.+.}-{3:3}: [ 42.946903][ T3499] validate_chain+0x1646/0x58b0 [ 42.952250][ T3499] __lock_acquire+0x1295/0x1ff0 [ 42.957625][ T3499] lock_acquire+0x1db/0x4f0 [ 42.962631][ T3499] down_write+0x97/0x170 [ 42.967366][ T3499] ext4_xattr_inode_iget+0x4a3/0x5e0 [ 42.973257][ T3499] ext4_xattr_inode_get+0x17d/0x9a0 [ 42.979071][ T3499] ext4_expand_extra_isize_ea+0xe70/0x1bb0 [ 42.985377][ T3499] __ext4_expand_extra_isize+0x2f7/0x3d0 [ 42.991839][ T3499] __ext4_mark_inode_dirty+0x539/0x860 [ 42.997988][ T3499] ext4_setattr+0x1374/0x1990 [ 43.003175][ T3499] notify_change+0xd4d/0x1000 [ 43.008361][ T3499] do_truncate+0x21c/0x300 [ 43.013370][ T3499] path_openat+0x28a0/0x2f20 [ 43.018452][ T3499] do_filp_open+0x21c/0x460 [ 43.023451][ T3499] do_sys_openat2+0x13b/0x500 [ 43.031398][ T3499] __x64_sys_creat+0x11f/0x160 [ 43.036654][ T3499] do_syscall_64+0x3d/0xb0 [ 43.041568][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 43.047954][ T3499] [ 43.047954][ T3499] other info that might help us debug this: [ 43.047954][ T3499] [ 43.058151][ T3499] Possible unsafe locking scenario: [ 43.058151][ T3499] [ 43.065660][ T3499] CPU0 CPU1 [ 43.071040][ T3499] ---- ---- [ 43.077102][ T3499] lock(&ei->i_data_sem); [ 43.081607][ T3499] lock(&ea_inode->i_rwsem#9/1); [ 43.089151][ T3499] lock(&ei->i_data_sem); [ 43.096073][ T3499] lock(&ea_inode->i_rwsem#9/1); [ 43.101267][ T3499] [ 43.101267][ T3499] *** DEADLOCK *** [ 43.101267][ T3499] [ 43.109479][ T3499] 5 locks held by syz-executor255/3499: [ 43.115832][ T3499] #0: ffff888078dd0460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 43.125045][ T3499] #1: ffff88807633e7a0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: do_truncate+0x208/0x300 [ 43.135307][ T3499] #2: ffff88807633e940 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_setattr+0xd6c/0x1990 [ 43.145535][ T3499] #3: ffff88807633e628 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x12e8/0x1990 [ 43.155285][ T3499] #4: ffff88807633e478 (&ei->xattr_sem){++++}-{3:3}, at: __ext4_mark_inode_dirty+0x4a0/0x860 [ 43.165545][ T3499] [ 43.165545][ T3499] stack backtrace: [ 43.171529][ T3499] CPU: 0 PID: 3499 Comm: syz-executor255 Not tainted 5.15.115-syzkaller #0 [ 43.180147][ T3499] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 43.190183][ T3499] Call Trace: [ 43.193635][ T3499] [ 43.196543][ T3499] dump_stack_lvl+0x1e3/0x2cb [ 43.201212][ T3499] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 43.206841][ T3499] ? print_circular_bug+0x12b/0x1a0 [ 43.212029][ T3499] check_noncircular+0x2f8/0x3b0 [ 43.216954][ T3499] ? add_chain_block+0x850/0x850 [ 43.221873][ T3499] ? lockdep_lock+0x11f/0x2a0 [ 43.226529][ T3499] ? __lock_acquire+0x1295/0x1ff0 [ 43.231529][ T3499] validate_chain+0x1646/0x58b0 [ 43.236538][ T3499] ? find_inode_fast+0x421/0x450 [ 43.241462][ T3499] ? reacquire_held_locks+0x660/0x660 [ 43.246818][ T3499] ? do_raw_spin_lock+0x14a/0x370 [ 43.251844][ T3499] ? mark_lock+0x98/0x340 [ 43.256161][ T3499] __lock_acquire+0x1295/0x1ff0 [ 43.261172][ T3499] lock_acquire+0x1db/0x4f0 [ 43.265662][ T3499] ? ext4_xattr_inode_iget+0x4a3/0x5e0 [ 43.271152][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 43.276600][ T3499] ? __might_sleep+0xc0/0xc0 [ 43.281254][ T3499] ? stack_depot_save+0x3db/0x440 [ 43.286261][ T3499] down_write+0x97/0x170 [ 43.290499][ T3499] ? ext4_xattr_inode_iget+0x4a3/0x5e0 [ 43.295928][ T3499] ? down_read_killable+0x350/0x350 [ 43.301284][ T3499] ext4_xattr_inode_iget+0x4a3/0x5e0 [ 43.306625][ T3499] ext4_xattr_inode_get+0x17d/0x9a0 [ 43.311862][ T3499] ? __xattr_check_inode+0x3f0/0x3f0 [ 43.317150][ T3499] ? __kmalloc_node+0x199/0x390 [ 43.322084][ T3499] ? ext4_expand_extra_isize_ea+0xd11/0x1bb0 [ 43.328062][ T3499] ext4_expand_extra_isize_ea+0xe70/0x1bb0 [ 43.333863][ T3499] ? ext4_xattr_set+0x3d0/0x3d0 [ 43.338702][ T3499] ? down_write_trylock+0x173/0x2d0 [ 43.343879][ T3499] ? __ext4_mark_inode_dirty+0x4a0/0x860 [ 43.349494][ T3499] ? dquot_initialize_needed+0x128/0x320 [ 43.355137][ T3499] __ext4_expand_extra_isize+0x2f7/0x3d0 [ 43.360778][ T3499] __ext4_mark_inode_dirty+0x539/0x860 [ 43.366925][ T3499] ? ext4_blocks_for_truncate+0x270/0x270 [ 43.372668][ T3499] ? down_read_killable+0x350/0x350 [ 43.377884][ T3499] ? ext4_journal_check_start+0x17b/0x240 [ 43.383682][ T3499] ? ext4_setattr+0xf05/0x1990 [ 43.388431][ T3499] ? __ext4_journal_start_sb+0x1cb/0x370 [ 43.394177][ T3499] ext4_setattr+0x1374/0x1990 [ 43.398936][ T3499] ? bpf_lsm_inode_setattr+0x5/0x10 [ 43.404113][ T3499] ? ext4_write_inode+0x730/0x730 [ 43.409315][ T3499] notify_change+0xd4d/0x1000 [ 43.413993][ T3499] do_truncate+0x21c/0x300 [ 43.418409][ T3499] ? put_page_bootmem+0x280/0x280 [ 43.423414][ T3499] ? ima_bprm_check+0x2b0/0x2b0 [ 43.428246][ T3499] ? bpf_lsm_path_truncate+0x5/0x10 [ 43.433420][ T3499] path_openat+0x28a0/0x2f20 [ 43.437995][ T3499] ? do_filp_open+0x460/0x460 [ 43.442645][ T3499] do_filp_open+0x21c/0x460 [ 43.447119][ T3499] ? vfs_tmpfile+0x2e0/0x2e0 [ 43.451683][ T3499] ? _raw_spin_unlock+0x24/0x40 [ 43.456502][ T3499] ? alloc_fd+0x594/0x630 [ 43.460801][ T3499] do_sys_openat2+0x13b/0x500 [ 43.465449][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 43.470791][ T3499] ? __context_tracking_exit+0x4c/0x80 [ 43.476220][ T3499] ? do_sys_open+0x220/0x220 [ 43.480781][ T3499] ? rcu_is_watching+0x11/0xa0 [ 43.485514][ T3499] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 43.491463][ T3499] __x64_sys_creat+0x11f/0x160 [ 43.496230][ T3499] ? __x64_compat_sys_openat+0x290/0x290 [ 43.501850][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 43.507819][ T3499] ? lockdep_hardirqs_on+0x94/0x130 [ 43.512997][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 43.518950][ T3499] do_syscall_64+0x3d/0xb0 [ 43.523427][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 43.529292][ T3499] RIP: 0033:0x7f7b0146cc79 [ 43.533689][ T3499] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 43.553277][ T3499] RSP: 002b:00007ffcf7037138 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 43.