Re: [PATCH net] net: pktgen: keep device lookup under RCU protection

From: Chengfeng Ye

Date: Tue Oct 13 2026 - 08:05:12 EST


On Wed, Aug 26, 2026 at 2:55 AM Chengfeng Ye <nicoyip.dev@xxxxxxxxx> wrote:
>
> On Tue, Aug 25, 2026 at 6:45 PM Paolo Abeni <pabeni@xxxxxxxxxx> wrote:
> > Side note: returning the RCU protected ptr outside the RCU read lock
> > safe, as the caller never deference it, but quite confusing.
> >
> > It would be nice to follow-up on net-next replacing the return type here
> > with a bool.
> >
> > /P
> >
>
> No problem, the follow-up patch is just sent.
>
> Best Regards,
> Chengfeng

Hi Paolo and Eric,

A gentle ping on this fix, which is still marked Deferred.

The requested bool follow-up has been applied to net-next as
2a5043c8b7d0 (https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=2a5043c8b7d09f2fc76c19270fd687b774c5a68b),
but the RCU lifetime fix remains outstanding.

I rechecked this original patch against net/main at 8bf659bd54e1: it
still applies cleanly.

Best regards,
Chengfeng