freebsd-skq/sbin/dhclient
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
..
tests
alloc.c
bpf.c
clparse.c dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
conflex.c
convert.c
dhclient-script
dhclient-script.8
dhclient.8
dhclient.c dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
dhclient.conf
dhclient.conf.5
dhclient.leases.5
dhcp-options.5
dhcp.h
dhcpd.h dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
dhctoken.h
dispatch.c Allocate a struct ifreq rather than using a (wrong) computed size for 2016-11-22 22:45:15 +00:00
errwarn.c
hash.c
inet.c
Makefile
Makefile.depend
options.c
packet.c
parse.c
privsep.c dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
privsep.h dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
tables.c dhclient(8): Enable numbered user class ID option 2016-09-20 19:21:41 +00:00
tree.c
tree.h