Re: [PATCH] rpmsg: glink: smem: order FIFO read after availability check

Bjorn Andersson <[email protected]> Tue, 14 Jul 2026 12:38:36 -0500
Newsgroups org.kernel.vger.linux-remoteproc,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <[email protected]>
On Thu, 18 Jun 2026 00:16:39 -0700, Chunkai Deng wrote:
> glink_smem_rx_peek() reads the RX FIFO payload after the caller has
> determined data is available via glink_smem_rx_avail(), which reads the
> remote-updated head index. A control dependency between the head read
> and the subsequent payload read does not order the two loads, so the
> CPU may speculatively read the FIFO before observing the head update
> and consume stale data the remote has not yet published.
> 
> [...]

Applied, thanks!

[1/1] rpmsg: glink: smem: order FIFO read after availability check
      commit: 786439ad58763e04b91bc2ec5f590e463939f197

Best regards,
-- 
Bjorn Andersson <[email protected]>