From: Jens Axboe <axboe@kernel.dk>
To: Jakub Kicinski <kuba@kernel.org>
Cc: io-uring@vger.kernel.org, Pavel Begunkov <asml.silence@gmail.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH io_uring-7.2 1/1] io_uring/zcrx: fail non-qops netdevs early
Date: Thu, 6 Aug 2026 07:51:22 -0600 [thread overview]
Message-ID: <511377bc-7703-410a-8982-3050ad27c066@kernel.dk> (raw)
In-Reply-To: <20260806064958.1b9ae431@kernel.org>
On 8/6/26 7:49 AM, Jakub Kicinski wrote:
> On Thu, 06 Aug 2026 06:00:49 -0600 Jens Axboe wrote:
>> On Thu, 06 Aug 2026 12:42:33 +0100, Pavel Begunkov wrote:
>>> netdev_get_by_index_lock() might return a netdev that doesn't have qops
>>> and also relies on rtnl. We're going to reject it later when opening a
>>> queue, but netdev_queue_get_dma_dev() warns before that. Reject non-qops
>>> netdevs earlier for now.
>>>
>>> RTNL: assertion failed at ./include/net/netdev_lock.h (72)
>>> WARNING: ./include/net/netdev_lock.h:72 at netdev_assert_locked_ops_compat
>>> include/net/netdev_lock.h:72 [inline]
>>> WARNING: ./include/net/netdev_lock.h:72 at netdev_queue_get_dma_dev+0x52e/0x660
>>> net/core/netdev_queues.c:43,
>>> RIP: 0010:netdev_assert_locked_ops_compat include/net/netdev_lock.h:72 [inline]
>>> RIP: 0010:netdev_queue_get_dma_dev+0x53a/0x660 net/core/netdev_queues.c:43
>>> Call Trace:
>>> <TASK>
>>> zcrx_register_netdev io_uring/zcrx.c:831 [inline]
>>> io_register_zcrx+0xe94/0x1d30 io_uring/zcrx.c:983
>>> __io_uring_register io_uring/register.c:942 [inline]
>>> __do_sys_io_uring_register+0x1193/0x1bc0 io_uring/register.c:1040
>>> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
>>> do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
>>> entry_SYSCALL_64_after_hwframe+0x77/0x7f
>>>
>>> [...]
>>
>> Applied, thanks!
>>
>> [1/1] io_uring/zcrx: fail non-qops netdevs early
>> commit: cf7aa48151deb629022a8b0c61c139dbfa579933
>
> I asked for a different fix :/
>
> https://lore.kernel.org/all/20260805165817.7e1fc367@kernel.org/
>
> Outside subsystems should not be poking at random fields and making
> guesses. The assert is simply wrong and should be changed.
>
> Jens, can you drop this please?
Sure, dropped.
--
Jens Axboe
next prev parent reply other threads:[~2026-08-06 13:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 11:42 [PATCH io_uring-7.2 1/1] io_uring/zcrx: fail non-qops netdevs early Pavel Begunkov
[not found] ` <178601764913.2132084.3867669701970816639.b4-ty@b4>
2026-08-06 13:49 ` Jakub Kicinski
2026-08-06 13:51 ` Jens Axboe [this message]
2026-08-06 14:07 ` Jakub Kicinski
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=511377bc-7703-410a-8982-3050ad27c066@kernel.dk \
--to=axboe@kernel.dk \
--cc=asml.silence@gmail.com \
--cc=io-uring@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@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