Page MenuHomeFreeBSD

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

Authored by brooks on Mar 30 2018, 10:09 PM.
Tags
None
Referenced Files
F147176874: D14912.id40928.diff
Sun, Mar 8, 9:09 PM
Unknown Object (File)
Fri, Mar 6, 10:22 AM
Unknown Object (File)
Thu, Mar 5, 10:19 PM
Unknown Object (File)
Thu, Mar 5, 7:49 AM
Unknown Object (File)
Thu, Mar 5, 1:48 AM
Unknown Object (File)
Jan 21 2026, 9:56 AM
Unknown Object (File)
Jan 21 2026, 5:33 AM
Unknown Object (File)
Jan 20 2026, 12:12 PM
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