linux-sg2042/drivers/misc/ibmasm
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: 1da177e4c3 ("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
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
command.c misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
dot_command.c misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
dot_command.h misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
event.c misc: ibmasm: Return error on error path 2017-10-12 15:37:19 +02:00
heartbeat.c misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
i2o.h misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
ibmasm.h misc: ibmasm: Replace timeval with timespec64 2016-02-11 20:06:46 -08:00
ibmasmfs.c ibmasm: don't write out of bounds in read handler 2018-07-07 09:59:35 +02:00
lowlevel.c misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
lowlevel.h misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
module.c misc: ibmasm: Return error on error path 2017-10-12 15:37:19 +02:00
r_heartbeat.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
remote.c
remote.h misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
uart.c 8250: three way resolve of the 8250 diffs 2012-07-17 09:11:50 -07:00