Re: [PATCH] platform/chrome: cros_ec_dev - Fix security issue

2016-03-03 Thread Randy Dunlap
On 03/02/16 21:58, Gwendal Grignou wrote: > Add a check to prevent memory scribbe when sending an ioctl with .insize scribble > set so large that memory allocation argument overflows. > > Signed-off-by: Gwendal Grignou > --- >

Re: [PATCH] platform/chrome: cros_ec_dev - Fix security issue

2016-03-03 Thread Randy Dunlap
On 03/02/16 21:58, Gwendal Grignou wrote: > Add a check to prevent memory scribbe when sending an ioctl with .insize scribble > set so large that memory allocation argument overflows. > > Signed-off-by: Gwendal Grignou > --- >

[PATCH] platform/chrome: cros_ec_dev - Fix security issue

2016-03-02 Thread Gwendal Grignou
Add a check to prevent memory scribbe when sending an ioctl with .insize set so large that memory allocation argument overflows. Signed-off-by: Gwendal Grignou --- drivers/platform/chrome/cros_ec_dev.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-)

[PATCH] platform/chrome: cros_ec_dev - Fix security issue

2016-03-02 Thread Gwendal Grignou
Add a check to prevent memory scribbe when sending an ioctl with .insize set so large that memory allocation argument overflows. Signed-off-by: Gwendal Grignou --- drivers/platform/chrome/cros_ec_dev.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git