Fix out-of-bounds read (all) / write (11n capable) for drivers that are using ieee80211_init_channels() to initialize channel list.
MFC after: 2 weeks.
Paths
| Differential D4818 Authored by avos on Jan 7 2016, 3:25 PM.
Tags None Referenced Files
Subscribers
Details
Summary Fix out-of-bounds read (all) / write (11n capable) for drivers that are using ieee80211_init_channels() to initialize channel list. MFC after: 2 weeks. Test Plan Tested with
Diff Detail
Event Timelineavos updated this object. Herald added a subscriber: imp. · View Herald TranscriptJan 7 2016, 3:25 PM2016-01-07 15:25:10 (UTC+0) Comment Actions Overall this is a good catch. I'm happy to see this merged in this in once the ndis comment is address. I kinda wonder if we should just create a 'bands' typedef for net80211 to hide this problem in the future.
This revision is now accepted and ready to land.Jan 7 2016, 6:15 PM2016-01-07 18:15:25 (UTC+0) Closed by commit rS293339: net80211 drivers: fix ieee80211_init_channels() usage (authored by avos). · Explain WhyJan 7 2016, 6:41 PM2016-01-07 18:41:29 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 12009 sys/dev/bwi/if_bwi.c
sys/dev/if_ndis/if_ndis.c
sys/dev/iwi/if_iwi.c
sys/dev/malo/if_malo.c
|
Conventionally, cdefs.h is included first (see style(9)). So: