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)
Sun, Sep 22, 1:27 PM
Unknown Object (File)
Wed, Sep 18, 1:33 AM
Unknown Object (File)
Fri, Sep 6, 7:21 AM
Unknown Object (File)
Mon, Sep 2, 3:33 PM
Unknown Object (File)
Jul 8 2024, 10:54 AM
Unknown Object (File)
Jul 3 2024, 3:04 PM
Unknown Object (File)
Jun 29 2024, 4:25 PM
Unknown Object (File)
Jun 26 2024, 12:26 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable