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)
Jan 31 2024, 3:57 PM
Unknown Object (File)
Jan 24 2024, 2:14 AM
Unknown Object (File)
Jan 14 2024, 11:36 PM
Unknown Object (File)
Dec 14 2023, 12:40 AM
Unknown Object (File)
Dec 3 2023, 12:35 PM
Unknown Object (File)
Nov 24 2023, 4:57 PM
Unknown Object (File)
Oct 11 2023, 2:26 AM
Unknown Object (File)
Sep 6 2023, 5:24 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