]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
s390/zcrypt: fix kmalloc 256k failure
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 9 Sep 2020 09:59:43 +0000 (11:59 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:46:59 +0000 (14:46 +0100)
commitc7d83fbb1f92ad16338f1ef03745304b730c0839
tree368a8509252eded3627f8b4f9156bdee225f8f5c
parent83a5aa4590729ed39e8ab23f6b2b29e4767400b9
s390/zcrypt: fix kmalloc 256k failure

BugLink: https://bugs.launchpad.net/bugs/1896828
commit b6186d7fb53349efd274263a45f0b08749ccaa2d upstream.

Tests showed that under stress conditions the kernel may
temporary fail to allocate 256k with kmalloc. However,
this fix reworks the related code in the cca_findcard2()
function to use kvmalloc instead.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/s390/crypto/zcrypt_ccamisc.c