mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +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:
parent
9866e7bbae
commit
1b1f24b936
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343262
@ -201,6 +201,7 @@ linux_sigaltstack(struct thread *td, struct linux_sigaltstack_args *uap)
|
|||||||
l_stack_t lss;
|
l_stack_t lss;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
|
memset(&lss, 0, sizeof(lss));
|
||||||
LINUX_CTR2(sigaltstack, "%p, %p", uap->uss, uap->uoss);
|
LINUX_CTR2(sigaltstack, "%p, %p", uap->uss, uap->uoss);
|
||||||
|
|
||||||
if (uap->uss != NULL) {
|
if (uap->uss != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user