From: Johannes Berg <johannes@sipsolutions.net>
To: Henry Barreto <contato@henrybarreto.dev>,
Richard Weinberger <richard@nod.at>,
Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Tiwei Bie <tiwei.btw@antgroup.com>,
linux-um@lists.infradead.org, linux-kernel@vger.kernel.org,
Henry Barreto <me@henrybarreto.dev>
Subject: Re: [PATCH] um: vector: avoid NULL queue dereference in legacy RX mode
Date: Thu, 28 May 2026 09:13:37 +0200 [thread overview]
Message-ID: <b72e33e9d651f67ff2236b21fc13c3c78a99cb97.camel@sipsolutions.net> (raw)
In-Reply-To: <20260527213524.45903-1-contato@henrybarreto.dev>
On Wed, 2026-05-27 at 18:35 -0300, Henry Barreto wrote:
> From: Henry Barreto <me@henrybarreto.dev>
>
> Bringing a UML vector netdev up can panic in vector_net_open() with a
> fault in _raw_spin_lock().
>
> vector_net_open() calls vector_reset_stats(), which takes the RX and TX
> queue locks. However, queue allocation depends on runtime transport
> options. With tap transport, vector RX/TX queues are not created and the
> legacy header buffers are used instead. Taking a queue lock then
> dereferences a NULL queue pointer.
>
> Take the queue locks in vector_reset_stats() only when the corresponding
> queue exists. Also move the RX queue lock in vector_poll() into the
> VECTOR_RX path, so legacy RX does not touch rx_queue.
>
> Fixes: 612a8c8e0b43 ("um: vector: Replace locks guarding queue depth with atomics")
So ... you're effectively saying that the tap transport has been broken
since 6.12, released ~1.5 years ago.
Maybe we should just remove that entirely since nobody complained?
johannes
next prev parent reply other threads:[~2026-05-28 7:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 21:35 Henry Barreto
2026-05-28 7:13 ` Johannes Berg [this message]
2026-05-28 7:31 ` Anton Ivanov
2026-05-28 8:00 ` Anton Ivanov
2026-05-28 8:17 ` Johannes Berg
2026-05-28 8:21 ` Anton Ivanov
2026-05-28 8:02 ` Anton Ivanov
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=b72e33e9d651f67ff2236b21fc13c3c78a99cb97.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=anton.ivanov@cambridgegreys.com \
--cc=contato@henrybarreto.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-um@lists.infradead.org \
--cc=me@henrybarreto.dev \
--cc=richard@nod.at \
--cc=tiwei.btw@antgroup.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
all inboxes | Powered by JetHome®