Received: by 10.192.165.156 with SMTP id m28csp72891imm; Tue, 10 Apr 2018 16:42:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/dh+vIOrf+pBcCXcMNuAuoivz0L6Cxxlag3DbJZVauge0NvGbnD6MQfdUknHTtW6TP4Mys X-Received: by 2002:a17:902:6ac1:: with SMTP id i1-v6mr2461351plt.152.1523403735679; Tue, 10 Apr 2018 16:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403735; cv=none; d=google.com; s=arc-20160816; b=nJcz4ByOoDD7WI2DSYzvC8sOHMqRkYUeFlD7w9Lj3mjNOmTPM8aLh81e32+cX1Rpk8 ivJ7awh+3bvDttdvomZrxvwH3sn8dzsX++EhdXWQchVWMF2K1gBsdvI4k4zQKTT5JDN1 xsLXnrDH7hiGIRmEmsWBI01z1nF4Hy4cca/LuWAsSzd4sRZzS7S77EIasPlHeIrAshet LEkRuUpomoDxdLfRmXXR9SpMgOBB1gL19VDMUSyjM2uKLuWDdTCFCkYozJtEd1MbCXVG DxldPxfDGlpumz+a/FWtluqW/9C4wQgAgm3NFLLhsb1MNl7zJyU2AAQHaY6ZvYuaA6+9 Brqw== 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 :arc-authentication-results; bh=Rb9KpKe0DQnmbjUaxa8sIEn9t05Ya6/KdLLogYNL7fY=; b=PNOthpfqr8J8hrsfAoQS1n+yAenY6uKP2gSX1khqud4Kkp4q7xAj0x4UHzhYntcINK VLkAiWCdBBer9Fv2J1vZYX/ejvbHzpRkRmlsPb9cDUnkJJP39ir82U0N2mz275wbLAqE YHrBVtxGhssjx9Ca6Rd7GO3B7NvxzgVJGd/NWxnD+DcJpkd4qm50eH//km7ibMRHjKgY q70EYjGxQAICHofiXM5ldSwGolDl0gjse0QWCrndrWk/6jNteK9WD/is4q86ixybAeLY mI2CnmpmbnyklN4NJEPKEz8UbnX2h3yaqfUlAAACItowJ2TVYJZB6CxfQXieaCyMWb46 si6g== ARC-Authentication-Results: i=1; mx.google.com; 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 m14si1256032pgs.190.2018.04.10.16.41.38; Tue, 10 Apr 2018 16:42: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; 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 S1755011AbeDJXhd (ORCPT + 99 others); Tue, 10 Apr 2018 19:37:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37790 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753560AbeDJW1P (ORCPT ); Tue, 10 Apr 2018 18:27:15 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 59E7CCC4; Tue, 10 Apr 2018 22:27:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jianlin Shi , Hangbin Liu , Lorenzo Bianconi , "David S. Miller" , Sasha Levin Subject: [PATCH 4.15 016/168] l2tp: fix missing print session offset info Date: Wed, 11 Apr 2018 00:22:38 +0200 Message-Id: <20180410212800.910643257@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@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 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hangbin Liu [ Upstream commit 820da5357572715c6235ba3b3daa2d5b43a1198f ] Report offset parameter in L2TP_CMD_SESSION_GET command if it has been configured by userspace Fixes: 309795f4bec ("l2tp: Add netlink control API for L2TP") Reported-by: Jianlin Shi Signed-off-by: Hangbin Liu Signed-off-by: Lorenzo Bianconi Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/l2tp/l2tp_netlink.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c @@ -761,6 +761,8 @@ static int l2tp_nl_session_send(struct s if ((session->ifname[0] && nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) || + (session->offset && + nla_put_u16(skb, L2TP_ATTR_OFFSET, session->offset)) || (session->cookie_len && nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len, &session->cookie[0])) ||