HomeFreeBSD

MFC r332087:

Description

MFC r332087:

ifconf(): Always zero the whole struct ifreq.

The previous split of zeroing ifr_name and ifr_addr seperately is safe
on current architectures, but would be unsafe if pointers were larger
than 8 bytes. Combining the zeroing adds no real cost (a few
instructions) and makes the security property easier to verify.

Reviewed by: kib, emaste
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14912

Details

Committed
brooksApr 8 2018, 5:18 PM
Reviewer
kib
Differential Revision
D14912: ifconf(): Always zero the whole struct ifreq.
Parents
rS332293: Fix LINT (and static COMPAT_LINUX32) after r332122.
Branches
Unknown
Tags
Unknown