diff options
| author | Tim Sell <[email protected]> | 2016-03-01 19:45:03 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-03-01 19:14:07 -0800 |
| commit | c732623b0bb3631d61203e1e9f87bee34b7fd169 (patch) | |
| tree | 18b74a00401b335379a6c2ad2691532225296ae9 /tools/perf/scripts/python | |
| parent | a8deaef37012aecc920996dd5a064b2417d9cbfa (diff) | |
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 <[email protected]>
Signed-off-by: David Kershner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions