Re: [PATCH v3] nfsd: store net in svc_serv instead of deriving it from sv_permsocks

From: Chuck Lever

Date: Wed Oct 21 2026 - 16:30:54 EST


On Wed, 21 Oct 2026 18:12:13 +0530, Deepanshu Kartikey wrote:
> nfsd() derives its struct net from the first entry of
> serv->sv_permsocks using list_entry() without checking that the list
> is non-empty. If the list is empty, list_entry() returns a bogus
> svc_xprt computed from the list head embedded in struct svc_serv, and
> the following perm_sock->xpt_net load reads past the end of the
> svc_serv allocation:
>
> [...]

Applied to nfsd-testing, thanks!

[1/1] nfsd: store net in svc_serv instead of deriving it from sv_permsocks
commit: 764ffa45f3f2189cd86ec6d46d248fc0440507b6

--
Chuck Lever