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)
Mon, Apr 20, 9:28 PM
Unknown Object (File)
Sun, Apr 19, 10:38 PM
Unknown Object (File)
Sat, Apr 11, 8:13 PM
Unknown Object (File)
Sat, Mar 28, 8:59 AM
Unknown Object (File)
Mar 14 2026, 8:24 PM
Unknown Object (File)
Mar 14 2026, 6:55 AM
Unknown Object (File)
Mar 14 2026, 1:14 AM
Unknown Object (File)
Mar 13 2026, 1:40 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15900
Build 15900: arc lint + arc unit