]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxulator: fix stack memory disclosure in linux_sigaltstack
authoremaste <emaste@FreeBSD.org>
Mon, 21 Jan 2019 17:12:16 +0000 (17:12 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 21 Jan 2019 17:12:16 +0000 (17:12 +0000)
commit3bb289571c987005b1c9e3c7bbb0cb1a040ec873
treedb64ba91dcd1e204ebe0a0604eaba96a48cfc1f9
parent753279d8806871383fbc3af51d9117cbee40db0c
linuxulator: fix stack memory disclosure in linux_sigaltstack

Most siginfo_to_lsiginfo callers already zeroed the l_siginfo_t before
callit it, but linux_waitid did not.  Instead of zeroing in the called
function to address linux_waitid (as in commit 2e6ebe70), just do it in
linux_waitid.

admbugs: 765
Reported by: Vlad Tsyrklevich <vlad@tsyrklevich.net>
Reviewed by: Andrew
MFC after: 1 day
Security: Kernel stack memory disclosure
Sponsored by: The FreeBSD Foundation
sys/compat/linux/linux_misc.c