Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Florian Fainelli
On 8/22/2020 1:47 PM, Markus Mayer wrote: On Sat, 22 Aug 2020 at 13:21, Florian Fainelli wrote: On 8/22/2020 1:14 PM, Markus Mayer wrote: On Sat, 22 Aug 2020 at 09:46, Krzysztof Kozlowski wrote: On Sat, Aug 22, 2020 at 09:40:59AM -0700, Markus Mayer wrote: On Sat, 22 Aug 2020 at 04:56,

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Markus Mayer
On Sat, 22 Aug 2020 at 13:46, Krzysztof Kozlowski wrote: > > On Sat, Aug 22, 2020 at 01:21:47PM -0700, Florian Fainelli wrote: > > > > > > On 8/22/2020 1:14 PM, Markus Mayer wrote: > > > On Sat, 22 Aug 2020 at 09:46, Krzysztof Kozlowski wrote: > > > > > > > > On Sat, Aug 22, 2020 at 09:40:59AM -0

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Markus Mayer
On Sat, 22 Aug 2020 at 13:21, Florian Fainelli wrote: > > On 8/22/2020 1:14 PM, Markus Mayer wrote: > > On Sat, 22 Aug 2020 at 09:46, Krzysztof Kozlowski wrote: > >> > >> On Sat, Aug 22, 2020 at 09:40:59AM -0700, Markus Mayer wrote: > >>> On Sat, 22 Aug 2020 at 04:56, Krzysztof Kozlowski wrote:

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Krzysztof Kozlowski
On Sat, Aug 22, 2020 at 01:21:47PM -0700, Florian Fainelli wrote: > > > On 8/22/2020 1:14 PM, Markus Mayer wrote: > > On Sat, 22 Aug 2020 at 09:46, Krzysztof Kozlowski wrote: > > > > > > On Sat, Aug 22, 2020 at 09:40:59AM -0700, Markus Mayer wrote: > > > > On Sat, 22 Aug 2020 at 04:56, Krzyszto

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Florian Fainelli
On 8/22/2020 1:14 PM, Markus Mayer wrote: On Sat, 22 Aug 2020 at 09:46, Krzysztof Kozlowski wrote: On Sat, Aug 22, 2020 at 09:40:59AM -0700, Markus Mayer wrote: On Sat, 22 Aug 2020 at 04:56, Krzysztof Kozlowski wrote: On Fri, Aug 21, 2020 at 09:52:21AM -0700, Markus Mayer wrote: We wou

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Markus Mayer
On Sat, 22 Aug 2020 at 09:46, Krzysztof Kozlowski wrote: > > On Sat, Aug 22, 2020 at 09:40:59AM -0700, Markus Mayer wrote: > > On Sat, 22 Aug 2020 at 04:56, Krzysztof Kozlowski wrote: > > > > > > On Fri, Aug 21, 2020 at 09:52:21AM -0700, Markus Mayer wrote: > > > > We would overrun the error_text

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Krzysztof Kozlowski
On Sat, Aug 22, 2020 at 09:40:59AM -0700, Markus Mayer wrote: > On Sat, 22 Aug 2020 at 04:56, Krzysztof Kozlowski wrote: > > > > On Fri, Aug 21, 2020 at 09:52:21AM -0700, Markus Mayer wrote: > > > We would overrun the error_text array if we hit a TIMEOUT condition, > > > because we were using the

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Markus Mayer
On Sat, 22 Aug 2020 at 04:56, Krzysztof Kozlowski wrote: > > On Fri, Aug 21, 2020 at 09:52:21AM -0700, Markus Mayer wrote: > > We would overrun the error_text array if we hit a TIMEOUT condition, > > because we were using the error code "ETIMEDOUT" (which is 110) as an > > array index. > > > > We

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 09:52:21AM -0700, Markus Mayer wrote: > We would overrun the error_text array if we hit a TIMEOUT condition, > because we were using the error code "ETIMEDOUT" (which is 110) as an > array index. > > We fix the problem by correcting the array index and by providing a > func