Received: by 2002:a05:6520:1682:b0:147:d1a0:b502 with SMTP id ck2csp5596886lkb; Mon, 11 Oct 2021 09:39:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkbvvvv2tGa+XnaiGA+u7ePuB7tKXYHNl+wb8DdMN7SCHNZRJO9Cp6D8dJSWVmmU63+lHT X-Received: by 2002:a17:906:134e:: with SMTP id x14mr26543988ejb.72.1633970366806; Mon, 11 Oct 2021 09:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633970366; cv=none; d=google.com; s=arc-20160816; b=AtuB8ahiTLcg/ARvSHcVo5NYrzMo/YyZOLgAP5HwfGUV4fvynMooOmu/HejZw1e1ze tASWrA4dBtoK/VU3hWQsq/JBC8p/Rv7sK7hWcOetKHxE1vVzl7yk1Uz04TcUQgw6nzSq V8H160VpdhRLh2mQXp28T0bMEv7ZbV69yOMvVUI8Zhs2ho5Igq454odYVFnSvyMoq+1u 1bwpYwP38D1t3mHCcyBk5bgWwqDLmy5L0gF86ZjcbHlPtMnVkDnU9Ll5uzfGz8Jaj1g6 PYgpY7Uv+nOX1wbGgRTS9TkkDzJZxax+FMy/z8fofT1S/hWB7jG03YRgJcSL5rJSfLtN MArA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=81O1EoX2XdaQICRIcpn4mJBlvjck3nXrUNMrbZOGcGM=; b=yUNC4odN1BqNOwoE3+FyRW3AQDwZOh0D7qA3eN4Bq1hKLYJB/yFxHatKaupDshepju R57pWWctCRyXgytB/BEAWDSwAQT+Fb7s7f0MWcQ8CvzkHcT2WTsxpdg9ABKaEE1SGCV4 7kQPYrD6YSdHFkXpxRIaizK9RLU3P1KPDxXxdgj6wRqZqPteFSr2CCdtZA2S46lI2rrP ByQCPtxRvdNCzw1L5XDvefUG4lhrNmhKO7vFzGj3/wno2u42Ltfw4fWBdB5QaM8Iv+Rg AfGa5Ee+fhkLTRrW//xqKsSfMzVOT8TV3lOB2g3/HKWphoOm/AVhFB5GeIHVN1QQkze5 tAZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hx3rsTE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si11386474edh.518.2021.10.11.09.39.03; Mon, 11 Oct 2021 09:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hx3rsTE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244265AbhJKOTp (ORCPT + 99 others); Mon, 11 Oct 2021 10:19:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:39962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241301AbhJKOQ7 (ORCPT ); Mon, 11 Oct 2021 10:16:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 385C961361; Mon, 11 Oct 2021 14:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633961168; bh=bYLzhv6JDki5/TYDKSUKw9XApayUoOgIPSPXSFYCqnw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hx3rsTE0oXo4CSJUXTdab6tbhtZp+E1+V6Q9g3BwVPMGh97MiZ4jSNZrR+VdpQPfr TA8YCL3DQEK2yoLl8NWJqa7lToO4VY4du8Z/Qeg+5McBeE1lpnym9bCP2TstnUBQf7 a4XmpNQg9S3woRrFKHxDnjRKFgco37tHmTXUxCLA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Nikolay Aleksandrov , Vivien Didelot , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 19/28] net: bridge: use nla_total_size_64bit() in br_get_linkxstats_size() Date: Mon, 11 Oct 2021 15:47:09 +0200 Message-Id: <20211011134641.325377786@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134640.711218469@linuxfoundation.org> References: <20211011134640.711218469@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet [ Upstream commit dbe0b88064494b7bb6a9b2aa7e085b14a3112d44 ] bridge_fill_linkxstats() is using nla_reserve_64bit(). We must use nla_total_size_64bit() instead of nla_total_size() for corresponding data structure. Fixes: 1080ab95e3c7 ("net: bridge: add support for IGMP/MLD stats and export them via netlink") Signed-off-by: Eric Dumazet Cc: Nikolay Aleksandrov Cc: Vivien Didelot Acked-by: Nikolay Aleksandrov Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/bridge/br_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index ec2b58a09f76..c00cb376263a 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -1511,7 +1511,7 @@ static size_t br_get_linkxstats_size(const struct net_device *dev, int attr) } return numvls * nla_total_size(sizeof(struct bridge_vlan_xstats)) + - nla_total_size(sizeof(struct br_mcast_stats)) + + nla_total_size_64bit(sizeof(struct br_mcast_stats)) + nla_total_size(0); } -- 2.33.0