------------[ cut here ]------------ WARNING: CPU: 0 PID: 23145 at fs/ext4/xattr.c:2069 ext4_xattr_block_set+0x315f/0x3920 Modules linked in: CPU: 0 PID: 23145 Comm: syz-executor.4 Not tainted 6.1.0-rc4-syzkaller-00020-gf67dd6ce0723 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:ext4_xattr_block_set+0x315f/0x3920 fs/ext4/xattr.c:2069 Code: eb 41 ff 48 8b 7c 24 58 4c 89 fe e8 5b 60 c2 ff 45 31 e4 e9 24 f5 ff ff e8 6e eb 41 ff 45 31 e4 e9 17 f5 ff ff e8 61 eb 41 ff <0f> 0b e9 4e f2 ff ff e8 55 eb 41 ff 0f 0b e9 22 df ff ff 44 89 f9 RSP: 0018:ffffc9000be263a0 EFLAGS: 00010287 RAX: ffffffff8245f4bf RBX: ffffc9000be264e8 RCX: 0000000000040000 RDX: ffffc90014938000 RSI: 00000000000032d7 RDI: 00000000000032d8 RBP: ffffc9000be265f0 R08: ffffffff820be9b9 R09: ffffed10072a4b23 R10: ffffed10072a4b23 R11: 1ffff110072a4b22 R12: ffff888032ce02b0 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11003c3ebd5 FS: 00007f7cee08f700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2d3d66e0f2 CR3: 00000000216b9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_xattr_move_to_block fs/ext4/xattr.c:2604 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2673 [inline] ext4_expand_extra_isize_ea+0x137b/0x1cd0 fs/ext4/xattr.c:2765 __ext4_expand_extra_isize+0x2b8/0x3f0 fs/ext4/inode.c:5857 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5900 [inline] __ext4_mark_inode_dirty+0x51a/0x670 fs/ext4/inode.c:5978 ext4_dirty_inode+0xbe/0x100 fs/ext4/inode.c:6010 __mark_inode_dirty+0x1e7/0x600 fs/fs-writeback.c:2400 generic_update_time fs/inode.c:1859 [inline] inode_update_time fs/inode.c:1872 [inline] touch_atime+0x3d3/0x630 fs/inode.c:1944 file_accessed include/linux/fs.h:2521 [inline] filemap_read+0xd68/0xea0 mm/filemap.c:2743 __kernel_read+0x3fc/0x830 fs/read_write.c:428 integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:199 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x178f/0x1ca0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x444/0x8c0 security/integrity/ima/ima_api.c:292 process_measurement+0xf4b/0x1bd0 security/integrity/ima/ima_main.c:337 ima_file_check+0xd8/0x130 security/integrity/ima/ima_main.c:517 do_open fs/namei.c:3559 [inline] path_openat+0x2642/0x2df0 fs/namei.c:3713 do_filp_open+0x264/0x4f0 fs/namei.c:3740 do_sys_openat2+0x124/0x4e0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7ced28b639 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7cee08f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f7ced3abf80 RCX: 00007f7ced28b639 RDX: 0000000000000014 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007f7ced2e67e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffce4c7415f R14: 00007f7cee08f300 R15: 0000000000022000