Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5854524rwl; Mon, 9 Jan 2023 00:14:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXuj/gDE6HINE811cN34nrSo3uiaUcJAb3ZcZs05Cy6U6a6TDlH1ukI4yDc9W98ih9PE5o8E X-Received: by 2002:a17:907:9712:b0:7aa:491c:6cdf with SMTP id jg18-20020a170907971200b007aa491c6cdfmr67929013ejc.18.1673252050486; Mon, 09 Jan 2023 00:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673252050; cv=none; d=google.com; s=arc-20160816; b=sGnlpbz/lg4VVNfo2y3vaBtmSM73gTjW9lu9BgZvv6RRvJrwhedoMIQgO+cNtl3w8j JFhDqJ1KQPTmwCMl499xp4c6HVU1pwaHntE8zV7QUOU6JvkTi7XkxtEaBOFsBHWwaTCi 5v3jfHTiV7Y28Xx6tnbYqiMFHP4LxAqIJyM1usVzXSoYMAQ1EVrgFCJBf9lpF1Ye6rKS 6hC2ZZHnoLXZvNZ3/TTqd9jKtBg5MnxGIduFKQb+bCsSjagA9h1izSiQNMi3BsZWZfSd tq3zw9pDxSvRq6dYB7uxj/rHsZ+ScvF7u2yISM0B75V3MP944xrLuxinDpzAr75Kh9Qo OvcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=qZdA1SQ4LNYhbA2ZC5WcorYazcyRn6Js/IHu3+ZnmCE=; b=EyuHWFEg0v+SYWqBVt7V2by12DIijSxTUCfiyJy6JDkoi6FswW0zmXvKmvkqF4oyyj bQot5z7881E0Px6hQ6cLSsCSWa3qxf1i0JVLXS9elsyzzEpo3wG3a24fKEDDlcpCo3nc FnC0YTFssThiGscnmMRFdFQ+cm60NOjkdSnC3pjt3DxaX7d9dkDbd9NtsOsTuN4xUaOE b2MXQhDYGPiYjgZ4eLz/YZXahy7Q/NUx/G9pinXzXsM1RvE8AXfQKPsuRQO+SvFVYY/2 b7j3qnHKAWAn7CRM9mJI2H7yuYEEgc/DSyLyJ6j7CGDy5YWOFjCJ9Ws+Z9erP+C0sZDB qmig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sCjHjg72; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv14-20020a17090760ce00b0084d4733f920si2300290ejc.188.2023.01.09.00.13.56; Mon, 09 Jan 2023 00:14:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sCjHjg72; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236230AbjAIHk1 (ORCPT + 54 others); Mon, 9 Jan 2023 02:40:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233238AbjAIHkU (ORCPT ); Mon, 9 Jan 2023 02:40:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03D7612AE5; Sun, 8 Jan 2023 23:40:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AD304B80D1A; Mon, 9 Jan 2023 07:40:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 4BA77C433F1; Mon, 9 Jan 2023 07:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673250016; bh=TN07+vD/SnTIBZSHGqRC3RoFx+3nZk0Ja9sAyNZBimU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=sCjHjg72NoNCkg67Awqex1+Il9Q0GkgKy5kLHFgoLa6qWqpQ2Yp8H0YrwK52xwxbf knMk6S5K0+f3Q4r/ZSPvN+y7f3nRAloQPX47yHb86KcquKtuEZD+BRS7Xx9GMotCqk zznVtKn2/4mQ5KdkApMcW/eyJXp7u4pOLFF7t2SpGLNg4kX09d+15+6Ags+XKDvdzc edukG8cMMg24uFO3L/G1JRfUplhse+hhfIQBRX6K7hqbhkiiIRk8U/8xkf9rUxp9jg htGLI+7gQZXIV64wlsDUUywglBomsFVWqfcVAqz/vZiUFrtedThL6/O3gcN1cmis6R U+i4v90locjsA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 2B73EE21EEA; Mon, 9 Jan 2023 07:40:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] mlxsw: spectrum_router: Replace 0-length array with flexible array From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167325001617.30057.7118452714297454499.git-patchwork-notify@kernel.org> Date: Mon, 09 Jan 2023 07:40:16 +0000 References: <20230105232224.never.150-kees@kernel.org> In-Reply-To: <20230105232224.never.150-kees@kernel.org> To: Kees Cook Cc: idosch@nvidia.com, petrm@nvidia.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, gustavoars@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (master) by David S. Miller : On Thu, 5 Jan 2023 15:22:29 -0800 you wrote: > Zero-length arrays are deprecated[1]. Replace struct > mlxsw_sp_nexthop_group_info's "nexthops" 0-length array with a flexible > array. Detected with GCC 13, using -fstrict-flex-arrays=3: > > drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c: In function 'mlxsw_sp_nexthop_group_hash_obj': > drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:3278:38: warning: array subscript i is outside array bounds of 'struct mlxsw_sp_nexthop[0]' [-Warray-bounds=] > 3278 | val ^= jhash(&nh->ifindex, sizeof(nh->ifindex), seed); > | ^~~~~~~~~~~~ > drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:2954:33: note: while referencing 'nexthops' > 2954 | struct mlxsw_sp_nexthop nexthops[0]; > | ^~~~~~~~ > > [...] Here is the summary with links: - mlxsw: spectrum_router: Replace 0-length array with flexible array https://git.kernel.org/netdev/net/c/2ab6478d1266 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html