Brooks Davis f2c99d387c Allocate a struct ifreq rather than using a (wrong) computed size for
the BIOCSETIF ioctl.

The kernel always copies an entire struct ifreq and IPv4 addresses will
always fit in an ifreq.

On systems with pointers larger than 64-bits, the computed size will be
less than the size of struct ifreq, potentially resulting in the kernel
attempting to copyin memory from outside the allocation.

Reviewed by:	jhb
Obtained from:	CheriBSD
MFC after:	1 week
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D8445
2016-11-22 22:45:15 +00:00
..
2016-10-05 19:49:48 +00:00
2016-10-05 20:01:09 +00:00
2016-10-08 12:53:23 +00:00
2016-10-05 20:08:07 +00:00
2016-10-02 23:26:41 +00:00
2016-10-02 23:30:28 +00:00
2016-05-02 01:40:31 +00:00
2016-10-05 20:31:44 +00:00
2016-10-02 23:48:33 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-04-19 04:52:13 +00:00
2016-04-19 04:52:51 +00:00
MFH
2016-04-04 23:55:32 +00:00
2016-11-13 00:11:30 +00:00
2016-10-02 23:56:08 +00:00
2016-10-05 20:42:35 +00:00
2016-10-05 20:45:21 +00:00
2016-11-10 18:41:43 +00:00
2016-10-03 00:40:20 +00:00
2016-10-03 00:42:25 +00:00
2015-06-13 19:20:56 +00:00
2016-04-20 01:35:09 +00:00