Re: [PATCH v3] ext4: don't read past the UAPI struct in GROUP_ADD
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:48:37 EST
On Mon, 19 Oct 2026 21:16:55 +0800, Kaixuan Li wrote:
> EXT4_IOC_GROUP_ADD casts the user pointer to struct ext4_new_group_input,
> its UAPI type, but sizes the copy by struct ext4_new_group_data, the
> internal type:
>
> struct ext4_new_group_data input;
>
> if (copy_from_user(&input, (struct ext4_new_group_input __user *)arg,
> sizeof(input)))
>
> [...]
Applied, thanks!
[1/1] ext4: don't read past the UAPI struct in GROUP_ADD
commit: 24be37b56c51dd26c92a9a825f84746e1078d277
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>