Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2027918imu; Fri, 14 Dec 2018 04:44:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XEZADri91cR9nMYwZtWSPw4lK21yWKfk3y9cx64x/QB0VW0PoILhr0f36EMzotqp8w6fs2 X-Received: by 2002:a63:1a4b:: with SMTP id a11mr2624964pgm.254.1544791494036; Fri, 14 Dec 2018 04:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544791494; cv=none; d=google.com; s=arc-20160816; b=eiyhSLfvj/q9oviEMcH7daztBOgqd9uEof0x7lDg5kmF8YgtwRYADFz7w5SItrmAxw CONB7ZXVEQG+jkYjGCrOYGHD+Ua7FkRXm8Wc6bSfncB3NeJ77BBEjrZN0L7nkmqoL/an lBMRXIM26/01QDE4UEplhBVw+o4naMg13oEQbBEgoCR8EscQqUneNyYOCrgjVMGL3W3t xmIHfX99+dMPWTdNHUui6czYszHDzZ18t8gTeSN3CMnxJQkr9kLCUFgX1YzvZwcHkbCZ GbSb9jpRVw8rgXA7qCLqNHhcxAfpZsh0UdfQrUwJLRxiKPZaPwCOh21BibjXAivTAMYU oEYg== 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=kjwOffiWFdzLP8v/CMxTTdbzvgX/ESdRqyWCFwVzb+E=; b=oyPVqzthtM/Lctykose4cHBfiEtS4pkQldwMgzQZDyjlCF9VvolEHG4WJllN1G+sbg pWi+x5AmL0UD3jytzbxOe6OGiIgc/zFPrxBM2nFy4X3IVJexFvM53lJNsnA75pAwDryE SCNuSVM4rifbsgJn3neo3OFvJCfmhlWIEh+ffTMgWo4EX2xUeWEjRMcBWz914D+ZvNPt QMsDXVsmGnN5P7JoAk/JUqC80em4JgJAh+R0dJLXGmJh3SxcmGnwo8lUId4jaQEdjPg7 MlVbIsPQXJjG0Peh7xbSHotmgG4GiabjSzCZDQkkK6mn6S0qObH8xXDpdsPxI3oO/42A PlIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fo33gIoX; 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 j22si3901836pfi.252.2018.12.14.04.44.39; Fri, 14 Dec 2018 04:44:53 -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=fo33gIoX; 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 S1729875AbeLNMBy (ORCPT + 99 others); Fri, 14 Dec 2018 07:01:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:44386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729523AbeLNMBr (ORCPT ); Fri, 14 Dec 2018 07:01:47 -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 6554D2146E; Fri, 14 Dec 2018 12:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544788906; bh=igHB7H/m0mUo8Mxz8ugV08OSfZOxkPyXtr/e+rM2S+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fo33gIoXwtIlNyEJNT7sf5M7w6+fgNmts1Dh3qThP7MOJzD/H5iOoF0YpbZGIGsOc wm+WkZ7k7oGr7xVf7hjfQR6l0KYwZZJPmo5wQfUk1sXmuTbv6/vKOwjA+FMlQx/iRh kwgTwArXkAET5iMvhHcXX0P/6zmT7g9vec523Pp8= 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.19 004/142] ipv6: sr: properly initialize flowi6 prior passing to ip6_route_output Date: Fri, 14 Dec 2018 12:58:09 +0100 Message-Id: <20181214115747.231205004@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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.19-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 @@ -347,6 +347,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);