summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2018-04-03 09:40:52 +0000
committerkib <kib@FreeBSD.org>2018-04-03 09:40:52 +0000
commit6cbc066578e9d120086a39fffc9fb76f3a2ae3b1 (patch)
tree59032ea23692cf5b587ee6075c4d2e7bede053c1 /sys/compat
parent7d8652ed0452aa789ef4f73f59b3996eb08be8b4 (diff)
downloadFreeBSD-src-6cbc066578e9d120086a39fffc9fb76f3a2ae3b1.zip
FreeBSD-src-6cbc066578e9d120086a39fffc9fb76f3a2ae3b1.tar.gz
MFC r331640:
Fix several leaks of kernel stack data through paddings.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 8f46640..ad8d07c 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -2989,6 +2989,7 @@ freebsd32_kldstat(struct thread *td, struct freebsd32_kldstat_args *uap)
CP(*stat, *stat32, size);
bcopy(&stat->pathname[0], &stat32->pathname[0],
sizeof(stat->pathname));
+ stat32->version = version;
error = copyout(stat32, uap->stat, version);
}
free(stat, M_TEMP);
OpenPOWER on IntegriCloud