Page MenuHomeFreeBSD

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

Authored by brooks on Mar 30 2018, 10:09 PM.
Tags
None
Referenced Files
F168638881: D14912.id40928.diff
Sat, Aug 29, 9:30 AM
F168511272: D14912.id41156.diff
Fri, Aug 28, 6:28 PM
Unknown Object (File)
Thu, Aug 27, 8:21 PM
Unknown Object (File)
Wed, Aug 26, 11:44 PM
Unknown Object (File)
Wed, Aug 26, 3:40 PM
Unknown Object (File)
Wed, Aug 26, 5:41 AM
Unknown Object (File)
Tue, Aug 25, 9:09 PM
Unknown Object (File)
Tue, Aug 25, 5:33 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