]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r332087:
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 8 Apr 2018 17:23:33 +0000 (17:23 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 8 Apr 2018 17:23:33 +0000 (17:23 +0000)
commitc4b143aa3ec94601ea2ccf7fcb2b361df38d92d8
treec04414c810523d209185f67956a7a401736b3c48
parent6518ac4e94498ec4cc60d53862760d698fd4de30
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@332295 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if.c