Received: by 10.213.65.68 with SMTP id h4csp44458imn; Mon, 19 Mar 2018 19:01:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELv/IKP9NPKr0gQrDKR1P7vKUkxAx29vvsSgQICcjTAmjCkVG2EDHyv4oKHSU+lJeqn5q4rq X-Received: by 10.101.87.138 with SMTP id b10mr10715157pgr.241.1521511261271; Mon, 19 Mar 2018 19:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521511261; cv=none; d=google.com; s=arc-20160816; b=OyUIzAGi3iSa+OIuBohOVDSuEXR8u/y7A10nTXHeojzauv7cUofCafN+24K8nPJU8M G9Et3EV6CD9ml6pz4iU+sAk4xn18Z2kmGiGJBVcxba1af/G5hB5JDNeucb3jED4NEItE pMvLdgh7Rtarew/R+SCk92vVli0nHdNrBdRirBAGxb6CwN2Pycw3IcRKjMU0WYO4+Uw3 aLGe2Mlo2ja5yziozo+T4LRfuU3uBTKxzCK288N9YZU07S+rDTlhhcRtfVTJaW8GwVT4 zJaBuRvK+ELB/10RFQbzQdV64cO2Y1SPSC8Yo1eHq1XPhT0aGZNkkDGnAdxWBS9AKT7C 6wGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=PKevWP7Ne+WFf5IgB21l33Pjxbyj3MCGRe2Hjre6Y3M=; b=TAJaFF8jeKt1psub6gksnLA/rdJYa+CCfGOywehY5RxD6GXlkfq1TK9asHub6lIZIu bg3gqHvylmkUPdIahed1zEO9pSP142dq5+1llTWzF4PCqWKMA7CQG+74uLk9YMScywZL T9y0mIDvEDXIP366fw3MUSonpxJLvssyw+quBxQnAicM/m1M2CV4YHXLbReZd/E4CyHn 83kAu09DIuvn9ap/g+S6EWemCd+K1Mq7N7NcJydByjRLHe4VHH8vgpyLgK3/62Pf6cV7 ui6LrKZe+lZiZIlUBZhp20zGlLPPT7eEBw2iLbZXur+1caojSB63+0C/TzFTHuWOyACV 7P7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=RQnWmnx2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si414237pgt.480.2018.03.19.19.00.47; Mon, 19 Mar 2018 19:01:01 -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=@microsoft.com header.s=selector1 header.b=RQnWmnx2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933517AbeCSWkJ (ORCPT + 99 others); Mon, 19 Mar 2018 18:40:09 -0400 Received: from mail-cys01nam02on0128.outbound.protection.outlook.com ([104.47.37.128]:6976 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933087AbeCSPrV (ORCPT ); Mon, 19 Mar 2018 11:47:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PKevWP7Ne+WFf5IgB21l33Pjxbyj3MCGRe2Hjre6Y3M=; b=RQnWmnx2P+pGQJ0yxV2p1YDsXsfQki/kaipOResM9fE2XyGFp2TubC0GRun7xLNyb6jPc9sbwFq9tiDoj0T+HLuhTteH0VqFvkw59Iu2joIMW5khluQ8fTC25U1UI/b4n1XUZpHzJf1HaX1VhmQQxWDIjZtxNhKqInxWZwmzgls= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1013.namprd21.prod.outlook.com (52.132.133.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:47:15 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:47:15 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Hangbin Liu , Lorenzo Bianconi , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 016/124] l2tp: fix missing print session offset info Thread-Topic: [PATCH AUTOSEL for 4.15 016/124] l2tp: fix missing print session offset info Thread-Index: AQHTv5mNp/rvpHuM9kKbKTO2SObHTQ== Date: Mon, 19 Mar 2018 15:47:15 +0000 Message-ID: <20180319154645.11350-16-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1013;7:5wcmd1E0/GKw9Xlp+pRMhtAziSHOQnOE1ZUukWuV5UYuqQGaGpsTi54f9oyQlbUYtELeHJ8ECJpj8QB5q9WO7iC8S5aA8n4n5D8v4HdSoT9cgX7oeg/dcjF+Cne4iWbNSLFUkCPYyw03uTOLPut7r8I674FsPKSPgARaE2vLUxrXdiTFQeINHaaYD61grJT9KIZQkf1n7MiZPJia/rviQSKaEKBcAdnC35O3NMoChAY8swinEjC/ASeWsiF472fV;20:1qaGCL1N2Q4X/apa4jHghk5tDV2Y51yj3ObcOiZTHnYBubSPWdRiMRqPaeaAobNZAy5dc4uV7aUzDST1B7ld8HgJssVUqkSPWNAxpOvpRx8yeL/APBA2CYmAz4RWYFFJCyHpV7b/jWMp3JJCCtVV/RqYmQihNiCO/jXldS6Wrsw= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4a2cea43-3eb6-4857-ea10-08d58db0b050 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1013; x-ms-traffictypediagnostic: DM5PR2101MB1013: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231221)(944501300)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1013;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1013; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39860400002)(346002)(376002)(39380400002)(189003)(199004)(86612001)(316002)(26005)(72206003)(4326008)(25786009)(110136005)(10290500003)(86362001)(54906003)(53936002)(36756003)(107886003)(3280700002)(39060400002)(14454004)(22452003)(6506007)(5660300001)(68736007)(99286004)(186003)(478600001)(76176011)(2950100002)(10090500001)(102836004)(6116002)(5250100002)(2501003)(97736004)(3660700001)(106356001)(81156014)(81166006)(8676002)(8936002)(7736002)(305945005)(2900100001)(105586002)(3846002)(1076002)(66066001)(6436002)(2906002)(6512007)(6486002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1013;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 9VyAoWnrq2H6zcMrK1zoNibPjgY3qQOz0o7Um9lYOhmOW/zmnwohcyNyTDv582+ilzTNx8vj+zqEK2gs/99ARrNs3txhrc08W3gzwfu92mkBds+vd3zmsMB/2OJCYPOQj2yHOx3/M00l1qLAX6C6/iNLeeqI50DA7RWz3JpHodYGHKN50EngpqhMxitecq7pFa/ZTFiz4DYNBuMnIZvP8Kb3LNuEq0riHUxPm356eVq/JSExucwxqgF0o//KV65VsBpcTX4lIGWfgsxXjwr6RAYI3u1GzUF7+fyNAy75CXws1ZYDDGxMGzJ0ToSg/5O4hKze8WPeo8jcd57W9nIazw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a2cea43-3eb6-4857-ea10-08d58db0b050 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:47:15.3125 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1013 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- net/l2tp/l2tp_netlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c index a1f24fb2be98..7e9c50125556 100644 --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c @@ -761,6 +761,8 @@ static int l2tp_nl_session_send(struct sk_buff *skb, u3= 2 portid, u32 seq, int fl =20 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])) || --=20 2.14.1