summaryrefslogtreecommitdiffstats
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorJan Glauber <jglauber@cavium.com>2018-04-09 17:45:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-16 09:18:23 +0200
commit3d3a603f096bfed660f395352733950ba92c4b5f (patch)
treec4e8cdddaf0844bce5148b6906c063d01aeeee9d /lib/pm-notifier-error-inject.c
parentdf54a248ba581d8950b26099ec2b153f232d2cee (diff)
downloadtalos-obmc-linux-3d3a603f096bfed660f395352733950ba92c4b5f.tar.gz
talos-obmc-linux-3d3a603f096bfed660f395352733950ba92c4b5f.zip
crypto: cavium - Fix fallout from CONFIG_VMAP_STACK
commit 37ff02acaa3d7be87ecb89f198a549ffd3ae2403 upstream. Enabling virtual mapped kernel stacks breaks the thunderx_zip driver. On compression or decompression the executing CPU hangs in an endless loop. The reason for this is the usage of __pa by the driver which does no longer work for an address that is not part of the 1:1 mapping. The zip driver allocates a result struct on the stack and needs to tell the hardware the physical address within this struct that is used to signal the completion of the request. As the hardware gets the wrong address after the broken __pa conversion it writes to an arbitrary address. The zip driver then waits forever for the completion byte to contain a non-zero value. Allocating the result struct from 1:1 mapped memory resolves this bug. Signed-off-by: Jan Glauber <jglauber@cavium.com> Reviewed-by: Robert Richter <rrichter@cavium.com> Cc: stable <stable@vger.kernel.org> # 4.14 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud