* pull-request: mac80211 2017-10-09
@ 2017-10-09 7:40 Johannes Berg
2017-10-09 16:53 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2017-10-09 7:40 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-wireless
Hi Dave,
The QCA folks found another netlink problem - we were missing validation
of some attributes. It's not super problematic since one can only read a
few bytes beyond the message (and that memory must exist), but here's the
fix for it.
I thought perhaps we can make nla_parse_nested() require a policy, but
given the two-stage validation/parsing in regular netlink that won't work.
Please pull and let me know if there's any problem.
Thanks,
johannes
The following changes since commit 9f775ead5e570e7e19015b9e4e2f3dd6e71a5935:
l2tp: fix l2tp_eth module loading (2017-10-01 22:35:07 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211.git tags/mac80211-for-davem-2017-10-09
for you to fetch changes up to ad670233c9e1d5feb365d870e30083ef1b889177:
nl80211: Define policy for packet pattern attributes (2017-10-04 14:39:21 +0200)
----------------------------------------------------------------
Just a single fix for a missing netlink attribute validation.
----------------------------------------------------------------
Peng Xu (1):
nl80211: Define policy for packet pattern attributes
net/wireless/nl80211.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: pull-request: mac80211 2017-10-09
2017-10-09 7:40 pull-request: mac80211 2017-10-09 Johannes Berg
@ 2017-10-09 16:53 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-10-09 16:53 UTC (permalink / raw)
To: johannes; +Cc: netdev, linux-wireless
From: Johannes Berg <johannes@sipsolutions.net>
Date: Mon, 9 Oct 2017 09:40:12 +0200
> The QCA folks found another netlink problem - we were missing validation
> of some attributes. It's not super problematic since one can only read a
> few bytes beyond the message (and that memory must exist), but here's the
> fix for it.
>
> I thought perhaps we can make nla_parse_nested() require a policy, but
> given the two-stage validation/parsing in regular netlink that won't work.
>
> Please pull and let me know if there's any problem.
Yeah, nested parsing is messy validation-wise.
Pulled, thanks Johannes.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-09 16:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09 7:40 pull-request: mac80211 2017-10-09 Johannes Berg
2017-10-09 16:53 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox