Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1403939rwb; Thu, 6 Oct 2022 12:30:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oXbTTwgg5AS/NlBsn0qoyxcH4yP0doMY+U0fctTFHh6eF3QPjVr3oUw3kPU7Q1hR/a25T X-Received: by 2002:a17:907:a46:b0:782:1c1c:8141 with SMTP id be6-20020a1709070a4600b007821c1c8141mr1145556ejc.549.1665084615495; Thu, 06 Oct 2022 12:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665084615; cv=none; d=google.com; s=arc-20160816; b=EAy8ydofhZ4skD6L6D4kYY32yl0S2BLj+eR/bUdUNxgYwhYeHVFp097hNVmZ6j9MMc hNUxzDcDdZgbN2DpvbqWZBAxfBqxwKD8XCq3/Av3REwEOYryMk/0DHBoXLCGXBaZk/4g n3/4moRnbZCe1UIG2cioklBTaBwXL5hWCNPYpF0YoTlJwokO+sFSoyWYbN+r8BRgbzwQ aBd4Ki6sHkX9hqPMYoF+MLg3Pdr6mIGA1X6l0mndVQeahea0iqNsHCxKVQVgTqXiYh+L vmTzeiE0qTLptsvNh1EZvDTGjt9BCAVpyTWUorTov/p37b30H9nA9S7uB3CIFLrAxEcH EjJw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yDdKybISWjOBihvP0li8ufgojX9q5NF4de6wdOs2bcU=; b=sRCJ/6i92kOVPSZVxB8wl4MW4nOOJJO5PhwLKHIybwa8E2fib/JXP7EhSu7vcisnfq C5eu0d4QKoOBnSaLGbES3Nke4j5FlE9bp2LGPg3Qe54mvzFjjhop+BLjRMT4zTn9srI/ 3H5u+ximTePrQfAADQlzXLXQt0Dc6d0Flpp9joLzVo0/LEBBtmg8ReGeXrrjFFVgSK39 8wOBaFiq9S51RGP6yzRhI/bd9lAI4Xd9owS8f37DRyKrijXHQ3EKvBJhGj9k8n8o6PB8 kw5VtkCIP2aOUyQUkBKWpfDX6xAiG7AL/UwaUpdx7pzXwcP4Yqs/GTh6UMOD5zJzOBKa mDhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ArGG/Gr6"; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz6-20020a1709072ce600b00783a5f78700si341335ejc.226.2022.10.06.12.29.47; Thu, 06 Oct 2022 12:30:15 -0700 (PDT) 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=@chromium.org header.s=google header.b="ArGG/Gr6"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231826AbiJFTVE (ORCPT + 99 others); Thu, 6 Oct 2022 15:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231977AbiJFTUy (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 377EA8D0FB for ; Thu, 6 Oct 2022 12:20:53 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id x1so2582840plv.5 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=OQQRLo9Fitf7g93Gk4aA1cmpt5EmlGIegt5GyS0m+DqLHcw30cjJY3K8bBokjJuPix hMdTh5wxKH3IppjJfo7Cp9VncMHrhk66JGsLdys54GjmRNn6yX/3k8zS36FMXl/N38Ps ZibShFqThwBe3CVrTmOnxmFQNiPjnwcUJn8VUKMuj62ztJOEX50IyVylEGfwFnQSmo2n 7/ddA18us04BpsP+QCfPH9OOVH/QPsP06J+94KMOgtW2E/zQ73YbYDtgINNc8L/t0tCv IEaW7kdBjHUvBUphOjbWYcB03TldfGgpFTDPHoXIgrWfp7Fjyl1hCcQFtSxCIQk3kDBG 8NGQ== X-Gm-Message-State: ACrzQf17qGVleL2UkIqw1NA9AoVs0PbU1jipxyj4tf+jXKdKCWbtbzBT e1LhhbkheieYUCoH6Ly0v7bHtQ== 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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