Received: by 10.192.165.156 with SMTP id m28csp51291imm; Tue, 10 Apr 2018 16:11:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48BMrZlHKJQHJfJH2av60pykaKvwYpkxPI/rUZgFfYIZIDvlLwfmijKy8P0X9TtI5z9SScZ X-Received: by 2002:a17:902:2884:: with SMTP id f4-v6mr2374360plb.153.1523401883563; Tue, 10 Apr 2018 16:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523401883; cv=none; d=google.com; s=arc-20160816; b=sxKzdHsF1gk3HXcSFPrPf+vd2rAj8HJfyUSyPsE9n1BwHhhUiv23DVH2R9LitI9vlq 1ual+KeLr/11Tr0VMLUIvanzrsM1FACRhZ19WPRxy/ypOlOl/3vIBGp7x7J3Af19yvDZ F2TJ1EZhTvvPu4IzFwLsaBPPCsVNI4raH10HELo55okPifYTSJlNc7d8dojY0kJkKo0h Uhx+xs0fcAftYAJg9PS2csD8jtPMvn2fQHPmWYIaGhOr491H6gFwEOSK+jxlJVcMZfFy cn1HrJ9anErsdaQf8x2EtOMRp7jmjNky+Eq8bYVtPCYjDHRsQm8V1eQMCarfpL2GNUYj EAxQ== 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=gooQ9amF4vhYhayEMMzUJXhkm3KH/rOyRs84SZPU3Zo=; b=mytDBZYrBwjQOQ+8OXUeMgcu+AeFxzFwR+Gwpcz1rLsj2AiF7UM00Vxk97/wE3s6JS JEwVxT3EIqij+BUJNJ07pO+qjJr04GW7WfNw0nyhQqNDG5hlFDtptw5I1x8Y25mXuG8r N1c/uPWzu0VrB89lLoOh7ra02o8UiXlVqlVmFMHw+gTEnW4tQ3fbW2bxHVD+Qk+5PD8P L4MHiJEw98AT4TIEqvO1zvEny49oxydJX2sJe6tb0/MCKjUAV24oIQj9kUlq5+q1L5We R2eMg8NsCPzr5qwmVo9HkoDIARdSpx5ux3yMG6bG6z6pp2Wsk42J9aXrbqFquvopZtZ1 P4Jg== 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 w9si2876792pfl.268.2018.04.10.16.10.46; Tue, 10 Apr 2018 16:11:23 -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 S1755414AbeDJWeQ (ORCPT + 99 others); Tue, 10 Apr 2018 18:34:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41634 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755383AbeDJWeI (ORCPT ); Tue, 10 Apr 2018 18:34:08 -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 DCD49CDB; Tue, 10 Apr 2018 22:34:07 +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.14 014/138] l2tp: fix missing print session offset info Date: Wed, 11 Apr 2018 00:23:24 +0200 Message-Id: <20180410212903.781429198@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@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.14-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 @@ -765,6 +765,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])) ||