Warning: Permanently added '10.128.10.28' (ECDSA) to the list of known hosts. executing program [ 59.345404][ T3542] loop0: detected capacity change from 0 to 512 [ 59.355451][ T3542] EXT4-fs: Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE [ 59.375248][ T3542] EXT4-fs (loop0): 1 truncate cleaned up [ 59.380957][ T3542] EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. [ 59.399971][ T3542] [ 59.402371][ T3542] ====================================================== [ 59.409414][ T3542] WARNING: possible circular locking dependency detected [ 59.416443][ T3542] 6.1.32-syzkaller #0 Not tainted [ 59.421478][ T3542] ------------------------------------------------------ [ 59.428513][ T3542] syz-executor550/3542 is trying to acquire lock: [ 59.434932][ T3542] ffff8880730c6850 (&ea_inode->i_rwsem#8/1){+.+.}-{3:3}, at: ext4_xattr_inode_iget+0x4a3/0x5e0 [ 59.445389][ T3542] [ 59.445389][ T3542] but task is already holding lock: [ 59.452747][ T3542] ffff8880730c5cd0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x13fa/0x1a00 [ 59.462496][ T3542] [ 59.462496][ T3542] which lock already depends on the new lock. [ 59.462496][ T3542] [ 59.472975][ T3542] [ 59.472975][ T3542] the existing dependency chain (in reverse order) is: [ 59.481980][ T3542] [ 59.481980][ T3542] -> #1 (&ei->i_data_sem){++++}-{3:3}: [ 59.489621][ T3542] lock_acquire+0x1f8/0x5a0 [ 59.494640][ T3542] down_write+0x36/0x60 [ 59.499323][ T3542] ext4_xattr_set_entry+0x3187/0x3c00 [ 59.505210][ T3542] ext4_xattr_ibody_set+0x11d/0x330 [ 59.510924][ T3542] ext4_xattr_set_handle+0xc72/0x1560 [ 59.516811][ T3542] ext4_xattr_set+0x231/0x3d0 [ 59.522003][ T3542] __vfs_setxattr+0x3e7/0x420 [ 59.527192][ T3542] __vfs_setxattr_noperm+0x12a/0x5e0 [ 59.532991][ T3542] vfs_setxattr+0x21d/0x420 [ 59.538011][ T3542] setxattr+0x250/0x2b0 [ 59.542677][ T3542] path_setxattr+0x1bc/0x2a0 [ 59.547781][ T3542] __x64_sys_setxattr+0xb7/0xd0 [ 59.553145][ T3542] do_syscall_64+0x3d/0xb0 [ 59.558096][ T3542] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.564537][ T3542] [ 59.564537][ T3542] -> #0 (&ea_inode->i_rwsem#8/1){+.+.}-{3:3}: [ 59.572817][ T3542] validate_chain+0x1667/0x58e0 [ 59.578204][ T3542] __lock_acquire+0x125b/0x1f80 [ 59.583577][ T3542] lock_acquire+0x1f8/0x5a0 [ 59.588602][ T3542] down_write+0x36/0x60 [ 59.593282][ T3542] ext4_xattr_inode_iget+0x4a3/0x5e0 [ 59.599085][ T3542] ext4_xattr_inode_get+0x17d/0x9a0 [ 59.604801][ T3542] ext4_expand_extra_isize_ea+0xe70/0x1bb0 [ 59.611122][ T3542] __ext4_expand_extra_isize+0x2f7/0x3d0 [ 59.617278][ T3542] __ext4_mark_inode_dirty+0x54f/0x920 [ 59.623256][ T3542] ext4_setattr+0x1493/0x1a00 [ 59.628453][ T3542] notify_change+0xdcd/0x1080 [ 59.633642][ T3542] do_truncate+0x21c/0x300 [ 59.638573][ T3542] path_openat+0x27e2/0x2e60 [ 59.643681][ T3542] do_filp_open+0x230/0x480 [ 59.648697][ T3542] do_sys_openat2+0x13b/0x500 [ 59.653990][ T3542] __x64_sys_creat+0x11f/0x160 [ 59.659282][ T3542] do_syscall_64+0x3d/0xb0 [ 59.664216][ T3542] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.670624][ T3542] [ 59.670624][ T3542] other info that might help us debug this: [ 59.670624][ T3542] [ 59.680848][ T3542] Possible unsafe locking scenario: [ 59.680848][ T3542] [ 59.688284][ T3542] CPU0 CPU1 [ 59.693638][ T3542] ---- ---- [ 59.698994][ T3542] lock(&ei->i_data_sem); [ 59.703406][ T3542] lock(&ea_inode->i_rwsem#8/1); [ 59.710955][ T3542] lock(&ei->i_data_sem); [ 59.717884][ T3542] lock(&ea_inode->i_rwsem#8/1); [ 59.722924][ T3542] [ 59.722924][ T3542] *** DEADLOCK *** [ 59.722924][ T3542] [ 59.731062][ T3542] 5 locks held by syz-executor550/3542: [ 59.736599][ T3542] #0: ffff88807b2fa460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 59.745750][ T3542] #1: ffff8880730c5e48 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: do_truncate+0x208/0x300 [ 59.756895][ T3542] #2: ffff8880730c5fe8 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_setattr+0xec7/0x1a00 [ 59.767080][ T3542] #3: ffff8880730c5cd0 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x13fa/0x1a00 [ 59.776652][ T3542] #4: ffff8880730c5b10 (&ei->xattr_sem){++++}-{3:3}, at: __ext4_mark_inode_dirty+0x4b0/0x920 [ 59.786938][ T3542] [ 59.786938][ T3542] stack backtrace: [ 59.792820][ T3542] CPU: 0 PID: 3542 Comm: syz-executor550 Not tainted 6.1.32-syzkaller #0 [ 59.801313][ T3542] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 59.811362][ T3542] Call Trace: [ 59.814636][ T3542] [ 59.817561][ T3542] dump_stack_lvl+0x1e3/0x2cb [ 59.822241][ T3542] ? nf_tcp_handle_invalid+0x642/0x642 [ 59.827701][ T3542] ? print_circular_bug+0x12b/0x1a0 [ 59.832900][ T3542] check_noncircular+0x2fa/0x3b0 [ 59.837843][ T3542] ? mark_lock+0x9a/0x340 [ 59.842166][ T3542] ? add_chain_block+0x850/0x850 [ 59.847101][ T3542] ? lockdep_lock+0x11f/0x2a0 [ 59.851790][ T3542] validate_chain+0x1667/0x58e0 [ 59.858555][ T3542] ? reacquire_held_locks+0x660/0x660 [ 59.863930][ T3542] ? __lock_acquire+0x1f80/0x1f80 [ 59.868954][ T3542] ? mark_lock+0x9a/0x340 [ 59.873282][ T3542] __lock_acquire+0x125b/0x1f80 [ 59.878136][ T3542] lock_acquire+0x1f8/0x5a0 [ 59.882634][ T3542] ? ext4_xattr_inode_iget+0x4a3/0x5e0 [ 59.888095][ T3542] ? read_lock_is_recursive+0x10/0x10 [ 59.893463][ T3542] ? __might_sleep+0xb0/0xb0 [ 59.898048][ T3542] ? lockdep_softirqs_off+0x420/0x420 [ 59.903415][ T3542] ? rcu_lock_acquire+0x30/0x30 [ 59.908272][ T3542] down_write+0x36/0x60 [ 59.912439][ T3542] ? ext4_xattr_inode_iget+0x4a3/0x5e0 [ 59.917928][ T3542] ext4_xattr_inode_iget+0x4a3/0x5e0 [ 59.923241][ T3542] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 59.929224][ T3542] ext4_xattr_inode_get+0x17d/0x9a0 [ 59.934427][ T3542] ? __phys_addr+0xb6/0x170 [ 59.938934][ T3542] ? __kasan_kmalloc_large+0x92/0xd0 [ 59.944242][ T3542] ? __xattr_check_inode+0x3f0/0x3f0 [ 59.949533][ T3542] ? kvmalloc_node+0x6e/0x180 [ 59.954214][ T3542] ? rcu_is_watching+0x11/0xb0 [ 59.958982][ T3542] ? kvmalloc_node+0x6e/0x180 [ 59.963655][ T3542] ? __kmalloc_node+0x154/0x230 [ 59.968499][ T3542] ? rcu_is_watching+0x11/0xb0 [ 59.973260][ T3542] ext4_expand_extra_isize_ea+0xe70/0x1bb0 [ 59.979084][ T3542] ? ext4_xattr_set+0x3d0/0x3d0 [ 59.983933][ T3542] ? rwsem_write_trylock+0x166/0x210 [ 59.989218][ T3542] ? clear_nonspinnable+0x60/0x60 [ 59.994247][ T3542] ? ext4_reserve_inode_write+0x2b3/0x360 [ 59.999997][ T3542] ? dquot_initialize_needed+0x128/0x320 [ 60.005637][ T3542] __ext4_expand_extra_isize+0x2f7/0x3d0 [ 60.011279][ T3542] __ext4_mark_inode_dirty+0x54f/0x920 [ 60.016742][ T3542] ? ext4_blocks_for_truncate+0x270/0x270 [ 60.022463][ T3542] ? ext4_update_disksize_before_punch+0x360/0x360 [ 60.028971][ T3542] ext4_setattr+0x1493/0x1a00 [ 60.033654][ T3542] ? ext4_write_inode+0x740/0x740 [ 60.038678][ T3542] notify_change+0xdcd/0x1080 [ 60.043353][ T3542] do_truncate+0x21c/0x300 [ 60.047768][ T3542] ? put_page_bootmem+0x2e0/0x2e0 [ 60.052798][ T3542] ? ima_bprm_check+0x2b0/0x2b0 [ 60.057642][ T3542] ? bpf_lsm_path_truncate+0x5/0x10 [ 60.062840][ T3542] path_openat+0x27e2/0x2e60 [ 60.067459][ T3542] ? do_filp_open+0x480/0x480 [ 60.072138][ T3542] do_filp_open+0x230/0x480 [ 60.076637][ T3542] ? vfs_tmpfile+0x4a0/0x4a0 [ 60.081240][ T3542] ? _raw_spin_unlock+0x24/0x40 [ 60.086081][ T3542] ? alloc_fd+0x59c/0x640 [ 60.090495][ T3542] do_sys_openat2+0x13b/0x500 [ 60.095178][ T3542] ? do_sys_open+0x220/0x220 [ 60.099781][ T3542] ? restore_fpregs_from_fpstate+0xfc/0x230 [ 60.105685][ T3542] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 60.111663][ T3542] __x64_sys_creat+0x11f/0x160 [ 60.116447][ T3542] ? __x64_compat_sys_openat+0x290/0x290 [ 60.122207][ T3542] ? syscall_enter_from_user_mode+0x2e/0x220 [ 60.128287][ T3542] ? lockdep_hardirqs_on+0x94/0x130 [ 60.133510][ T3542] ? syscall_enter_from_user_mode+0x2e/0x220 [ 60.139590][ T3542] do_syscall_64+0x3d/0xb0 [ 60.144019][ T3542] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.149914][ T3542] RIP: 0033:0x7fade32f6c59 [ 60.154331][ T3542] 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 [ 60.173938][ T3542] RSP: 002b:00007ffe11482de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 60.182345][ T3542] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fade32f6c59 [ 60.190316][ T3542] RDX: 00007fade32f6c59 RSI: 0000000000000000 RDI: 0000000020000080 [ 60.198295][ T3542] RBP: 00007fade32b6260 R08: 0000000000000000 R09: 0000000000