svn commit: r301055 - in stable/9/sys: compat/linux kern
Gleb Smirnoff
glebius at FreeBSD.org
Tue May 31 16:58:02 UTC 2016
Author: glebius
Date: Tue May 31 16:58:00 2016
New Revision: 301055
URL: https://svnweb.freebsd.org/changeset/base/301055
Log:
Merge r301053:
Fix kernel stack disclosures in the Linux and 4.3BSD compat layers.
Security: SA-16:20
Security: SA-16:21
Modified:
stable/9/sys/compat/linux/linux_ioctl.c
stable/9/sys/compat/linux/linux_misc.c
stable/9/sys/kern/vfs_syscalls.c
Directory Properties:
stable/9/ (props changed)
stable/9/sys/ (props changed)
Modified: stable/9/sys/compat/linux/linux_ioctl.c
==============================================================================
--- stable/9/sys/compat/linux/linux_ioctl.c Tue May 31 16:57:42 2016 (r301054)
+++ stable/9/sys/compat/linux/linux_ioctl.c Tue May 31 16:58:00 2016 (r301055)
@@ -911,6 +911,8 @@ linux_ioctl_termio(struct thread *td, st
case LINUX_TIOCGSERIAL: {
struct linux_serial_struct lss;
+
+ bzero(&lss, sizeof(lss));
lss.type = LINUX_PORT_16550A;
lss.flags = 0;
lss.close_delay = 0;
Modified: stable/9/sys/compat/linux/linux_misc.c
==============================================================================
--- stable/9/sys/compat/linux/linux_misc.c Tue May 31 16:57:42 2016 (r301054)
+++ stable/9/sys/compat/linux/linux_misc.c Tue May 31 16:58:00 2016 (r301055)
@@ -138,6 +138,7 @@ linux_sysinfo(struct thread *td, struct
int i, j;
struct timespec ts;
+ bzero(&sysinfo, sizeof(sysinfo));
getnanouptime(&ts);
if (ts.tv_nsec != 0)
ts.tv_sec++;
Modified: stable/9/sys/kern/vfs_syscalls.c
==============================================================================
--- stable/9/sys/kern/vfs_syscalls.c Tue May 31 16:57:42 2016 (r301054)
+++ stable/9/sys/kern/vfs_syscalls.c Tue May 31 16:58:00 2016 (r301055)
@@ -2326,6 +2326,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;
More information about the svn-src-stable-9
mailing list