1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/cddl
Xin LI b97a9057c2 Validate whether the zfs_cmd_t submitted from userland is not smaller than
what we have.  Without the check the kernel could accessing memory that
does not belong to the request struct.

Note that we do not test if the struct equals in size at this time, which
may faciliate forward compatibility with newer binaries.

Reviewed by:	pjd at MeetBSD CA '2010
MFC after:	1 week
2010-11-05 22:18:09 +00:00
..
boot/zfs
compat/opensolaris Pass a format string to panic() and to taskqueue_start_threads(). 2010-10-13 17:13:43 +00:00
contrib/opensolaris Validate whether the zfs_cmd_t submitted from userland is not smaller than 2010-11-05 22:18:09 +00:00
dev