Warning: Permanently added '10.128.0.252' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 62.195126][ T3541] loop0: detected capacity change from 0 to 512 [ 62.205298][ T3541] EXT4-fs: Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE [ 62.223262][ T3541] EXT4-fs (loop0): 1 truncate cleaned up [ 62.228941][ T3541] EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. [ 62.247016][ T3541] [ 62.249372][ T3541] ====================================================== [ 62.256405][ T3541] WARNING: possible circular locking dependency detected [ 62.263439][ T3541] 6.1.27-syzkaller #0 Not tainted [ 62.268475][ T3541] ------------------------------------------------------ [ 62.275484][ T3541] syz-executor294/3541 is trying to acquire lock: [ 62.281886][ T3541] ffff888073145440 (&ea_inode->i_rwsem#8/1){+.+.}-{3:3}, at: ext4_xattr_inode_iget+0x4a3/0x5e0 [ 62.292260][ T3541] [ 62.292260][ T3541] but task is already holding lock: [ 62.299620][ T3541] ffff8880731448c0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x13fa/0x1a00 [ 62.308767][ T3541] [ 62.308767][ T3541] which lock already depends on the new lock. [ 62.308767][ T3541] [ 62.319167][ T3541] [ 62.319167][ T3541] the existing dependency chain (in reverse order) is: [ 62.328172][ T3541] [ 62.328172][ T3541] -> #1 (&ei->i_data_sem){++++}-{3:3}: [ 62.335816][ T3541] lock_acquire+0x1f8/0x5a0 [ 62.340846][ T3541] down_write+0x36/0x60 [ 62.345535][ T3541] ext4_xattr_set_entry+0x3187/0x3c00 [ 62.351427][ T3541] ext4_xattr_ibody_set+0x11d/0x330 [ 62.357144][ T3541] ext4_xattr_set_handle+0xc72/0x1560 [ 62.363057][ T3541] ext4_xattr_set+0x231/0x3d0 [ 62.368256][ T3541] __vfs_setxattr+0x3e7/0x420 [ 62.373455][ T3541] __vfs_setxattr_noperm+0x12a/0x5e0 [ 62.379256][ T3541] vfs_setxattr+0x21d/0x420 [ 62.384272][ T3541] setxattr+0x250/0x2b0 [ 62.388947][ T3541] path_setxattr+0x1bc/0x2a0 [ 62.394049][ T3541] __x64_sys_setxattr+0xb7/0xd0 [ 62.399422][ T3541] do_syscall_64+0x3d/0xb0 [ 62.404361][ T3541] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 62.410787][ T3541] [ 62.410787][ T3541] -> #0 (&ea_inode->i_rwsem#8/1){+.+.}-{3:3}: [ 62.419047][ T3541] validate_chain+0x1667/0x58e0 [ 62.424434][ T3541] __lock_acquire+0x125b/0x1f80 [ 62.429801][ T3541] lock_acquire+0x1f8/0x5a0 [ 62.434822][ T3541] down_write+0x36/0x60 [ 62.439498][ T3541] ext4_xattr_inode_iget+0x4a3/0x5e0 [ 62.445303][ T3541] ext4_xattr_inode_get+0x17d/0x9a0 [ 62.451022][ T3541] ext4_expand_extra_isize_ea+0xe77/0x1bc0 [ 62.457348][ T3541] __ext4_expand_extra_isize+0x2f7/0x3d0 [ 62.463506][ T3541] __ext4_mark_inode_dirty+0x54f/0x920 [ 62.469491][ T3541] ext4_setattr+0x1493/0x1a00 [ 62.474692][ T3541] notify_change+0xdcd/0x1080 [ 62.479886][ T3541] do_truncate+0x21c/0x300 [ 62.484825][ T3541] path_openat+0x27e2/0x2e60 [ 62.489940][ T3541] do_filp_open+0x230/0x480 [ 62.494963][ T3541] do_sys_openat2+0x13b/0x500 [ 62.500166][ T3541] __x64_sys_creat+0x11f/0x160 [ 62.505458][ T3541] do_syscall_64+0x3d/0xb0 [ 62.510393][ T3541] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 62.516825][ T3541] [ 62.516825][ T3541] other info that might help us debug this: [ 62.516825][ T3541] [ 62.527046][ T3541] Possible unsafe locking scenario: [ 62.527046][ T3541] [ 62.534492][ T3541] CPU0 CPU1 [ 62.539853][ T3541] ---- ---- [ 62.545212][ T3541] lock(&ei->i_data_sem); [ 62.549634][ T3541] lock(&ea_inode->i_rwsem#8/1); [ 62.557190][ T3541] lock(&ei->i_data_sem); [ 62.564126][ T3541] lock(&ea_inode->i_rwsem#8/1); [ 62.569163][ T3541] [ 62.569163][ T3541] *** DEADLOCK *** [ 62.569163][ T3541] [ 62.577313][ T3541] 5 locks held by syz-executor294/3541: [ 62.582869][ T3541] #0: ffff88807b46a460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 62.592021][ T3541] #1: ffff888073144a38 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: do_truncate+0x208/0x300 [ 62.602303][ T3541] #2: ffff888073144bd8 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_setattr+0xec7/0x1a00 [ 62.612509][ T3541] #3: ffff8880731448c0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x13fa/0x1a00 [ 62.622093][ T3541] #4: ffff888073144700 (&ei->xattr_sem){++++}-{3:3}, at: __ext4_mark_inode_dirty+0x4b0/0x920 [ 62.632369][ T3541] [ 62.632369][ T3541] stack backtrace: [ 62.638264][ T3541] CPU: 1 PID: 3541 Comm: syz-executor294 Not tainted 6.1.27-syzkaller #0 [ 62.646682][ T3541] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 62.656750][ T3541] Call Trace: [ 62.660028][ T3541] [ 62.662961][ T3541] dump_stack_lvl+0x1e3/0x2cb [ 62.667661][ T3541] ? nf_tcp_handle_invalid+0x642/0x642 [ 62.673143][ T3541] ? print_circular_bug+0x12b/0x1a0 [ 62.678355][ T3541] check_noncircular+0x2fa/0x3b0 [ 62.683305][ T3541] ? mark_lock+0x9a/0x340 [ 62.687731][ T3541] ? add_chain_block+0x850/0x850 [ 62.692765][ T3541] ? lockdep_lock+0x11f/0x2a0 [ 62.697465][ T3541] validate_chain+0x1667/0x58e0 [ 62.702331][ T3541] ? reacquire_held_locks+0x660/0x660 [ 62.707713][ T3541] ? __lock_acquire+0x1f80/0x1f80 [ 62.712749][ T3541] ? mark_lock+0x9a/0x340 [ 62.717080][ T3541] __lock_acquire+0x125b/0x1f80 [ 62.721939][ T3541] lock_acquire+0x1f8/0x5a0 [ 62.726440][ T3541] ? ext4_xattr_inode_iget+0x4a3/0x5e0 [ 62.731903][ T3541] ? read_lock_is_recursive+0x10/0x10 [ 62.737279][ T3541] ? __might_sleep+0xb0/0xb0 [ 62.741873][ T3541] ? lockdep_softirqs_off+0x420/0x420 [ 62.747244][ T3541] ? rcu_lock_acquire+0x30/0x30 [ 62.752124][ T3541] down_write+0x36/0x60 [ 62.756288][ T3541] ? ext4_xattr_inode_iget+0x4a3/0x5e0 [ 62.761754][ T3541] ext4_xattr_inode_iget+0x4a3/0x5e0 [ 62.767044][ T3541] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 62.773027][ T3541] ext4_xattr_inode_get+0x17d/0x9a0 [ 62.778231][ T3541] ? __phys_addr+0xb6/0x170 [ 62.782741][ T3541] ? __kasan_kmalloc_large+0x92/0xd0 [ 62.788040][ T3541] ? __xattr_check_inode+0x3f0/0x3f0 [ 62.793329][ T3541] ? kvmalloc_node+0x6e/0x180 [ 62.798022][ T3541] ? rcu_is_watching+0x11/0xb0 [ 62.802791][ T3541] ? kvmalloc_node+0x6e/0x180 [ 62.807467][ T3541] ? __kmalloc_node+0x154/0x230 [ 62.812315][ T3541] ? rcu_is_watching+0x11/0xb0 [ 62.817085][ T3541] ext4_expand_extra_isize_ea+0xe77/0x1bc0 [ 62.822917][ T3541] ? ext4_xattr_set+0x3d0/0x3d0 [ 62.827910][ T3541] ? rwsem_write_trylock+0x166/0x210 [ 62.833221][ T3541] ? clear_nonspinnable+0x60/0x60 [ 62.838264][ T3541] ? ext4_reserve_inode_write+0x2b3/0x360 [ 62.843999][ T3541] ? dquot_initialize_needed+0x128/0x320 [ 62.849646][ T3541] __ext4_expand_extra_isize+0x2f7/0x3d0 [ 62.855303][ T3541] __ext4_mark_inode_dirty+0x54f/0x920 [ 62.860781][ T3541] ? ext4_blocks_for_truncate+0x270/0x270 [ 62.866510][ T3541] ? ext4_update_disksize_before_punch+0x360/0x360 [ 62.873031][ T3541] ext4_setattr+0x1493/0x1a00 [ 62.877723][ T3541] ? ext4_write_inode+0x740/0x740 [ 62.882760][ T3541] notify_change+0xdcd/0x1080 [ 62.887445][ T3541] do_truncate+0x21c/0x300 [ 62.891875][ T3541] ? put_page_bootmem+0x2e0/0x2e0 [ 62.896909][ T3541] ? ima_bprm_check+0x2b0/0x2b0 [ 62.901762][ T3541] ? bpf_lsm_path_truncate+0x5/0x10 [ 62.906969][ T3541] path_openat+0x27e2/0x2e60 [ 62.911590][ T3541] ? do_filp_open+0x480/0x480 [ 62.916282][ T3541] do_filp_open+0x230/0x480 [ 62.920790][ T3541] ? vfs_tmpfile+0x4a0/0x4a0 [ 62.925387][ T3541] ? _raw_spin_unlock+0x24/0x40 [ 62.930248][ T3541] ? alloc_fd+0x59c/0x640 [ 62.934594][ T3541] do_sys_openat2+0x13b/0x500 [ 62.939282][ T3541] ? do_sys_open+0x220/0x220 [ 62.943880][ T3541] ? restore_fpregs_from_fpstate+0xfc/0x230 [ 62.949785][ T3541] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 62.955766][ T3541] __x64_sys_creat+0x11f/0x160 [ 62.960539][ T3541] ? __x64_compat_sys_openat+0x290/0x290 [ 62.966190][ T3541] ? syscall_enter_from_user_mode+0x2e/0x220 [ 62.972177][ T3541] ? lockdep_hardirqs_on+0x94/0x130 [ 62.977397][ T3541] ? syscall_enter_from_user_mode+0x2e/0x220 [ 62.983385][ T3541] do_syscall_64+0x3d/0xb0 [ 62.987803][ T3541] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 62.993708][ T3541] RIP: 0033:0x7f7d36a45c59 [ 62.998119][ T3541] 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 [ 63.017725][ T3541] RSP: 002b:00007ffe3bff7dc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 63.026146][ T3541] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f7d36a45c59 [ 63.034124][ T3541] RDX: 00007f7d36a45c59 RSI: 0000000000000000 RDI: 0000000020000080 [ 63.042100][ T3541] RBP: 00007f7d36a05260 R08: 0000000000000000 R09: 0000000000000000 [ 63.