Commit e24f6fbc authored by Holger Dengler's avatar Holger Dengler Committed by Peng Zhang
Browse files

s390/pkey: Wipe sensitive data on failure

mainline inclusion
from mainline-v6.10-rc1
commit 1d8c270de5eb74245d72325d285894a577a945d9
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAGSLY
CVE: CVE-2024-42157

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1d8c270de5eb74245d72325d285894a577a945d9



---------------------------------------------------------

Wipe sensitive data from stack also if the copy_to_user() fails.

Suggested-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Reviewed-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
Reviewed-by: default avatarIngo Franzki <ifranzki@linux.ibm.com>
Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarHolger Dengler <dengler@linux.ibm.com>
Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: default avatarZhangPeng <zhangpeng362@huawei.com>
parent c84d316d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment