* [PATCH] netlink: reset skb->peeked when reuse orphan skb for next broadcast
@ 2015-07-10 11:51 Konstantin Khlebnikov
2015-07-10 12:13 ` Konstantin Khlebnikov
0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Khlebnikov @ 2015-07-10 11:51 UTC (permalink / raw)
To: netdev, David S. Miller; +Cc: Eric Dumazet, Herbert Xu
This patch clears skb->peeked set by previous recipient of broadcast.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Fixes: add05ad4e9f5 ("unix/dgram: peek beyond 0-sized skbs")
---
net/netlink/af_netlink.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 921e0d8dfe3a..4e5c298c88b5 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1967,6 +1967,7 @@ static void do_one_broadcast(struct sock *sk,
* delivered to a previous socket.
*/
skb_orphan(p->skb2);
+ skb->peeked = 0;
}
}
if (p->skb2 == NULL) {
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] netlink: reset skb->peeked when reuse orphan skb for next broadcast
2015-07-10 11:51 [PATCH] netlink: reset skb->peeked when reuse orphan skb for next broadcast Konstantin Khlebnikov
@ 2015-07-10 12:13 ` Konstantin Khlebnikov
0 siblings, 0 replies; 2+ messages in thread
From: Konstantin Khlebnikov @ 2015-07-10 12:13 UTC (permalink / raw)
To: netdev, David S. Miller; +Cc: Eric Dumazet, Herbert Xu
On 10.07.2015 14:51, Konstantin Khlebnikov wrote:
> This patch clears skb->peeked set by previous recipient of broadcast.
>
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
> Fixes: add05ad4e9f5 ("unix/dgram: peek beyond 0-sized skbs")
> ---
> net/netlink/af_netlink.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
> index 921e0d8dfe3a..4e5c298c88b5 100644
> --- a/net/netlink/af_netlink.c
> +++ b/net/netlink/af_netlink.c
> @@ -1967,6 +1967,7 @@ static void do_one_broadcast(struct sock *sk,
> * delivered to a previous socket.
> */
> skb_orphan(p->skb2);
> + skb->peeked = 0;
> }
> }
> if (p->skb2 == NULL) {
>
Oops, sorry. Please ignore it.
--
Konstantin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-10 12:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-10 11:51 [PATCH] netlink: reset skb->peeked when reuse orphan skb for next broadcast Konstantin Khlebnikov
2015-07-10 12:13 ` Konstantin Khlebnikov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.