]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: Fix ZCRYPT_PERDEV_REQCNT ioctl
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 21 Sep 2020 10:48:36 +0000 (12:48 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 24 Sep 2020 07:57:24 +0000 (09:57 +0200)
commitaa9d1abaf1060bb1fd816e89b49a91ef772f18d3
tree2a123dc2d673aaff38b42580e5990cc280cfc4d4
parentb0e5781a19ed88b82bc3a52fa6c2d0dacc709a66
s390/zcrypt: Fix ZCRYPT_PERDEV_REQCNT ioctl

reqcnt is an u32 pointer but we do copy sizeof(reqcnt) which is the
size of the pointer. This means we only copy 8 byte. Let us copy
the full monty.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Harald Freudenberger <freude@linux.ibm.com>
Cc: stable@vger.kernel.org
Fixes: 0770d53a8395 ("s390/zcrypt: Support up to 256 crypto adapters.")
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_api.c