diff options
author | glebius <glebius@FreeBSD.org> | 2016-05-31 16:55:50 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2016-05-31 16:55:50 +0000 |
commit | 86a921b1ab9596bf698d84429aab86a4be596a80 (patch) | |
tree | b8e31e276dca4bc2d137885c1538abf3e89a9a05 /sys/compat | |
parent | a4a1ee276a9b4b2382dbed7d6d278b0a901a5d05 (diff) | |
download | FreeBSD-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/compat')
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 2 | ||||
-rw-r--r-- | sys/compat/linux/linux_misc.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 8858e2f..2002379 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -915,6 +915,8 @@ linux_ioctl_termio(struct thread *td, struct linux_ioctl_args *args) case LINUX_TIOCGSERIAL: { struct linux_serial_struct lss; + + bzero(&lss, sizeof(lss)); lss.type = LINUX_PORT_16550A; lss.flags = 0; lss.close_delay = 0; diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 538b9dc..abc489c 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -150,6 +150,7 @@ linux_sysinfo(struct thread *td, struct linux_sysinfo_args *args) int i, j; struct timespec ts; + bzero(&sysinfo, sizeof(sysinfo)); getnanouptime(&ts); if (ts.tv_nsec != 0) ts.tv_sec++; |