From patchwork Fri Jul 10 12:21:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 493751 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 652EA1402BB for ; Fri, 10 Jul 2015 22:21:44 +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=ixha/umr; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754627AbbGJMVk (ORCPT ); Fri, 10 Jul 2015 08:21:40 -0400 Received: from forward-corp1f.mail.yandex.net ([95.108.130.40]:51559 "EHLO forward-corp1f.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754721AbbGJMVj (ORCPT ); Fri, 10 Jul 2015 08:21:39 -0400 Received: from smtpcorp1m.mail.yandex.net (smtpcorp1m.mail.yandex.net [77.88.61.150]) by forward-corp1f.mail.yandex.net (Yandex) with ESMTP id 3FEBB2422267; Fri, 10 Jul 2015 15:21:35 +0300 (MSK) Received: from smtpcorp1m.mail.yandex.net (localhost [127.0.0.1]) by smtpcorp1m.mail.yandex.net (Yandex) with ESMTP id EF21F2CA05BD; Fri, 10 Jul 2015 15:21:34 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:408:883f:1a2c:ff12:80cb]) by smtpcorp1m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id WVZSyI0emn-LYTWOLq3; Fri, 10 Jul 2015 15:21:34 +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=1436530894; bh=j1vEnZaeRUjL1DpexKv42ge97YD5+oTRXvmd2B1x7Gg=; h=Subject:From:To:Cc:Date:Message-ID:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding; b=ixha/umrhLY3EtZTP7bM4uQ0O9HR6Ra5Xc07c7z108cnddpNy/mK6UyTvvdhiN/W0 D4IR0rhXfnlLQrZNzMbfZaR+mfAFIbUkGJLgxMV7zA5qCxKYsYMWMpj8/Ky0ITjA7L g+ITXpp3y88poFKjZDm+9EZVQ6tEy+9tJU94kIp8= Authentication-Results: smtpcorp1m.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Subject: [PATCH v2] 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 15:21:34 +0300 Message-ID: <20150710122134.21653.46736.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..f4427f4bf223 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); + p->skb2->peeked = 0; } } if (p->skb2 == NULL) {