Re: [PATCH v7 4/8] bus: mhi: core: Read transfer length from an event properly

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:44PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > When MHI Driver receives an EOT event, it reads xfer_len from the > event in the last TRE. The value is under control of the MHI device > and never validated by Host MHI driver. The value should never be > lar

[PATCH v7 4/8] bus: mhi: core: Read transfer length from an event properly

2020-05-08 Thread Bhaumik Bhatt
From: Hemant Kumar When MHI Driver receives an EOT event, it reads xfer_len from the event in the last TRE. The value is under control of the MHI device and never validated by Host MHI driver. The value should never be larger than the real size of the buffer but a malicious device can set the val