From patchwork Thu Oct 6 19:20:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 13000689 X-Patchwork-Delegate: kuba@kernel.org 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 CFF2CC433F5 for ; Thu, 6 Oct 2022 19:21:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbiJFTVE (ORCPT ); Thu, 6 Oct 2022 15:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbiJFTUy (ORCPT ); Thu, 6 Oct 2022 15:20:54 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 367698D0F8 for ; Thu, 6 Oct 2022 12:20:53 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id c24so2593339plo.3 for ; Thu, 06 Oct 2022 12:20:53 -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=yDdKybISWjOBihvP0li8ufgojX9q5NF4de6wdOs2bcU=; b=ArGG/Gr6+qQRiJ6zFCfTw0V6NXFqPDORtWcQJ4C5zydvkZAFJZaS9aLnRLsbjLtj5K 0vlwd04ljmE1egPFm4Oowb5gIGbFuAri0Sk5MZVtPJMP31jQ8me+5KfipLFNfO7n24ng opf2Ds6+LB+1cFDDOUos4/M5x6qZlC5xEfYZU= 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=yDdKybISWjOBihvP0li8ufgojX9q5NF4de6wdOs2bcU=; b=DuzQ/+JnsrSos+F7G6tUfrvEZmo6GyAV+hJ46CnIF/TfOLSlEso+HhOCy06SJj5U6V ZG2fUYEZsbiWyh5nggIPXKsRc0Qm4lGywWlwMSy2bHD5KJPN9ok2Kg95bc2uy9kj4QoX ZbqzVAG9zu5eRiCabVmdp63KNwNTKp3Ge6BdZ+E8dNs9xGQjbTtJinmQNaVIn/Hg7fQs x2iz8W7g5bCLaBmxhzyxPSrO3clcuL1XZ888LonqQI2bztGLqEJRmpRm3siqpqdG+hfV Iflb0AVZN88A0r6hvg8uKe/KiaX/40l8sZcvTe80fGAS36k6Zf4yREcszWSLd3l3fOxT G86Q== X-Gm-Message-State: ACrzQf3uhI1vD4aKq+x2whZ3sY8mUoXIelTAGkxjv+fXEnzRGOHqh/YI LljFodaFgwC7Lxpq3fqyczverA== X-Google-Smtp-Source: AMsMyM7A2ev3a/+ZEF2jzx3WwYvphECwPlS0TcJLnvqk28CY/FguYSsftr3CIwnX8uAKm5dnpxPgVw== X-Received: by 2002:a17:902:aa03:b0:17f:6287:75da with SMTP id be3-20020a170902aa0300b0017f628775damr1326584plb.15.1665084052676; Thu, 06 Oct 2022 12:20:52 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id c25-20020aa79539000000b00562a0759776sm719705pfp.117.2022.10.06.12.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 12:20:51 -0700 (PDT) From: Kees Cook To: Wolfgang Grandegger , Marc Kleine-Budde Cc: Kees Cook , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: [PATCH] can: kvaser_usb: Remove -Warray-bounds exception Date: Thu, 6 Oct 2022 12:20:35 -0700 Message-Id: <20221006192035.1742912-1-keescook@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org GCC-12 emits false positive -Warray-bounds warnings with CONFIG_UBSAN_SHIFT (-fsanitize=shift). 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=105679 Signed-off-by: Kees Cook --- drivers/net/can/usb/kvaser_usb/Makefile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/can/usb/kvaser_usb/Makefile b/drivers/net/can/usb/kvaser_usb/Makefile index b20d951a0790..cf260044f0b9 100644 --- a/drivers/net/can/usb/kvaser_usb/Makefile +++ b/drivers/net/can/usb/kvaser_usb/Makefile @@ -1,8 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_CAN_KVASER_USB) += kvaser_usb.o kvaser_usb-y = kvaser_usb_core.o kvaser_usb_leaf.o kvaser_usb_hydra.o - -# FIXME: temporarily silence -Warray-bounds on non W=1+ builds -ifndef KBUILD_EXTRA_WARN -CFLAGS_kvaser_usb_hydra.o += -Wno-array-bounds -endif