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, Nov 24, 12:21 PM
Unknown Object (File)
Nov 22 2024, 9:48 AM
Unknown Object (File)
Nov 20 2024, 8:10 PM
Unknown Object (File)
Nov 16 2024, 4:28 PM
Unknown Object (File)
Nov 6 2024, 5:14 AM
Unknown Object (File)
Nov 5 2024, 9:50 PM
Unknown Object (File)
Sep 28 2024, 5:26 PM
Unknown Object (File)
Sep 22 2024, 1:27 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

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