Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4006841imm; Mon, 14 May 2018 00:52:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoFKebE65PZEKcHjelvBLjwYde71mvmdiZCBDgCqz2olwGa3KH/mKdqxCn5MqS0wvgd/e2s X-Received: by 2002:a65:639a:: with SMTP id h26-v6mr7337838pgv.290.1526284335857; Mon, 14 May 2018 00:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526284335; cv=none; d=google.com; s=arc-20160816; b=I0TKGCTWXYyOn4K2V0R3/Q2OpTz/yieB2VC8Z+t66UpC/4jhqrM0pbLpFYLMBv22gu N9KCmbNDCBmJXSbn85GdXdjXEkmDe3JJvMLBux0vm1PpTNO6//sHJgRaIIztf/l55WKj FmScwh4ly2DPNZXh4Dhe+1qvosMisRi3ZePGMxTqBPW8v+R5Z5JpFoWPn5J5stNzIpzG o1LCaXkv/CEkJXjqXmBs3YrZKp6ukZ01kRLkzgwk58nyELWjx6/pyBz5X6pEwy5m5i00 pdM0PNFYAQMDFTPcMX/Ca7q0yi6cJIjsRPdyk7qau2ODjRLzL3c3K7X9JbhSZvD7SwII cYrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=9U6DQ5OfVD4Yi87ysk4PbDYyrltKqliSuYv8tXT/Myc=; b=L4qYPhdMKmYBf0nw33PliNKWBLL6D3mhyygD+m+NgghnZEtQPSAu7IWbg/x7J58Y3u mwY2xiy8B00F7lg5w6fpavDPtUQbORNzwNap77QnhqPIAHKMPR+uO8A19TyK1nHxVBPc nUS6/gS34+BZNUV72pmw62zjxTmWxesU9FdWHnLZlOO2ItKsBeFgYi9npS+6kg9xl2Xd 81jPgrKTOno4TTrP6eQ7NcPD4eLa+tpLrAn90KhAeKfg374CucvD/usFHVJala4lsDM+ RxORKiL6S/aKyZ3RqbfXIv6yqP1JQUyZHzLCzhkKAPXGe3a4alO2LNLio1lPimrcYDT7 GmnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kZHfCiAg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14-v6si7541141pgd.43.2018.05.14.00.52.01; Mon, 14 May 2018 00:52:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kZHfCiAg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752122AbeENHvw (ORCPT + 99 others); Mon, 14 May 2018 03:51:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:57364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752245AbeENGug (ORCPT ); Mon, 14 May 2018 02:50:36 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D6CAA21723; Mon, 14 May 2018 06:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526280636; bh=+bhnUCqvada/n4NxyxpZXnvRvj/KkPYU7eNDjIuvvCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kZHfCiAgKvETLjG5e7cYLJsq1eRgsUgQoAYJ0coYM9QKlvsPmzIQC+3mAdzLgJOTI uN4ExhzvjlyzyixnxfSyTinFDUP1lNK/BqxCrKSgSk+f4lX9dBeZK9Ld3c/0vhmbCM lwBrgPETk/0Lk8HNK85H+IggmLdW/vR3+jvWAxW0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , syzbot , "David S. Miller" Subject: [PATCH 3.18 14/23] net: initialize skb->peeked when cloning Date: Mon, 14 May 2018 08:48:43 +0200 Message-Id: <20180514064704.662614756@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514064704.046463679@linuxfoundation.org> References: <20180514064704.046463679@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet commit b13dda9f9aa7caceeee61c080c2e544d5f5d85e5 upstream. syzbot reported __skb_try_recv_from_queue() was using skb->peeked while it was potentially unitialized. We need to clear it in __skb_clone() Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Eric Dumazet Reported-by: syzbot Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/core/skbuff.c | 1 + 1 file changed, 1 insertion(+) --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -779,6 +779,7 @@ static struct sk_buff *__skb_clone(struc n->hdr_len = skb->nohdr ? skb_headroom(skb) : skb->hdr_len; n->cloned = 1; n->nohdr = 0; + n->peeked = 0; n->destructor = NULL; C(tail); C(end);