summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_ioctl.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2016-05-31 16:56:30 +0000
committerglebius <glebius@FreeBSD.org>2016-05-31 16:56:30 +0000
commita0c5a05de8c90bcf66b7d5f1a3beb895cc5e05f6 (patch)
tree8818877ea9b49362b5c39d39a7ff3c30d165cfa0 /sys/compat/linux/linux_ioctl.c
parentff690eb3c3a8504be572207b54b2f6e27a98f77a (diff)
downloadFreeBSD-src-a0c5a05de8c90bcf66b7d5f1a3beb895cc5e05f6.zip
FreeBSD-src-a0c5a05de8c90bcf66b7d5f1a3beb895cc5e05f6.tar.gz
Fix kernel stack disclosures in the Linux and 4.3BSD compat layers.
Submitted by: CTurt Security: SA-16:20 Security: SA-16:21
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
-rw-r--r--sys/compat/linux/linux_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 09c0720..824bcf0 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -916,6 +916,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;
OpenPOWER on IntegriCloud