RE: [PATCH v6 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

From: David Laight
Date: Thu Apr 27 2017 - 10:54:39 EST


From: Jason A. Donenfeld
> On Thu, Apr 27, 2017 at 1:30 PM, Sabrina Dubroca <sd@xxxxxxxxxxxxxxx> wrote:
> > Hmm, I think this can actually happen:
>
> Alright, perhaps better to err on the side of caution, then.

You only need to recurse if both pointers are set.

David