Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "Óscar Alfonso Díaz" <oscar.alfonso.diaz@gmail.com>
Cc: Devin Wittmayer <lucid_duck@justthetip.ca>,
	 linux-wireless@vger.kernel.org, Felix Fietkau <nbd@nbd.name>,
	Lorenzo Bianconi	 <lorenzo@kernel.org>,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org,
		fjhhz1997@gmail.com, Brite <brite.airgeddon@gmail.com>
Subject: Re: [PATCH v4] wifi: mac80211: fix monitor mode frame capture for real chanctx drivers
Date: Wed, 20 May 2026 10:58:29 +0200	[thread overview]
Message-ID: <739ba20fa3c88e92bf034d80383015b8bc78ebfe.camel@sipsolutions.net> (raw)
In-Reply-To: <CA+bbHrV3fFHWevyDGPtAS=2M2mc+LxP6=xA-5fXaiTKTD=R31g@mail.gmail.com> (sfid-20260520_100244_085590_6B2EF659)

On Wed, 2026-05-20 at 10:02 +0200, Óscar Alfonso Díaz wrote:
> I tested it on 6.18.12
> 
> Let me know if you need me to test it again or whatever. I remember
> during my testing with the Brite's different patches that is not the
> same testing it on 6.18.x than 6.19 . Some stuff changed and the patch
> needed to be different. I've added Brite to the thread, he can add
> more useful data for you.

I guess I don't really care about 6.18.x or 6.19.x, only about 7.1-rcX
at this point. We'll want to explicitly _not_ backport this fix to older
kernel versions since it caused driver crashes.

> Regarding the approach of fixing the bug on the driver side... I've
> emailed and contacted by IRC to Lorenzo explaining the problem... but
> I got no response. So if we feel yet like this is something that needs
> to be fixed from the "driver side"... how to say it softly... we are
> f***ed up :) . Maybe the "hack" way dealing with the vif null var is
> not bad idea after all as it seems the only way to move forward.

I feel I've tried to say this before, but maybe it helps if I summarise:

There's one feature and one (possible) bug here.

The feature is:
 - monitor mode injection works for chanctx drivers.

The bug is:
 - monitor mode injection with the feature patch crashes at least some
   mt76 devices, which you reported, which I consider to be a bug in the
   driver that needs to be fixed there.

To me, the trade-off is crystal clear - as long as the bug exists, I'm
not going to apply this or a similar patch to enable the feature.

I'm also not going to apply a patch like proposed before that hacks it
by redirecting the vif pointer to a (more or less random) other vif,
that's a lazy hack that happens to fix the problem in your _specific_
use case, but will almost certainly still expose the crash in other use
cases.

I do think there's a chance that between 6.18/6.19 and 7.1-rcX the bug
in the driver has already been fixed, that's why I keep asking about
versions etc. But I also think there's a chance you're just testing
different subdrivers of mt76 with different devices, so I'm also asking
you to compare the specific devices.

I'm happy to apply this patch if the people who previously reported it
to crash (i.e. mostly you, not sure about others) are saying that
against a more recent kernel it no longer causes the test to crash
(rather than just not work, which is clearly better than crashing.)

You could always just claim you've tested this patch without the crash
and I'll apply it, but then if someone still finds a crash I'm just
going to have to revert it, and we'd be back to square one.

I hope this explains what I'm thinking and going to do (and not do),
make of it what you will.

johannes

  reply	other threads:[~2026-05-20  8:58 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-08 16:45 [PATCH] wifi: mac80211: fix monitor mode frame capture for real chanctx drivers 傅继晗
2026-03-09  6:53 ` Johannes Berg
2026-03-09 10:45   ` 傅继晗
2026-03-16 10:38     ` Johannes Berg
     [not found]       ` <CA+bbHrX+xby2_drzo0457raoz-kgQ6eTCCHU91pR5BkvzMiq_A@mail.gmail.com>
2026-03-19 11:40         ` Óscar Alfonso Díaz
2026-03-25  0:15           ` 傅继晗
2026-03-25 10:59             ` Óscar Alfonso Díaz
2026-03-26  1:37               ` [PATCH v2] wifi: mac80211: fix the issue of NULL pointer access when deleting the virtual interface 傅继晗
2026-03-26 12:16                 ` Óscar Alfonso Díaz
2026-03-29 21:55                   ` Óscar Alfonso Díaz
2026-04-02  0:06                     ` Óscar Alfonso Díaz
2026-04-21  8:50                       ` Óscar Alfonso Díaz
2026-04-24 12:08                         ` [PATCH] wifi: mac80211: restore monitor injection when coexisting with another VIF Brite
2026-04-24 12:17                           ` Greg KH
2026-04-24 13:55                           ` Johannes Berg
2026-04-24 14:17                             ` Óscar Alfonso Díaz
2026-04-24 17:22                             ` Brite
2026-04-25  0:34                             ` Brite
2026-04-25  1:47                           ` Lachlan Hodges
2026-04-25  2:43                             ` Brite
2026-04-26  9:25                               ` Óscar Alfonso Díaz
2026-05-18  6:38 ` [PATCH v2 0/1] wifi: mac80211: fix monitor mode frame capture for real chanctx drivers Devin Wittmayer
2026-05-18  6:40   ` [PATCH v2 1/1] " Devin Wittmayer
2026-05-18  6:42     ` Johannes Berg
2026-05-18 17:01 ` [PATCH v3 0/1] " Devin Wittmayer
2026-05-18 17:01   ` [PATCH v3] " Devin Wittmayer
2026-05-19  7:02     ` Johannes Berg
2026-05-19 23:56       ` Devin Wittmayer
2026-05-19 23:57   ` [PATCH v4 0/1] " Devin Wittmayer
2026-05-19 23:57     ` [PATCH v4] " Devin Wittmayer
2026-05-20  6:49       ` Óscar Alfonso Díaz
2026-05-20  7:42         ` Johannes Berg
2026-05-20  8:02           ` Óscar Alfonso Díaz
2026-05-20  8:58             ` Johannes Berg [this message]
2026-05-20  9:51               ` Óscar Alfonso Díaz
2026-05-20  9:53                 ` Johannes Berg
2026-05-20  9:55                   ` Óscar Alfonso Díaz
2026-06-02  8:29                     ` Óscar Alfonso Díaz
2026-06-03 11:54                       ` Óscar Alfonso Díaz
2026-06-03 12:09                         ` Johannes Berg
2026-06-03 12:10       ` Johannes Berg
2026-06-03 19:28     ` [PATCH v5 0/1] " Devin Wittmayer
2026-06-03 19:28       ` [PATCH v5 1/1] " Devin Wittmayer
  -- strict thread matches above, loose matches on Subject: below --
2026-07-01  5:47 [PATCH v4] " synicalkid

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=739ba20fa3c88e92bf034d80383015b8bc78ebfe.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=brite.airgeddon@gmail.com \
    --cc=fjhhz1997@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=lucid_duck@justthetip.ca \
    --cc=nbd@nbd.name \
    --cc=oscar.alfonso.diaz@gmail.com \
    --cc=stable@vger.kernel.org \
    /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