Re: [PATCH V1] rpmsg: glink: smem: validate index before fifo read write

2023-12-07 Thread Bjorn Andersson
On Fri, Dec 01, 2023 at 04:36:31PM +0530, Deepak Kumar Singh wrote: > Fifo head and tail index can be modified with wrong values from > untrusted remote procs. Glink smem is not validating these index > before using to read or write fifo. This can result in out of > bound memory access if head and

[PATCH V1] rpmsg: glink: smem: validate index before fifo read write

2023-12-01 Thread Deepak Kumar Singh
Fifo head and tail index can be modified with wrong values from untrusted remote procs. Glink smem is not validating these index before using to read or write fifo. This can result in out of bound memory access if head and tail have incorrect values. Add check for validation of head and tail