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

2020-05-04 Thread Jeffrey Hugo
On 5/1/2020 8:32 PM, 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 larger than the real size of the

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

2020-05-01 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