Re: [PATCH ipsec] xfrm: iptfs: report the too big error to the frame's own socket
From: Rustam Mustafin
Date: Mon Nov 30 2026 - 08:33:35 EST
On Sat, Nov 28, 2026 at 9:56 PM <netdev-bot+sashiko@xxxxxxxxxx> wrote:
> > @@ -1832,7 +1832,7 @@ static int iptfs_is_too_big(struct sock *sk, struct sk_buff *skb, u32 pmtu)
> > - if (sk)
> > + if (skb_to_full_sk(skb))
> > xfrm_local_error(skb, pmtu);
>
> This fixes the IP-TFS caller. Is the same NULL dereference still
> reachable through __xfrm6_output() when the SA is a plain IPv6
> tunnel-mode ESP SA rather than IP-TFS?
[ ... ]
> Since this is tagged for stable, could __xfrm6_output() also check
> skb_to_full_sk(skb)?
__xfrm6_output() is fixed by the earlier patch, which this one follows
up:
https://lore.kernel.org/all/20261123104236.4179425-1-rmustafin@xxxxxxxxxxxxxx/
> > - if (xtfs->cfg.dont_frag && iptfs_is_too_big(sk, skb, pmtu)) {
> > + if (xtfs->cfg.dont_frag && iptfs_is_too_big(skb, pmtu)) {
>
> This isn't a bug introduced by this patch, but can this deadlock on
> x->lock?
It is pre-existing and this patch does not change the locking. Whether
it can really deadlock needs a separate look.
Br,
Rustam