From: willemb@google.com
To: Rongguang Wei <clementwei90@163.com>,
netdev@vger.kernel.org, bpf@vger.kernel.org
Cc: willemdebruijn.kernel@gmail.com, jasowangio@gmail.com,
andrew+netdev@lunn.ch, davem@davemloft.net, kuba@kernel.org,
ast@kernel.org, alexei.starovoitov@gmail.com, andrii@kernel.org,
Rongguang Wei <weirongguang@kylinos.cn>
Subject: Re: [PATCH net v12 0/2] tun: fix re-attaching the socket filter
Date: Mon, 30 Nov 2026 11:03:16 -0500 [thread overview]
Message-ID: <willemb.2f9ab07256d02@google.com> (raw)
In-Reply-To: <20261123054209.89946-1-clementwei90@163.com>
Rongguang Wei wrote:
> From: Rongguang Wei <weirongguang@kylinos.cn>
> This series fixes attaching a queue to a TAP device, which re-installs the
> socket filter of a persistent device.
> TUNATTACHFILTER keeps only the sock_fprog header, so the instructions are
> read from user space again for every queue that is attached later. Keep
> the program on the device instead, run it from tun_net_xmit(), and record
> IFF_NOFILTER per queue. Patch 1 does that. Also removes the exports of
> sk_attach_filter() and sk_detach_filter() because no caller in a module.
> Patch 2 adds selftests for the re-attach, for bad programs with and
> without
> queues, and for the IFF_NOFILTER paths.
> Thanks to Willem de Bruijn and Alexei Starovoitov for the reviews.
> ---
> v12:
> - drop the EXPORT_SYMBOL_GPL() of sk_attach_filter() and
> sk_detach_filter(), as Alexei asked. It is a cleanup on its own, so
> it
> goes in a separate patch and the stable backport of the fix does not
> carry it
The v12 changelog is stale (as Alexei noted on-list) and contradicts
the actual series: the EXPORT_SYMBOL_GPL() removals in
net/core/filter.c were
folded directly into Patch 1/2, which carries Fixes: 54f968d6efdb.
Dropping
exported core networking symbols is a net-next cleanup and should not be
carried by a Fixes-tagged net patch destined for stable backports;
please
drop the net/core/filter.c hunk from this net series and send it
separately
to net-next once the fix lands.
next prev parent reply other threads:[~2026-11-30 16:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 5:42 [PATCH net v12 0/2] tun: fix re-attaching the socket filter Rongguang Wei
2026-11-23 5:42 ` [PATCH net v12 1/2] tun: run the socket filter from tun_net_xmit() Rongguang Wei
2026-11-24 5:45 ` netdev-bot+sashiko
2026-11-23 5:42 ` [PATCH net v12 2/2] selftests: net: add TAP socket filter attach tests Rongguang Wei
2026-11-24 5:45 ` netdev-bot+sashiko
2026-11-24 8:00 ` Rongguang Wei
2026-11-23 6:49 ` [PATCH net v12 0/2] tun: fix re-attaching the socket filter Alexei Starovoitov
2026-11-30 16:03 ` willemb [this message]
2026-12-01 7:30 ` weirongguang
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=willemb.2f9ab07256d02@google.com \
--to=willemb@google.com \
--cc=alexei.starovoitov@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=clementwei90@163.com \
--cc=davem@davemloft.net \
--cc=jasowangio@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=weirongguang@kylinos.cn \
--cc=willemdebruijn.kernel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.