Re: [RFC PATCH] rpmsg: glink: Add bounds check on tx path

2024-03-19 Thread Deepak Kumar Singh
On 1/29/2024 10:03 PM, Michal Koutný wrote: On Mon, Jan 29, 2024 at 04:18:36PM +0530, Deepak Kumar Singh wrote: There is already a patch posted for similar problem - https://lore.kernel.org/all/20231201110631.669085-1-quic_dee...@quicinc.com/ I was not aware, thanks for the pointer. Do y

Re: Re: [RFC PATCH] rpmsg: glink: Add bounds check on tx path

2024-01-29 Thread Michal Koutný
On Mon, Jan 29, 2024 at 04:18:36PM +0530, Deepak Kumar Singh wrote: > There is already a patch posted for similar problem - > https://lore.kernel.org/all/20231201110631.669085-1-quic_dee...@quicinc.com/ I was not aware, thanks for the pointer. Do you plan to update your patch to "just" bail-out

Re: [RFC PATCH] rpmsg: glink: Add bounds check on tx path

2024-01-29 Thread Deepak Kumar Singh
On 1/13/2024 5:55 AM, Michal Koutný wrote: Add bounds check on values read from shared memory in the tx path. In cases where the VM is misbehaving, the transport should exit and print a warning when bogus values may cause out of bounds to be read. Link: https://git.codelinaro.org/clo/la/kern

[RFC PATCH] rpmsg: glink: Add bounds check on tx path

2024-01-12 Thread Michal Koutný
Add bounds check on values read from shared memory in the tx path. In cases where the VM is misbehaving, the transport should exit and print a warning when bogus values may cause out of bounds to be read. Link: https://git.codelinaro.org/clo/la/kernel/msm-5.10/-/commit/32d9c3a2f2b6a4d1fc48d687119