Re: [PATCH] ibmasm: don't write out of bounds in read handler

2018-07-07 Thread Greg Kroah-Hartman
On Sat, Jul 07, 2018 at 04:16:33AM +0200, Jann Horn wrote: > This read handler had a lot of custom logic and wrote outside the bounds of > the provided buffer. This could lead to kernel and userspace memory > corruption. Just use simple_read_from_buffer() with a stack buffer. > > Fixes: 1da177e4c3

[PATCH] ibmasm: don't write out of bounds in read handler

2018-07-06 Thread Jann Horn
This read handler had a lot of custom logic and wrote outside the bounds of the provided buffer. This could lead to kernel and userspace memory corruption. Just use simple_read_from_buffer() with a stack buffer. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: sta...@vger.kernel.org Signed-off-by: Jan