This is a note to let you know that I've just added the patch titled rpmsg: glink: Set tail pointer to 0 at end of FIFO to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: rpmsg-glink-set-tail-pointer-to-0-at-end-of-fifo.patch and it can be found in the queue-4.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 4623e8bf1de0b86e23a56cdb39a72f054e89c3bd Mon Sep 17 00:00:00 2001 From: Chris Lew <clew@xxxxxxxxxxxxxx> Date: Wed, 27 Jun 2018 18:19:57 -0700 Subject: rpmsg: glink: Set tail pointer to 0 at end of FIFO From: Chris Lew <clew@xxxxxxxxxxxxxx> commit 4623e8bf1de0b86e23a56cdb39a72f054e89c3bd upstream. When wrapping around the FIFO, the remote expects the tail pointer to be reset to 0 on the edge case where the tail equals the FIFO length. Fixes: caf989c350e8 ("rpmsg: glink: Introduce glink smem based transport") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Chris Lew <clew@xxxxxxxxxxxxxx> Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/rpmsg/qcom_glink_smem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/rpmsg/qcom_glink_smem.c +++ b/drivers/rpmsg/qcom_glink_smem.c @@ -119,7 +119,7 @@ static void glink_smem_rx_advance(struct tail = le32_to_cpu(*pipe->tail); tail += count; - if (tail > pipe->native.length) + if (tail >= pipe->native.length) tail -= pipe->native.length; *pipe->tail = cpu_to_le32(tail); Patches currently in stable-queue which might be from clew@xxxxxxxxxxxxxx are queue-4.14/rpmsg-glink-fix-rpmsg_register_device-err-handling.patch queue-4.14/rpmsg-glink-don-t-send-pending-rx_done-during-remove.patch queue-4.14/rpmsg-glink-fix-reuse-intents-memory-leak-issue.patch queue-4.14/rpmsg-glink-set-tail-pointer-to-0-at-end-of-fifo.patch queue-4.14/rpmsg-glink-put-an-extra-reference-during-cleanup.patch queue-4.14/rpmsg-glink-free-pending-deferred-work-on-remove.patch