Page MenuHomeFreeBSD

ifconf(): Always zero the whole struct ifreq.
ClosedPublic

Authored by brooks on Mar 30 2018, 10:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 5:14 AM
Unknown Object (File)
Tue, Nov 5, 9:50 PM
Unknown Object (File)
Sep 28 2024, 5:26 PM
Unknown Object (File)
Sep 22 2024, 1:27 PM
Unknown Object (File)
Sep 18 2024, 1:33 AM
Unknown Object (File)
Sep 6 2024, 7:21 AM
Unknown Object (File)
Sep 2 2024, 3:33 PM
Unknown Object (File)
Jul 8 2024, 10:54 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable