Re: [PATCH] ecryptfs: hold msg ctx list lock when cleaning daemon queue
Tyler Hicks <[email protected]> Tue, 21 Jul 2026 02:28:25 -0500
| Newsgroups | org.kernel.vger.ecryptfs,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178461834999.30963.8777218643183392058.b4-ty@b4> |
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