linux/drivers/misc/ibmasm
Jann Horn 232b41dd73 ibmasm: don't write out of bounds in read handler
commit a0341fc198 upstream.

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")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-11-20 18:05:38 +00: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 latin1 to utf8 conversions 2012-01-02 13:04:55 +01: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 latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
ibmasmfs.c ibmasm: don't write out of bounds in read handler 2018-11-20 18:05:38 +00: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
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
module.c misc: ibmasm: remove unnecessary pci_set_drvdata() 2013-09-26 09:13:54 -07:00
r_heartbeat.c misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
remote.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
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