Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-21 Thread Geert Uytterhoeven
Hi Jaehoon, On Wed, Feb 21, 2018 at 6:39 AM, Jaehoon Chung wrote: > On 02/20/2018 07:50 PM, Geert Uytterhoeven wrote: >> On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven >> wrote: >>> The hs_timing_cfg[] array is indexed using a value derived

Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-21 Thread Geert Uytterhoeven
Hi Jaehoon, On Wed, Feb 21, 2018 at 6:39 AM, Jaehoon Chung wrote: > On 02/20/2018 07:50 PM, Geert Uytterhoeven wrote: >> On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven >> wrote: >>> The hs_timing_cfg[] array is indexed using a value derived from the >>> "mshcN" alias in DT, which may lead

Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-20 Thread Jaehoon Chung
Hi Geert, On 02/20/2018 07:50 PM, Geert Uytterhoeven wrote: > On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven > wrote: >> The hs_timing_cfg[] array is indexed using a value derived from the >> "mshcN" alias in DT, which may lead to an out-of-bounds access. >> >> Fix

Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-20 Thread Jaehoon Chung
Hi Geert, On 02/20/2018 07:50 PM, Geert Uytterhoeven wrote: > On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven > wrote: >> The hs_timing_cfg[] array is indexed using a value derived from the >> "mshcN" alias in DT, which may lead to an out-of-bounds access. >> >> Fix this by adding a range

Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven wrote: > The hs_timing_cfg[] array is indexed using a value derived from the > "mshcN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: 7d92895208a008a2 ("mmc:

Re: [PATCH] mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:03 AM, Geert Uytterhoeven wrote: > The hs_timing_cfg[] array is indexed using a value derived from the > "mshcN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: 7d92895208a008a2 ("mmc: dw_mmc-k3: Fix out-of-bounds