linux/drivers/s390
Harald Freudenberger b43088f30d s390/zcrypt: fix warning about field-spanning write
This patch fixes the warning

memcpy: detected field-spanning write (size 60) of single field "to" at drivers/s390/crypto/zcrypt_api.h:173 (size 2)
WARNING: CPU: 1 PID: 2114 at drivers/s390/crypto/zcrypt_api.h:173 prep_ep11_ap_msg+0x2c6/0x2e0 [zcrypt]

The code has been rewritten to use a union in combination
with a flex array to clearly state which part of the buffer
the payload is to be copied in via z_copy_from_user
function (which may call memcpy() in case of in-kernel calls).

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Suggested-by: Jürgen Christ <jchrist@linux.ibm.com>
Reviewed-by: Jürgen Christ <jchrist@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2022-11-02 22:15:57 +01:00
..
block s390 updates for the 6.1 merge window 2022-10-09 13:51:40 -07:00
char s390/vmur: generate uevent on unsolicited device end 2022-10-10 10:15:10 +02:00
cio s390/cio: fix out-of-bounds access on cio_ignore free 2022-10-26 14:47:31 +02:00
crypto s390/zcrypt: fix warning about field-spanning write 2022-11-02 22:15:57 +01:00
net s390 updates for the 6.1 merge window 2022-10-09 13:51:40 -07:00
scsi s390: move from strlcpy with unused retval to strscpy 2022-08-30 22:00:33 +02:00
virtio virtio: Revert "virtio: find_vqs() add arg sizes" 2022-08-16 01:40:24 -04:00
Makefile