freebsd-skq/sys/compat/freebsd32
Eric van Gyzen 4cf66812ea nanosleep: plug a kernel memory disclosure
nanosleep() updates rmtp on EINVAL.  In that case, kern_nanosleep()
has not updated rmt, so sys_nanosleep() updates the user-space rmtp
by copying garbage from its stack frame.  This is not only a kernel
memory disclosure, it's also not POSIX-compliant.  Fix it to update
rmtp only on EINTR.

Reviewed by:	jilles (via D10020), dchagin
MFC after:	3 days
Security:	possibly
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D10044
2017-03-18 20:16:23 +00:00
..
capabilities.conf Add compat32 support for capsicum. 2016-09-18 22:03:07 +00:00
freebsd32_capability.c Add compat32 support for capsicum. 2016-09-18 22:03:07 +00:00
freebsd32_ioctl.c Remove a pointless translation of struct ioc_toc_header. 2016-09-08 00:38:50 +00:00
freebsd32_ioctl.h Remove a pointless translation of struct ioc_toc_header. 2016-09-08 00:38:50 +00:00
freebsd32_ipc.h Add shmatt_t. 2016-07-26 17:23:49 +00:00
freebsd32_misc.c nanosleep: plug a kernel memory disclosure 2017-03-18 20:16:23 +00:00
freebsd32_misc.h
freebsd32_proto.h Regenerate all the system call tables to drop "created from" lines. 2017-02-10 19:45:02 +00:00
freebsd32_signal.h
freebsd32_syscall.h Regenerate all the system call tables to drop "created from" lines. 2017-02-10 19:45:02 +00:00
freebsd32_syscalls.c Regenerate all the system call tables to drop "created from" lines. 2017-02-10 19:45:02 +00:00
freebsd32_sysent.c Regenerate all the system call tables to drop "created from" lines. 2017-02-10 19:45:02 +00:00
freebsd32_systrace_args.c Regen after r310638. 2016-12-27 20:22:17 +00:00
freebsd32_util.h Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
freebsd32.h Export the whole thread name in kinfo_proc 2016-12-07 15:04:22 +00:00
Makefile Add compat32 support for capsicum. 2016-09-18 22:03:07 +00:00
syscalls.conf
syscalls.master Rename the 'flags' argument to getfsstat() to 'mode' and validate it. 2016-12-27 20:21:11 +00:00