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, Mar 23, 7:15 PM
Unknown Object (File)
Feb 23 2025, 4:21 PM
Unknown Object (File)
Feb 18 2025, 2:24 PM
Unknown Object (File)
Feb 8 2025, 6:04 AM
Unknown Object (File)
Jan 24 2025, 7:06 PM
Unknown Object (File)
Jan 23 2025, 10:14 PM
Unknown Object (File)
Nov 24 2024, 12:21 PM
Unknown Object (File)
Nov 22 2024, 9:48 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