make sure ifa_addr isn't null
ClosedPublic

Authored by sitter on Feb 17 2020, 9:49 PM.

Details

Summary

the manpage:

The ifa_addr field points to a structure containing the interface
address.  (The sa_family subfield should be consulted to determine
the format of the address structure.)  This field may contain a null
pointer.

why that exactly happens I do not know in absence of more debug info.
I expect it's something to do with an interface being up but not quite
somehow. I utterly failed to simulate this though :|
because of that I do not know if such a device has any use being listed,
and I am adding some possibly relevant debug output in the hopes of
maybe getting some data reported.
if these devices still turn out useful, the MyNIC construction needs
partially moving before the ifa_addr check.

BUG: 417798
FIXED-IN: 5.18.1

Test Plan

hoping for the best!

Diff Detail

Repository
R102 KInfoCenter
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Feb 17 2020, 9:49 PM
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 17 2020, 9:49 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sitter requested review of this revision.Feb 17 2020, 9:49 PM
ngraham accepted this revision.Feb 18 2020, 3:27 AM
This revision is now accepted and ready to land.Feb 18 2020, 3:27 AM
This revision was automatically updated to reflect the committed changes.