freebsd-dev/sys/boot/zfs
Allan Jude 076b613091 DIOCGSECTORSIZE expects to write to a u_int, but struct zfs_probe_args
member secsz was a uint16_t

sys/boot/zfs/zfs.c has a probe args structure member, secsz, that is a
uint16_t for media sector size; it is used as an argument for ioctl()
at line 484. however, this ioctl writes 32 bits of data (u_int *) and
therefore this ioctl will overwrite and corrupt 16 bits of memory.
other use cases seem to use correct u_int type for secsz.

PR:		204358
Submitted by:	Toomas Soome <tsoome at me.com>
Reviewed by:	asomers, delphij, smh
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D4811
2016-01-11 15:35:29 +00:00
..
devicename_stubs.c
libzfs.h Introduce the ZFS Boot Environments menu to the loader menu 2015-12-31 20:00:53 +00:00
Makefile Use CFLAGS_NO_SIMD in preference to varying lists of -mno-xxxx flags. 2015-08-27 23:46:42 +00:00
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
zfs.c DIOCGSECTORSIZE expects to write to a u_int, but struct zfs_probe_args 2016-01-11 15:35:29 +00:00
zfsimpl.c Introduce the ZFS Boot Environments menu to the loader menu 2015-12-31 20:00:53 +00:00