Re: [PATCH RESEND] ecryptfs: Use struct_size to improve process_response + send_miscdev

Tyler Hicks <[email protected]> Thu, 26 Mar 2026 00:01:57 -0500
Newsgroups org.kernel.vger.ecryptfs,org.kernel.vger.linux-kernel
Message-ID <177450083116.1953525.9264734396937294527.b4-ty@b4>
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