Re: [PATCH v2] ecryptfs: release message context on send failure

Tyler Hicks <[email protected]> Tue, 21 Jul 2026 02:29:56 -0500
Newsgroups org.kernel.vger.ecryptfs,org.kernel.vger.linux-kernel
Message-ID <178461834997.30963.3121844491716187512.b4-ty@b4>
On Wed, 01 Jul 2026 13:34:06 +0800, Yichong Chen wrote:
> ecryptfs_send_message_locked() moves a message context from the free
> list to the allocated list before sending the request to the userspace
> daemon.
> 
> If ecryptfs_send_miscdev() fails, the context is left on the
> allocated list and cannot be reused. Move it back to the free list on
> failure and clear the caller's pointer.
> 
> [...]

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: release message context on send failure
      https://git.kernel.org/tyhicks/ecryptfs/c/219644a3ad5518217b2d62cad6d2c36a2308c949

Tyler