1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

linuxulator: fix stack memory disclosure in linux_sigaltstack

admbugs:	765
Reported by:	Vlad Tsyrklevich <vlad@tsyrklevich.net>
Reviewed by:	andrew
MFC after:	1 day
Security:	Kernel memory disclosure
Sponsored by:   The FreeBSD Foundation
This commit is contained in:
Ed Maste 2019-01-21 16:25:40 +00:00
parent 9866e7bbae
commit 1b1f24b936
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343262

View File

@ -201,6 +201,7 @@ linux_sigaltstack(struct thread *td, struct linux_sigaltstack_args *uap)
l_stack_t lss;
int error;
memset(&lss, 0, sizeof(lss));
LINUX_CTR2(sigaltstack, "%p, %p", uap->uss, uap->uoss);
if (uap->uss != NULL) {