Re: [PATCH RESEND] ecryptfs: Use struct_size to improve process_response + send_miscdev
From: Tyler Hicks
Date: Thu Mar 26 2026 - 01:02:13 EST
On Thu, 05 Feb 2026 14:24:51 +0100, Thorsten Blum wrote:
> Use struct_size(), which provides additional compile-time checks for
> structures with flexible array members (e.g., __must_be_array()), to
> determine the allocation size for a new 'struct ecryptfs_message'.
>
> In send_miscdev(), reuse 'msg_size' instead of recalculating it.
>
>
> [...]
Thank you! This has been applied to the next branch of the tyhicks/ecryptfs.git tree.
You can find a direct link below but please be aware that the commit hash is
unstable and, therefore, the URL may not be valid in the future.
[1/1] ecryptfs: Use struct_size to improve process_response + send_miscdev
https://git.kernel.org/tyhicks/ecryptfs/c/8b9bf58bc3a6f148d990bb697a3b6dbb11672f86
Tyler