1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/sys/cddl/contrib/opensolaris/uts
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
..
common Validate whether the zfs_cmd_t submitted from userland is not smaller than 2010-11-05 22:18:09 +00:00
intel Revamp locking a bit. This fixes three problems: 2010-09-12 14:12:16 +00:00
sparc Merge from vendor-sys/opensolaris: 2010-07-06 10:28:19 +00:00