2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-14 16:44:29 +08:00
linux-next/drivers/staging/unisys
Tim Sell c732623b0b staging: unisys: visorbus: tolerate larger-than-expected controlvm channel
Use the dynamic size of the controlvm channel (struct channel_header.size)
instead of the statically computed sizeof(struct controlvm_channel) when
determining the valid bounds for visorchannel_read() and
visorchannel_write().

This prevents an observed problem where kdump was failing because
controlvm_channel.local_crash_msg_offset was pointing beyond the statically
computed size of the channel, even though the channel was physically large
enough.  This was causing visorchannel_read() to unecessarily fail, because
we thought we were attempting to access memory outside of the channel.

Signed-off-by: Timothy Sell <timothy.sell@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-01 19:14:07 -08:00
..
Documentation staging: unisys: visorhid: rename to visorinput 2015-10-04 09:53:34 +01:00
include staging: unisys: iochannel.h add_phys_info needs u64 pfn 2016-02-25 22:41:48 -08:00
visorbus staging: unisys: visorbus: tolerate larger-than-expected controlvm channel 2016-03-01 19:14:07 -08:00
visorhba staging: unisys: Modify boolean assignment 2016-02-11 19:37:15 -08:00
visorinput staging: unisys: fix block comments in ultrainputreport.h 2016-02-11 19:37:15 -08:00
visornic staging: unisys: visornic: Remove create_singlethread_workqueue() 2016-03-01 19:14:07 -08:00
Kconfig staging: unisys: visorhid: rename to visorinput 2015-10-04 09:53:34 +01:00
MAINTAINERS staging: unisys: Update MAINTAINERS file 2016-03-01 19:14:07 -08:00
Makefile staging: unisys: visorhid: rename to visorinput 2015-10-04 09:53:34 +01:00
TODO staging: unisys: documentation and TODO tweaks 2015-09-12 18:24:43 -07:00