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, Jul 6, 10:50 PM
Unknown Object (File)
Jun 8 2026, 1:42 AM
Unknown Object (File)
Jun 3 2026, 3:55 PM
Unknown Object (File)
Jun 2 2026, 6:23 AM
Unknown Object (File)
Jun 1 2026, 7:44 AM
Unknown Object (File)
May 29 2026, 7:48 AM
Unknown Object (File)
Apr 27 2026, 4:54 PM
Unknown Object (File)
Apr 20 2026, 9:28 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