]> git.baikalelectronics.ru Git - kernel.git/commit
s390/crypto: explicitly memzero stack key material in aes_s390.c
authorTorsten Duwe <duwe@suse.de>
Tue, 25 Feb 2020 14:34:30 +0000 (15:34 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 27 Feb 2020 15:02:21 +0000 (16:02 +0100)
commitad3169f84d59b13cb6ae6e6c93ff173d4c5df819
tree4c42b6a1b4f5cbc506bd574474dc8b1f0f9c2fa3
parent658d0893fec82b8d5f7ab7361b2bb7356bf877e0
s390/crypto: explicitly memzero stack key material in aes_s390.c

aes_s390.c has several functions which allocate space for key material on
the stack and leave the used keys there. It is considered good practice
to clean these locations before the function returns.

Link: https://lkml.kernel.org/r/20200221165511.GB6928@lst.de
Signed-off-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/crypto/aes_s390.c