Re: [PATCH] ecryptfs: hold msg ctx list lock when cleaning daemon queue
From: Tyler Hicks
Date: Tue Jul 21 2026 - 03:29:54 EST
On Sun, 28 Jun 2026 11:37:25 +0800, Yichong Chen wrote:
> ecryptfs_exorcise_daemon() drops queued messages from a dying daemon
> without holding ecryptfs_msg_ctx_lists_mux, but
> ecryptfs_msg_ctx_alloc_to_free() requires that lock.
>
> Take the list lock while moving the queued contexts back to the free
> list to avoid racing with other global msg ctx list users.
>
> [...]
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: hold msg ctx list lock when cleaning daemon queue
https://git.kernel.org/tyhicks/ecryptfs/c/779972513c2fa8c7938e54976f686091dafff22f
Tyler