------------[ cut here ]------------ kernel BUG at mm/slub.c:4184! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 25054 Comm: syz-executor.4 Not tainted 5.10.178-syzkaller-00127-g43c801dc3325 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/2023 RIP: 0010:kfree+0x269/0x270 mm/slub.c:4184 Code: 08 4c 89 ee 48 89 da e8 d5 64 f2 ff 65 ff 0d 7a 74 5b 7e 0f 85 d2 fd ff ff e8 bf 85 59 ff e9 c8 fd ff ff e8 a9 c0 02 03 0f 0b <0f> 0b 0f 1f 44 00 00 55 48 89 e5 53 48 83 ec 18 89 f2 65 48 8b 04 RSP: 0018:ffffc900026473e0 EFLAGS: 00010246 RAX: ffffea0005938888 RBX: ffff888160c2a5a4 RCX: ffffea0005830a80 RDX: ffffc9000374f000 RSI: 0000000000000c59 RDI: ffff888160c2a5a4 RBP: ffffc90002647438 R08: ffffffff81ed6e69 R09: ffffc9000264719c R10: 000000003ee3efa3 R11: 000000006b022586 R12: 0000000000000000 R13: ffffffff8197a405 R14: 0000000000000000 R15: ffffea0005830a80 FS: 00007fe304a1d700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb230b6e9d0 CR3: 000000017768e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvfree+0x35/0x40 mm/util.c:647 ext4_xattr_move_to_block fs/ext4/xattr.c:2643 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2706 [inline] ext4_expand_extra_isize_ea+0x1124/0x1e60 fs/ext4/xattr.c:2798 __ext4_expand_extra_isize+0x303/0x3f0 fs/ext4/inode.c:5928 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5971 [inline] __ext4_mark_inode_dirty+0x4a7/0x7b0 fs/ext4/inode.c:6048 ext4_set_acl+0x486/0x720 fs/ext4/acl.c:259 set_posix_acl fs/posix_acl.c:878 [inline] posix_acl_xattr_set+0x357/0x3d0 fs/posix_acl.c:896 __vfs_setxattr+0x404/0x450 fs/xattr.c:177 __vfs_setxattr_noperm+0x11d/0x4f0 fs/xattr.c:208 __vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266 vfs_setxattr+0x112/0x2c0 fs/xattr.c:283 setxattr+0x1ea/0x3f0 fs/xattr.c:548 path_setxattr+0x169/0x240 fs/xattr.c:567 __do_sys_lsetxattr fs/xattr.c:589 [inline] __se_sys_lsetxattr fs/xattr.c:585 [inline] __x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:585 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7fe305caa169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe304a1d168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fe305dc9f80 RCX: 00007fe305caa169 RDX: 0000000020000240 RSI: 00000000200000c0 RDI: 0000000020000080 RBP: 00007fe305d05ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000003c R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4def09bf R14: 00007fe304a1d300 R15: 0000000000022000 Modules linked in: ---[ end trace a0305d3d9a3b381d ]--- RIP: 0010:kfree+0x269/0x270 mm/slub.c:4184 Code: 08 4c 89 ee 48 89 da e8 d5 64 f2 ff 65 ff 0d 7a 74 5b 7e 0f 85 d2 fd ff ff e8 bf 85 59 ff e9 c8 fd ff ff e8 a9 c0 02 03 0f 0b <0f> 0b 0f 1f 44 00 00 55 48 89 e5 53 48 83 ec 18 89 f2 65 48 8b 04 RSP: 0018:ffffc900026473e0 EFLAGS: 00010246 RAX: ffffea0005938888 RBX: ffff888160c2a5a4 RCX: ffffea0005830a80 RDX: ffffc9000374f000 RSI: 0000000000000c59 RDI: ffff888160c2a5a4 RBP: ffffc90002647438 R08: ffffffff81ed6e69 R09: ffffc9000264719c R10: 000000003ee3efa3 R11: 000000006b022586 R12: 0000000000000000 R13: ffffffff8197a405 R14: 0000000000000000 R15: ffffea0005830a80 FS: 00007fe304a1d700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000017768e000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400