mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jouni Malinen <j@w1.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Fedor Pchelkin <pchelkin@ispras.ru>,
	Vitaliy Shevtsov <v.shevtsov@mt-integration.ru>,
	lvc-project@linuxtesting.org,
	Michael Wu <flamingice@sourmilk.net>,
	linux-wireless@vger.kernel.org,
	"John W. Linville" <linville@tuxdriver.com>,
	linux-kernel@vger.kernel.org,
	syzbot+2e5c1e55b9e5c28a3da7@syzkaller.appspotmail.com
Subject: Re: [lvc-project] [PATCH] wifi: nl80211: override all other flags if MONITOR_FLAG_COOK_FRAMES is set
Date: Mon, 3 Feb 2025 12:40:26 +0200	[thread overview]
Message-ID: <Z6CdGnGnFJ8OuWyT@w1.fi> (raw)
In-Reply-To: <49fe46c6a158873cdc6593b0d5630b62a59ed059.camel@sipsolutions.net>

On Thu, Jan 30, 2025 at 10:13:14PM +0100, Johannes Berg wrote:
> On Thu, 2025-01-30 at 22:23 +0300, Fedor Pchelkin wrote:
> > Wouldn't it break existing userspace, especially in context of systems
> > running old stable kernels where the patch is also needed?
> > 
> > There is still some usage of this flag in hostap [1].
> 
> Theoretically, but I just commented on that here:
> 
> https://lore.kernel.org/r/a49e58998553c45953a30243ad1957c06ce6db8c.camel@sipsolutions.net
> 
> tl;dr: only ancient hostapd versions will actually _use_ it, and they
> have to fall into a relatively narrow range (April 2009 - Dec 2011.)

How did you determine that commit a11241fa1149 ("nl80211: Use nl80211
for mgmt TX/RX in AP mode") ends this use? Support for monitor mode
interface is still in hostap.git and it is even tested as part of the
hwsim test cases.. Both hostapd and wpa_supplicant can still be
configured to use the monitor interface.

It would be another question to ask whether there is any good reason to
use this anymore now that a better approach has been available for 13
years and the answer to that is likely "no". Anyway, this is a kernel
interface that has a user even in the current snapshot of user space
programs. If we are about to break that use, it would make sense to
first remove such users. I don't think I would really care about this
anymore and it would be nice to get rid of all that unlikely to be used
much, if at all, code.

> > Or your suggestion is to explicitly reject setting MONITOR_FLAG_COOK_FRAMES
> > only when it is passed combined with some other flags which it is
> > incompatible with?
> 
> Yes.

Though, this seems to imply that the case used by hostapd/wpa_supplicant
would not be broken.

-- 
Jouni Malinen                                            PGP id EFC895FA

  reply	other threads:[~2025-02-03 10:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-30 12:34 Vitaliy Shevtsov
2025-01-30 12:36 ` Johannes Berg
2025-01-30 19:23   ` [lvc-project] " Fedor Pchelkin
2025-01-30 21:13     ` Johannes Berg
2025-02-03 10:40       ` Jouni Malinen [this message]
2025-02-03 10: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=Z6CdGnGnFJ8OuWyT@w1.fi \
    --to=j@w1.fi \
    --cc=flamingice@sourmilk.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lvc-project@linuxtesting.org \
    --cc=pchelkin@ispras.ru \
    --cc=syzbot+2e5c1e55b9e5c28a3da7@syzkaller.appspotmail.com \
    --cc=v.shevtsov@mt-integration.ru \
    /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

all inboxes | Powered by JetHome®