From nobody Mon Apr 6 21:11:27 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF835C433F5 for ; Thu, 6 Oct 2022 19:22:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232025AbiJFTWD (ORCPT ); Thu, 6 Oct 2022 15:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232072AbiJFTU6 (ORCPT ); Thu, 6 Oct 2022 15:20:58 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D9DF84E5D for ; Thu, 6 Oct 2022 12:20:56 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d10so2947125pfh.6 for ; Thu, 06 Oct 2022 12:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=o0sz4YV8I6xJq994JzYjrxpMVxoZUTAxkS32TV/i12o=; b=SKbqVfRbeTgnf4D8/CD3LpgaxYpAoCVyTbm553MqSfFjg9QF3hxIv4dllqrBOMe7ZG YhwvBzv7VMOZLJVi5Zbdtg3d25wSP6KiALB5yCMxWIi69eoq5l3ck76SFkO0zPOHX5C+ eXCss/eLi18BvattmCV4jvG18Kn3chFDmlvqU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=o0sz4YV8I6xJq994JzYjrxpMVxoZUTAxkS32TV/i12o=; b=qDPrcagAwa5vosZNly3yHGfz/VF+oVeZ/H+oFhDHHdcRC5AVRoSGxzH67erIirzHG4 /jwbv4mWNKpHKNFPQlVRboAo1AYdBDAwA18zq99lWwpF9RM2RVl+YM/mV7SR9aGy4XTB jh6DhHThih9hJspNU+cYYXWYgbq6FubB8MPcLFqB44Kpo6gxQEG4ZDcxVwniyPZ3RlML pYvITXtWDyahW149VtMktXnMzLiVO2m2/1Dfidz0/GACHmWw5VZvmngBnn6xRTp3nmmw eX7nEiksfuKBxs6f8CnwQH5XRhWPRFSv4t+QEoclwb7igkVTvTaiXSZ9/HlOjwXlRpHY vyng== X-Gm-Message-State: ACrzQf3IM5iNPPTr1qD2i20SLfmT729k/xp1Kv53JDnNPFRj8euxL1s0 af0oiF2zdg99FgosLxrau9JUZA== X-Google-Smtp-Source: AMsMyM7DHGS2j6S6qg8i6qoZJaoYNXEAww2nyZu7uKQ8jkBFYsFCiEBxERMt+2VXZSXy6rsRp1fOMQ== X-Received: by 2002:a63:fe13:0:b0:452:2b86:50fb with SMTP id p19-20020a63fe13000000b004522b8650fbmr1148757pgh.167.1665084056135; Thu, 06 Oct 2022 12:20:56 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id gn21-20020a17090ac79500b002086ac07041sm67230pjb.44.2022.10.06.12.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 12:20:55 -0700 (PDT) From: Kees Cook To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Kees Cook , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ethernet: bgmac: Remove -Warray-bounds exception Date: Thu, 6 Oct 2022 12:20:53 -0700 Message-Id: <20221006192053.1742965-1-keescook@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" GCC-12 emits false positive -Warray-bounds warnings with CONFIG_UBSAN_SHIFT (-fsanitize=3Dshift). This is fixed in GCC 13[1], and there is top-level Makefile logic to remove -Warray-bounds for known-bad GCC versions staring with commit f0be87c42cbd ("gcc-12: disable '-Warray-bounds' universally for now"). Remove the local work-around. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105679 Signed-off-by: Kees Cook --- drivers/net/ethernet/broadcom/Makefile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/broadcom/Makefile b/drivers/net/ethernet/= broadcom/Makefile index 2e6c5f258a1f..0ddfb5b5d53c 100644 --- a/drivers/net/ethernet/broadcom/Makefile +++ b/drivers/net/ethernet/broadcom/Makefile @@ -17,8 +17,3 @@ obj-$(CONFIG_BGMAC_BCMA) +=3D bgmac-bcma.o bgmac-bcma-mdi= o.o obj-$(CONFIG_BGMAC_PLATFORM) +=3D bgmac-platform.o obj-$(CONFIG_SYSTEMPORT) +=3D bcmsysport.o obj-$(CONFIG_BNXT) +=3D bnxt/ - -# FIXME: temporarily silence -Warray-bounds on non W=3D1+ builds -ifndef KBUILD_EXTRA_WARN -CFLAGS_tg3.o +=3D -Wno-array-bounds -endif