Re: [PATCH 2/2] mailbox: pcc: Serialize channel updates with shared memory teardown
From: Sudeep Holla
Date: Thu Sep 03 2026 - 08:47:04 EST
On Thu, Sep 03, 2026 at 12:13:28PM +0100, Christian Loehle wrote:
> mbox_free_channel() makes a PCC channel available before the subsequent
> shared-memory unmap. Without serialization, a concurrent request can bind a
> new client and replace the mapping, which the old release then unmaps.
>
> Serialize PCC channel acquisition and release. Keep the channel unavailable
> until the old shared-memory mapping has been removed.
>
> Suggested-by: Sudeep Holla <sudeep.holla@xxxxxxxxxx>
Reviewed-by: Sudeep Holla <sudeep.holla@xxxxxxxxxx>
--
Regards,
Sudeep