Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1616609pxb; Mon, 11 Oct 2021 09:33:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbEKXX8/tVNIDAh799+RmlNJuKd467syFpDyZwAII+Jw7UwItpOMIhZ1Cs5GeDuBCCpYSz X-Received: by 2002:a17:906:a082:: with SMTP id q2mr26612183ejy.535.1633970009489; Mon, 11 Oct 2021 09:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633970009; cv=none; d=google.com; s=arc-20160816; b=skjubbuCcphXQiAfKF8r+C4Kt3rQHv//qYa+BKodDJd0qMxSJfmm+/LEkRILt3zfcS xl2XO8tCGUw1X+U00rcw46eALZM5ubqajQoubqzAp9+GWFMTd95PC2bqCQKh8vycPisg rC6jiIKR8UNqrmd3XT70UHiyhhE2InL/XxHsNH+7bqM16PNlwvdGZ/n40J3MTZOKGdDP bG2CEme5O6WkY/z1/9lO7eSjS+uhdJexeOt0Ikt4dtQ1KDnmzQ9Fla4THAFoCscmBR4j EB0mBB/6LC3olTJjUmE2ZqLeMD/6oAYcFrCbrtU9k4wSNEIIiwLY0LYalYpkR9cZCLju cm0w== 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=2bGi/eIVsUGipt8bDpVt8lb29VedFI/XdHXZFbvWpnU=; b=svidspI62x75flH9IjbQdV4kt+/C9r5l+PmZz/cNb2PnqsF83zcLx7ZClr7xTvpJG/ TOlZVYwxVcku1Kf64iymynCwSdO3uSKa8qczz3rUBVunszrp1FG5iRbRP3jjkt6cJxpp bjWXJYjnAb83DBvSg7VHPDxbShObdMaG0GiAfFMQR51/59VtJs67fHhCTOK/6kYgWhZf e9+Fzn3pPSOd+C+jX3M5knqOtm4qZAW0Sjy/a8ZdZlHSxzY1xuoE+noM9ogqdTy9LlXB OpoG7iJ30177SD6LjCpb+UDKDqkXag08/MC/lidqvaRhusUlmeuh4/cEHbmLrsrrgM+G ZbRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ulq+izpf; 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 o11si14697735edz.228.2021.10.11.09.33.05; Mon, 11 Oct 2021 09:33:29 -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=Ulq+izpf; 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 S237971AbhJKN5s (ORCPT + 99 others); Mon, 11 Oct 2021 09:57:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:41534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238062AbhJKNzw (ORCPT ); Mon, 11 Oct 2021 09:55:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AF5BE610EA; Mon, 11 Oct 2021 13:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633960389; bh=uKp5nNlkCRg2LfPjbHVeX3ePVgXRkH3A/vAn4KVYOHg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ulq+izpfTEcjMM26Jsw1vTGPJ1GDgbE+jjh6TKyH2SQiNMQpVZ4VKKhA1PP7MGM1a Tip/EiPFL6Cz+mvrtYvJk2N4ZrGh8IBKuiCKcl/QwLAqAa1SKukGDqyMqyNyc2G1Ku 2KE+yTILVJS+RzHHm+50Pohq5TXuzKxzbAdLdTGM= 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 5.10 47/83] net: bridge: use nla_total_size_64bit() in br_get_linkxstats_size() Date: Mon, 11 Oct 2021 15:46:07 +0200 Message-Id: <20211011134510.021490361@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134508.362906295@linuxfoundation.org> References: <20211011134508.362906295@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 73f71c22f4c0..bfe6ab1914c8 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -1590,7 +1590,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