Re: [PATCH 2/2] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-08-31 Thread Tom Rini
On Fri, Aug 26, 2022 at 11:15:56PM +0200, Marek Vasut wrote: > This reinstates fix from commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409 > without the changes unrelated to the actual fix. Avoid the underflow by > setting only nbytes and linebytes as unsigned integers. > > Signed-off-by: Marek Vasu

Re: [PATCH 2/2] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-08-26 Thread Tim Harvey
On Fri, Aug 26, 2022 at 3:21 PM Tim Harvey wrote: > > On Fri, Aug 26, 2022 at 2:16 PM Marek Vasut wrote: > > > > This reinstates fix from commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409 > > without the changes unrelated to the actual fix. Avoid the underflow by > > setting only nbytes and linebyt

Re: [PATCH 2/2] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-08-26 Thread Tim Harvey
On Fri, Aug 26, 2022 at 2:16 PM Marek Vasut wrote: > > This reinstates fix from commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409 > without the changes unrelated to the actual fix. Avoid the underflow by > setting only nbytes and linebytes as unsigned integers. > > Signed-off-by: Marek Vasut > Cc:

[PATCH 2/2] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-08-26 Thread Marek Vasut
This reinstates fix from commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409 without the changes unrelated to the actual fix. Avoid the underflow by setting only nbytes and linebytes as unsigned integers. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nicolas Iooss Cc: Simon Glass Cc: Tim Harve