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, Dec 10, 9:38 AM
Unknown Object (File)
Nov 27 2025, 6:38 AM
Unknown Object (File)
Nov 25 2025, 5:24 PM
Unknown Object (File)
Nov 20 2025, 3:35 PM
Unknown Object (File)
Nov 20 2025, 3:24 PM
Unknown Object (File)
Nov 20 2025, 3:22 PM
Unknown Object (File)
Nov 20 2025, 3:12 PM
Unknown Object (File)
Nov 18 2025, 3:13 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