Re: [PATCH net] udp: drop head states only when all skb references are gone

2017-09-07 Thread David Miller
From: Paolo Abeni Date: Wed, 6 Sep 2017 14:44:36 +0200 > After commit 0ddf3fb2c43d ("udp: preserve skb->dst if required > for IP options processing") we clear the skb head state as soon > as the skb carrying them is first processed. > > Since the same skb can be processed

[PATCH net] udp: drop head states only when all skb references are gone

2017-09-06 Thread Paolo Abeni
After commit 0ddf3fb2c43d ("udp: preserve skb->dst if required for IP options processing") we clear the skb head state as soon as the skb carrying them is first processed. Since the same skb can be processed several times when MSG_PEEK is used, we can end up lacking the required head states, and