diff options
author | 2020-09-21 12:48:36 +0200 | |
---|---|---|
committer | 2020-09-24 09:57:24 +0200 | |
commit | f7e80983f0cf470bb82036e73bff4d5a7daf8fc2 (patch) | |
tree | 2a123dc2d673aaff38b42580e5990cc280cfc4d4 /net/unix/af_unix.c | |
parent | Linux 5.9-rc6 (diff) | |
download | linux-dev-f7e80983f0cf470bb82036e73bff4d5a7daf8fc2.tar.xz linux-dev-f7e80983f0cf470bb82036e73bff4d5a7daf8fc2.zip |
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: af4a72276d49 ("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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions