summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2016-05-31 16:55:50 +0000
committerglebius <glebius@FreeBSD.org>2016-05-31 16:55:50 +0000
commit86a921b1ab9596bf698d84429aab86a4be596a80 (patch)
treeb8e31e276dca4bc2d137885c1538abf3e89a9a05 /sys/kern
parenta4a1ee276a9b4b2382dbed7d6d278b0a901a5d05 (diff)
downloadFreeBSD-src-86a921b1ab9596bf698d84429aab86a4be596a80.zip
FreeBSD-src-86a921b1ab9596bf698d84429aab86a4be596a80.tar.gz
Fix kernel stack disclosure in Linux compatibility layer. [SA-16:20]
Fix kernel stack disclosure in 4.3BSD compatibility layer. [SA-16:21] Security: SA-16:20 Security: SA-16:21 Approved by: so
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_syscalls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 4dafe75..7979e37 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -2197,6 +2197,7 @@ cvtstat(st, ost)
struct ostat *ost;
{
+ bzero(ost, sizeof(*ost));
ost->st_dev = st->st_dev;
ost->st_ino = st->st_ino;
ost->st_mode = st->st_mode;
OpenPOWER on IntegriCloud