Jann Horn a0341fc198 ibmasm: don't write out of bounds in read handler
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: stable@vger.kernel.org
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-07 09:59:35 +02:00
..
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00