Re: [PATCH] ipv6: fix NULL pointer dereference in ip6_output()

From: Florian Westphal
Date: Wed Dec 08 2021 - 05:51:24 EST


David Ahern <dsahern@xxxxxxxxx> wrote:
> On 12/7/21 5:21 PM, Andrea Mayer wrote:
> > + IP6CB(skb)->iif = skb->skb_iif;
> > [...]
> >
> > What do you think?
> >
>
> I like that approach over the need for a fall back in core ipv6 code.

What if the device is removed after ->iif assignment and before dev lookup?