Re: [PATCH] dell-wmi: Fix access out of memory

2014-10-12 Thread Darren Hart
On Sun, Oct 12, 2014 at 06:45:06PM +0200, Pali Rohár wrote: > On Tuesday 30 September 2014 01:16:23 Darren Hart wrote: > > On September 29, 2014 4:26:03 PM PDT, "Rafael J. Wysocki" > wrote: > > >On Monday, September 29, 2014 02:30:29 PM Darren Hart wrote: > > >> On Mon, Sep 29, 2014 at 03:10:51PM

Re: [PATCH] dell-wmi: Fix access out of memory

2014-10-12 Thread Pali Rohár
On Tuesday 30 September 2014 01:16:23 Darren Hart wrote: > On September 29, 2014 4:26:03 PM PDT, "Rafael J. Wysocki" wrote: > >On Monday, September 29, 2014 02:30:29 PM Darren Hart wrote: > >> On Mon, Sep 29, 2014 at 03:10:51PM +0200, Pali Rohár wrote: > >> > Without this patch driver dell-wmi is

Re: [PATCH] dell-wmi: Fix access out of memory

2014-09-29 Thread Darren Hart
On September 29, 2014 4:26:03 PM PDT, "Rafael J. Wysocki" wrote: >On Monday, September 29, 2014 02:30:29 PM Darren Hart wrote: >> On Mon, Sep 29, 2014 at 03:10:51PM +0200, Pali Rohár wrote: >> > Without this patch driver dell-wmi is trying to access elements of >dynamically >> > allocated array

Re: [PATCH] dell-wmi: Fix access out of memory

2014-09-29 Thread Rafael J. Wysocki
On Monday, September 29, 2014 02:30:29 PM Darren Hart wrote: > On Mon, Sep 29, 2014 at 03:10:51PM +0200, Pali Rohár wrote: > > Without this patch driver dell-wmi is trying to access elements of > > dynamically > > allocated array without checking array size. This can lead to memory > > corruption

Re: [PATCH] dell-wmi: Fix access out of memory

2014-09-29 Thread Darren Hart
On Mon, Sep 29, 2014 at 03:10:51PM +0200, Pali Rohár wrote: > Without this patch driver dell-wmi is trying to access elements of dynamically > allocated array without checking array size. This can lead to memory > corruption > or kernel panic. This patch adds missing checks for array size. > > Si

[PATCH] dell-wmi: Fix access out of memory

2014-09-29 Thread Pali Rohár
Without this patch driver dell-wmi is trying to access elements of dynamically allocated array without checking array size. This can lead to memory corruption or kernel panic. This patch adds missing checks for array size. Signed-off-by: Pali Rohár --- This patch should be probably applied to sta