Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2019934imu; Fri, 14 Dec 2018 04:36:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/UwwSY1dnry9lNTRwvcN0B28xIUKasB3z0lEyPDbwG3KP3tFjcYpLEdt31atc2e1jGcdaoy X-Received: by 2002:a17:902:1122:: with SMTP id d31mr2728532pla.246.1544791010756; Fri, 14 Dec 2018 04:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544791010; cv=none; d=google.com; s=arc-20160816; b=yP1C62Of0JIp3KxrnwiRym0suWGdTjDYlJtv0IvthK6wp4HS1HMe/Ck6NuOWMt7GQ5 STYtOaTxjEzaP0d0khOvmBTPxpf5PgCX2fVxM59OZ66RyvVoptAN4GpzagFWqyYmqjkM WTkb8CYz+qZMMzz5+tk9ZXL5b+3WSq4/LOzVe1f0RyeSA3QIFID7K0PyLvmDqzUrQkzV ACZXnUK0nSHPopOn8huYJUhEWB9071YEI/Cxb9nkNzFG7d/3dDlXVWM4lmByufrlQy+f PQ2SItlcpXiGmlFKA2n7dfRr/T/UvGPXOe1rCnsl79/LbOKrqDwA/OElAwuWTP4ASKUG KKsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GcZWl45EawsLmrTfHV+likOFqb7vS6YOqrsQGlCWuRM=; b=Xqyq4N3sBsMDudjBTXO159bGI9wwPlX0zgHS9jlavw16H+2QZSMXHCgrI3luOiLaWh poqiZJSEA3pwEg2BLyLu2wgufxXkSW953Wi19nyEcOJvYP9rhHxtjHciOD8NXBlMxoVx FDe2Y3HQrKIyGduPYdfzPoixDN4Rtue0YYdZtor3RVvNUE1n4Tbl4WGNLUcirkBz/12F kk2skrXJxoK7HaAP1TuP91vUKxmTYu9LhNrcnkUcPJCPHoILI8dBkLnSpFRFzMEhowop /cjYA6tC4UaV2gjcKtN+5t5pByFkfcY35x6TYQ41XmwxNH3ua5CbKcbzjxUm5KNjFeYK 5ZnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HGOUXa+d; 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 i1si3742544pgr.569.2018.12.14.04.36.36; Fri, 14 Dec 2018 04:36:50 -0800 (PST) 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=HGOUXa+d; 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 S1730085AbeLNMei (ORCPT + 99 others); Fri, 14 Dec 2018 07:34:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:53170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730457AbeLNMHs (ORCPT ); Fri, 14 Dec 2018 07:07:48 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 B4CA72147D; Fri, 14 Dec 2018 12:07:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789268; bh=LKaQLjikyHC0IxpPcNmWFbb2ryKIq0r/d+4blThoN/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HGOUXa+dcuwgwlM/l1NGfxVnZuA9OW6cCbASA0dpFj7gNSJNLZYGvaYDyq+eRmH24 132/0mcPq+2J0Flfp2jpjqpKOhgwch+rU/8+ZHeggaun4sWO8gLTIRZMmM+eZ7wWdJ AyBOGxo36OTEJN9ZLAMtUdNpzWQN5mtYXEmBYVWM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shmulik Ladkani , "David S. Miller" Subject: [PATCH 4.14 04/89] ipv6: sr: properly initialize flowi6 prior passing to ip6_route_output Date: Fri, 14 Dec 2018 12:59:17 +0100 Message-Id: <20181214115729.889224944@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115729.658859279@linuxfoundation.org> References: <20181214115729.658859279@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shmulik Ladkani [ Upstream commit 1b4e5ad5d6b9f15cd0b5121f86d4719165958417 ] In 'seg6_output', stack variable 'struct flowi6 fl6' was missing initialization. Fixes: 6c8702c60b88 ("ipv6: sr: add support for SRH encapsulation and injection with lwtunnels") Signed-off-by: Shmulik Ladkani Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/seg6_iptunnel.c | 1 + 1 file changed, 1 insertion(+) --- a/net/ipv6/seg6_iptunnel.c +++ b/net/ipv6/seg6_iptunnel.c @@ -327,6 +327,7 @@ static int seg6_output(struct net *net, struct ipv6hdr *hdr = ipv6_hdr(skb); struct flowi6 fl6; + memset(&fl6, 0, sizeof(fl6)); fl6.daddr = hdr->daddr; fl6.saddr = hdr->saddr; fl6.flowlabel = ip6_flowinfo(hdr);