Received: by 10.213.65.68 with SMTP id h4csp2114020imn; Sun, 8 Apr 2018 20:04:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48KYLDmwGz6d00qWES1/5cLOMbLFw1mh73SNIEuTlkGD+EIipvQUNC3dFJepMCISUiG0J2v X-Received: by 2002:a17:902:9896:: with SMTP id s22-v6mr36989367plp.240.1523243048964; Sun, 08 Apr 2018 20:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243048; cv=none; d=google.com; s=arc-20160816; b=lbs7Y8PPAaFEfChjDLRI4yE0QlwaFFlZgIE9FAsibtBhpGTDOtE3rpULzW8Pfkreb+ 13mAIr3BfvTYNWLxcCylU+ix0lEXIJ4GGkv57d8nH54hdm/et/AmKbDW4LiIbQrs0SNQ S3icxECc3PlzJX6+htNbJDZvP8ow8bnlHi4sgkNyHQvKiAKPuEDK2AkbYkXIB63kDlB+ U+o6PaKqcctYMWesXv5z5bvPOiIMrtuXYBDleT0G73/cpHPAYuOxEkBeo5VXtI51MXMu 8PpsEv43Xd/1ufAK3fibuNuWyd71h9Z4E5HwxLY38LsD11eaZ8yP+5EJj19b0Np5Af2b L1QQ== 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=cXHkeH6C9DTxw/tU4hldLPoQuV9wazRPXfuzBwDFwVM=; b=RjvnldxXYvw0fqb8KST7rE1FdW46Xz/7uqurBCGP40lDotWOn3cG+PjKEggi5/W6TW 0ce8bs6ZnuAYmYrt5bd2DZ9IwyHUnKVBMPgPLL7va1yIYselnmiR5l/P9FBBsFqWBg0n aCbneJbkPMJzckQiYptKL7mLvVd0ppbyVbER2vVPCCIv6J9TwYWN5YvAHrg83/OyY1kf Iv/U7m6GC9owrnxIkILgOU0Guov7PWqXbonklEDhiWOC5bdxqX3GHxTSj/onKl7f/C6n f4dxatHFLUBwZIC3OIbrToH3pxyunLZjhwc77Cx+XA/tMSlHhuSvkLKb5ql1FX4l91J7 g9UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=g3F+DiOZ; 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 195si10477022pgd.520.2018.04.08.20.03.31; Sun, 08 Apr 2018 20:04:08 -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=g3F+DiOZ; 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 S1756373AbeDIAcA (ORCPT + 99 others); Sun, 8 Apr 2018 20:32:00 -0400 Received: from mail-co1nam03on0101.outbound.protection.outlook.com ([104.47.40.101]:32931 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755010AbeDIAb5 (ORCPT ); Sun, 8 Apr 2018 20:31:57 -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=cXHkeH6C9DTxw/tU4hldLPoQuV9wazRPXfuzBwDFwVM=; b=g3F+DiOZoCjzagf1U4sGDPJIM2rxe3aAiyaZOQKgm2EGy9nu5InG0Hp81dsVRrrHp3dLnMD2GoTk5XLeZoo6rJLmaOtwMlukhnceiO+7d9AJEHoQt0RKC6UJ1Uab+vXWIp2LS24mRUxJiv5My9uX/y46jiqJHsSFLPPUAY6z77g= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1126.namprd21.prod.outlook.com (52.132.132.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:31:55 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:31:55 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Liping Zhang , Vishwanath Pai , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 182/293] netfilter: ebt_nflog: fix unexpected truncated packet Thread-Topic: [PATCH AUTOSEL for 4.9 182/293] netfilter: ebt_nflog: fix unexpected truncated packet Thread-Index: AQHTz5k7albMrjKOOUGj2/DewwfaWg== Date: Mon, 9 Apr 2018 00:25:16 +0000 Message-ID: <20180409002239.163177-182-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB1126;7:kS9TpIXGu/WhAHYNawJB5jWOgK/3e5MqGp9+bisu1a00TX4pJhaMJnjOTL4xajYzYhnK9ew5KrDg+dkcjVNaOkHYOSKjta/yWJGoLjYrwnQr55lVcD33FthpOceDmZM7VMbyUiwik1vfa9YDFWe753tSzK664nQiRuU/hYjPOceL2fyNQnIqfVqX9ynln4wyqcSoeaCKrvnkJ1KmdrX0wcgCVRCVOeGPud/yaMzRaS9YZC3VsSwZBbGvOcqtoKVb;20:ftcOM/oVZ564vrjNfhyI6ELezWAVI5Nb7gjfpH27vusM/wI5Ou3Y7rQWFhX58R6skJagrGxIAWFlPJurJv9b1HxAYCh2wz/s4RYt2XCM29Vyvo6LR2ROjUh+oxJ0IzfZJ5e6FzBXjx2IbDIEEHygnE4e8aTJx0BhVDFmghUh3A0= X-MS-Office365-Filtering-Correlation-Id: f986f4b8-c9c1-4c5e-94a5-08d59db14be9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1126; x-ms-traffictypediagnostic: DM5PR2101MB1126: 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)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1126;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1126; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(396003)(39860400002)(346002)(376002)(189003)(199004)(2616005)(476003)(81156014)(8676002)(81166006)(3846002)(486006)(2900100001)(6436002)(186003)(478600001)(72206003)(110136005)(54906003)(2906002)(86612001)(6666003)(2501003)(26005)(10090500001)(102836004)(6512007)(6116002)(14454004)(5250100002)(10290500003)(1076002)(446003)(3280700002)(3660700001)(11346002)(8936002)(25786009)(6506007)(106356001)(4326008)(107886003)(36756003)(105586002)(53936002)(86362001)(66066001)(6486002)(39060400002)(99286004)(5660300001)(316002)(22452003)(305945005)(76176011)(97736004)(68736007)(7736002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1126;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: IspximE+rWgot/iI1l7/BoeImAckiGqxjnnkO0vRbzUAx8aMYwXL4BAU59BjIQZ80tozTSRHdGYsTvK5WmtIOZyH2hGDlU6hl0CZ3fVWjBSj2524H1jo3upeiK+rgMOIRf4di9TRia3Ly32Oy1Wh8RIs9HhX9F3hRuwOePxi61Yi+gIoXfrqPn7B3BNEa04Nxs3c3W9D9on9vVFzDG1ylQQXCCpX17QdN+W+2cOJPCL3aeu3Q1+tmn8wpx8yBHw2dsKF8lerbKjDwZoMSkwaXOmiE+nEAsE2CjJ/dIA73rvJgDLeRV55Jv0GDtgmrHdyapA+lUdVFDSPGJhM6XOapdq6fCewFuZ8qnPP38xiBFDu6MBfEuYVnqXHmJ0cPBN2F6YQVBHAvIJxUC28jdiKOLxmFoiMBLnXgtlt1gcza68= 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: f986f4b8-c9c1-4c5e-94a5-08d59db14be9 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:25:16.7376 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liping Zhang [ Upstream commit 91af6ba7ff16bd7e5919aedfe70aad73a3375619 ] "struct nf_loginfo li;" is a local variable, so we should set the flags to 0 explicitly, else, packets maybe truncated unexpectedly when copied to the userspace. Fixes: 7643507fe8b5 ("netfilter: xt_NFLOG: nflog-range does not truncate pa= ckets") Cc: Vishwanath Pai Signed-off-by: Liping Zhang Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/bridge/netfilter/ebt_nflog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bridge/netfilter/ebt_nflog.c b/net/bridge/netfilter/ebt_nf= log.c index 54816150608e..16d3c8261b9d 100644 --- a/net/bridge/netfilter/ebt_nflog.c +++ b/net/bridge/netfilter/ebt_nflog.c @@ -30,6 +30,7 @@ ebt_nflog_tg(struct sk_buff *skb, const struct xt_action_= param *par) li.u.ulog.copy_len =3D info->len; li.u.ulog.group =3D info->group; li.u.ulog.qthreshold =3D info->threshold; + li.u.ulog.flags =3D 0; =20 nf_log_packet(net, PF_BRIDGE, par->hooknum, skb, par->in, par->out, &li, "%s", info->prefix); --=20 2.15.1