From: Christian Lamparter <chunkeey@googlemail.com>
To: Javier Cardona <javier@cozybit.com>
Cc: linville@tuxdriver.com, Javier Lopez <jlopex@cozybit.com>,
linux-wireless@vger.kernel.org, devel@lists.open80211s.org,
johannes@sipsolutions.net
Subject: Re: [PATCH] mac80211: Don't inspect Sequence Control field on control frames
Date: Thu, 25 Oct 2012 21:26:49 +0200 [thread overview]
Message-ID: <201210252126.49239.chunkeey@googlemail.com> (raw)
In-Reply-To: <CAPjQAd8+7oD8jJ-u_BF94SvRhxY83XdxHcR-0huWT9b-EgNuFg@mail.gmail.com>
On Thursday, October 25, 2012 09:03:42 PM Javier Cardona wrote:
> Christian,
>
> On Thu, Oct 25, 2012 at 11:48 AM, Christian Lamparter
> <chunkeey@googlemail.com> wrote:
> > On Thursday, October 25, 2012 08:10:18 PM Javier Cardona wrote:
> >> Per IEEE Std. 802.11-2012, Sec 8.2.4.4.1, the sequence Control field is
> >> not present in control frames. We noticed this problem when processing
> >> Block Ack Requests.
> >>
> >> Signed-off-by: Javier Cardona <javier@cozybit.com>
> >> Signed-off-by: Javier Lopez <jlopex@cozybit.com>
> >> ---
> >> net/mac80211/rx.c | 4 ++++
> >> 1 files changed, 4 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
> >> index f975f64..bf54336 100644
> >> --- a/net/mac80211/rx.c
> >> +++ b/net/mac80211/rx.c
> >> @@ -1467,6 +1467,10 @@ ieee80211_rx_h_defragment(struct ieee80211_rx_data *rx)
> >>
> >> hdr = (struct ieee80211_hdr *)rx->skb->data;
> >> fc = hdr->frame_control;
> >> +
> >> + if (ieee80211_is_ctl(fc))
> >> + return RX_CONTINUE;
> >> +
> >> sc = le16_to_cpu(hdr->seq_ctrl);
> >> frag = sc & IEEE80211_SCTL_FRAG;
> >>
> > hmm, I see this function also calls skb_linearize() on said
> > skb... Does anybody know of any possible side effects? Not
> > that control frames (In fact, just BlockACK Requests come
> > to my mind) usually so large...
>
> skb_linearize() is only called on fragmented frames, which is how
> regular BlockAckRequests were being processed before.
Actually, I checked ieee80211_rx_h_ctrl and the back_req handler uses
skb_copy_bits so it doesn't need a linearized skb to start with ;).
Regards,
Chr
next prev parent reply other threads:[~2012-10-25 19:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 18:10 [PATCH] mac80211: Don't inspect Sequence Control field on control frames Javier Cardona
2012-10-25 18:48 ` Christian Lamparter
2012-10-25 19:03 ` Javier Cardona
2012-10-25 19:26 ` Christian Lamparter [this message]
2012-10-25 19:03 ` Johannes Berg
2012-10-25 19:12 ` Javier Cardona
2012-10-25 19:20 ` Johannes Berg
2012-10-25 19:43 ` Johannes Berg
2012-10-25 19:44 ` Javier Cardona
2012-10-25 19:55 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201210252126.49239.chunkeey@googlemail.com \
--to=chunkeey@googlemail.com \
--cc=devel@lists.open80211s.org \
--cc=javier@cozybit.com \
--cc=jlopex@cozybit.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox