From patchwork Fri Jul 10 11:51:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 493744 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A80001402AD for ; Fri, 10 Jul 2015 21:52:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=yandex-team.ru header.i=@yandex-team.ru header.b=aYXe90d8; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754691AbbGJLv4 (ORCPT ); Fri, 10 Jul 2015 07:51:56 -0400 Received: from forward-corp1g.mail.yandex.net ([95.108.253.251]:54116 "EHLO forward-corp1g.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754296AbbGJLvt (ORCPT ); Fri, 10 Jul 2015 07:51:49 -0400 Received: from smtpcorp1m.mail.yandex.net (smtpcorp1m.mail.yandex.net [77.88.61.150]) by forward-corp1g.mail.yandex.net (Yandex) with ESMTP id 13238366261A; Fri, 10 Jul 2015 14:51:45 +0300 (MSK) Received: from smtpcorp1m.mail.yandex.net (localhost [127.0.0.1]) by smtpcorp1m.mail.yandex.net (Yandex) with ESMTP id C42E42CA05BD; Fri, 10 Jul 2015 14:51:45 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:408:883f:1a2c:ff12:80cb]) by smtpcorp1m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AS1EwEa6WL-pjTubXQx; Fri, 10 Jul 2015 14:51:45 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1436529105; bh=P/NTUM+ocU5Sbpm45F6R9HaXvvIf9f17tU5eZvrDfRg=; h=Subject:From:To:Cc:Date:Message-ID:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding; b=aYXe90d8KyfJ55LI2VpeGdq8aEf//0BUQqMWqSs4vP2AwvaCjOM8oo9LbvpJofdt+ 4z6fcex2r45mCiayGWCEe/0E6Y+Ya75FYwTwI/uPwSUbecQz7o04Fo1+BZHDDPnEhH LtGHP6zc3rmF61fP5X1/Dj9Um28k5QIQqF3py+MQ= Authentication-Results: smtpcorp1m.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Subject: [PATCH] netlink: reset skb->peeked when reuse orphan skb for next broadcast From: Konstantin Khlebnikov To: netdev@vger.kernel.org, "David S. Miller" Cc: Eric Dumazet , Herbert Xu Date: Fri, 10 Jul 2015 14:51:45 +0300 Message-ID: <20150710115145.13008.14667.stgit@buzz> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch clears skb->peeked set by previous recipient of broadcast. Signed-off-by: Konstantin Khlebnikov Fixes: add05ad4e9f5 ("unix/dgram: peek beyond 0-sized skbs") --- net/netlink/af_netlink.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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) {