Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1618182

Re: [PATCH] mwifiex: MAC randomization should not be persistent

Path csiph.com!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Brian Norris <briannorris@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH] mwifiex: MAC randomization should not be persistent
Date Thu, 06 Apr 2017 18:50:02 +0200
Message-ID <ttiLE-3md-45@gated-at.bofh.it> (permalink)
References <tt1B7-8sp-7@gated-at.bofh.it> <tt6U9-3vf-1@gated-at.bofh.it>
X-Original-To Kalle Valo <kvalo@codeaurora.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TUROyhV1EZ78dHsjd2z98PNDa1hWbcJU5NAQbSrtLdU=; b=Lr3WmONYsiDxr+ChqlcwOov6f4K6ZXPDEEHhx1zq9mx90C6TBmGB3n3JfKBMjfBdWa OPtvMr+M3D9ojSDU8cJx1HOAwRQQaKq7rLOmoXL2vlyaIYO+/5ruq0SuH3dXTBei/N6b u2Odp25DxzZRxJRhpvfW47l/sEQLfnAf5L7zI=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TUROyhV1EZ78dHsjd2z98PNDa1hWbcJU5NAQbSrtLdU=; b=G0K8W659TgCED2QB8IXAFzjGAQl8xm5VMoub5y8ou8/f8EW1CoVHEumW+Tsw+Mhrgy 5lGTFZn4MWIaoBJsH6RKyBv93SpUzVAX9PLHjlri2SyXvxfA/WthDy3Xth0KoCg1DNmu Q4tHHHqh0Gcn8WJD5JGlYxOgIIbtVs8uIpGzM2exj+z+Q7PGZdyIQCJUySlq0TJMXT8I /eO6v3muA25Htw2/4d3bgkoi+ohLUAMirC5DJOeBkZV2pCcpupWraliRq8Q5OouqQwUV XW7ZsuQM1erDFc87beL4vBIauWT212UK2EZq2H/gJ31n81e8Ke/Evyggmnu88nStKA3p 8r9A==
X-Gm-Message-State AFeK/H0jxHFpBtfFXsmEcDORUpZvs2NEoWW6iT+/uxy7L3bFivSHTHLf2VdnUWQIQMVigbZe
X-Received by 10.98.218.76 with SMTP id w12mr36580368pfl.162.1491497296785; Thu, 06 Apr 2017 09:48:16 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 29
Organization linux.* mail to news gateway
X-Original-Cc Nishant Sarmukadam <nishants@marvell.com>, Ganapathi Bhat <gbhat@marvell.com>, Xinming Hu <huxm@marvell.com>, linux-kernel@vger.kernel.org, Dmitry Torokhov <dmitry.torokhov@gmail.com>, netdev@vger.kernel.org, linux-wireless@vger.kernel.org
X-Original-Date Thu, 6 Apr 2017 09:48:08 -0700
X-Original-Message-ID <20170406164807.GB25323@google.com>
X-Original-References <20170405222640.4494-1-briannorris@chromium.org> <87inmifak8.fsf@kamboji.qca.qualcomm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1618182

Show key headers only | View raw


On Thu, Apr 06, 2017 at 07:02:15AM +0300, Kalle Valo wrote:
> Brian Norris <briannorris@chromium.org> writes:
> 
> > nl80211 provides the NL80211_SCAN_FLAG_RANDOM_ADDR for every scan
> > request that should be randomized; the absence of such a flag means we
> > should not randomize. However, mwifiex was stashing the latest
> > randomization request and *always* using it for future scans, even those
> > that didn't set the flag.
> >
> > Let's zero out the randomization info whenever we get a scan request
> > without NL80211_SCAN_FLAG_RANDOM_ADDR. I'd prefer to remove
> > priv->random_mac entirely (and plumb the randomization MAC properly
> > through the call sequence), but the spaghetti is a little difficult to
> > unravel here for me.
> >
> > Fixes: c2a8f0ff9c6c ("mwifiex: support random MAC address for scanning")
> 
> So the first release with this was v4.9.
> 
> > Signed-off-by: Brian Norris <briannorris@chromium.org>
> > ---
> > Should this be tagged for -stable?
> 
> IMHO yes.

Sounds fine to me. I suppose you'll do this when applying? Or I can
resend...

Brian

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] mwifiex: MAC randomization should not be persistent Brian Norris <briannorris@chromium.org> - 2017-04-06 00:30 +0200
  Re: [PATCH] mwifiex: MAC randomization should not be persistent Kalle Valo <kvalo@codeaurora.org> - 2017-04-06 06:10 +0200
    Re: [PATCH] mwifiex: MAC randomization should not be persistent Brian Norris <briannorris@chromium.org> - 2017-04-06 18:50 +0200

csiph-web