From patchwork Fri Apr 7 21:54:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 13205442 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 12BA1C77B6C for ; Fri, 7 Apr 2023 21:54:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjDGVyU (ORCPT ); Fri, 7 Apr 2023 17:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbjDGVyR (ORCPT ); Fri, 7 Apr 2023 17:54:17 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1368E5FCB for ; Fri, 7 Apr 2023 14:54:14 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5458201ab8cso438809137b3.23 for ; Fri, 07 Apr 2023 14:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680904453; x=1683496453; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=60/gaWjqwxGxXAf1RFA4/q2SLdJZklouAa0oPsZCWds=; b=Qhw2EW+4aO8HOMqvj77ihzfS9g7ZnLOebOfTVGs6Bp9HHfKeM/qrmTLAdJ4l6ISnyn RxMjmlopmXxB72k1bOqeirBew5mWplug6Ewd97bK1c3CHX6xS57pmGQ+IXE9usrR4rqu CxicbSo6xuyGKKBUUpSlvjtrI4dqhONtSgvPMZBVKouvL/OLtM04DwPcvFAbakyMoCnH 4nuyN5Mdb437ug/HXqRLDNACmbsJZBnLF42y8Ynk40Q36E/WunmTExf0Zt4zDPxozIlI 1LO7SJm6yWEA+Nl785MDoP6Nu4ULYAKyV1tUp2ac/sm6ZgSxwOi0KJQ8kCFw6DAVvFDJ 13rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680904453; x=1683496453; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=60/gaWjqwxGxXAf1RFA4/q2SLdJZklouAa0oPsZCWds=; b=sLeAcMP5FtpAJd8+3+0C6ZmycpQclrbNEWHnLOvNAh79BTqyQAhYLjYg94oyMbW2HO ieLsXw7xXP4ItEM685t0Ofc5pO5vJhOsI69PFqkCl7rcXKpwCk/dgGYZE1SayIHF5kj+ pmYMHZoljKVrKS7yxhnfgXLPheCNQH+FTvpbDTw1hyjmsrDcHHp9CyZPqJbIoMet65qQ /iLSKuCKyAUK3v5a1qtRlo0uU8/vi9LObS9EyedCFBKzwahD9MchW9hN9hNyuy0bcuys V9B1pRz9+EqY91CO8ZomLXjTmPS9m/U9/ypm9lT5YGWU3xwpMRF6jAdjK6Cfvwe9Mv0L aM2g== X-Gm-Message-State: AAQBX9diLo3pCxIlU22uacfWyRa8LbbfWNBXEXeFa6nvHbQOdGn0Q7Co sUAfF/gF3hOWQbUEtLmeZNO7VNsUqcAP9VNMOJw= X-Google-Smtp-Source: AKy350YZGLQttBsJBiSzvsH4GXxX/gr2XTEnt3Gm4td0CS9uL/uv9ncEDsszE1P48ehWX4928Not5n2uGYBZW+FTRjY= X-Received: from ndesaulniers-desktop.svl.corp.google.com ([2620:15c:2d1:203:5eb4:e720:fec7:a2d3]) (user=ndesaulniers job=sendgmr) by 2002:a25:be11:0:b0:b7d:4c96:de0 with SMTP id h17-20020a25be11000000b00b7d4c960de0mr228715ybk.5.1680904453185; Fri, 07 Apr 2023 14:54:13 -0700 (PDT) Date: Fri, 7 Apr 2023 14:54:06 -0700 Mime-Version: 1.0 X-Developer-Key: i=ndesaulniers@google.com; a=ed25519; pk=UIrHvErwpgNbhCkRZAYSX0CFd/XFEwqX3D0xqtqjNug= X-Developer-Signature: v=1; a=ed25519-sha256; t=1680904446; l=996; i=ndesaulniers@google.com; s=20220923; h=from:subject; bh=C5/yj3qDa9KhR4UNMrn1PEBO+c6lL+GF6BnPy8SNCPE=; b=pIUDMTLAc1jlTZb6Z0m7DMdK+Ax1Hgzz92XKoj37sCgoRZKH8ki7vbYVV0XRchPisfI/FnNeR2bn plcEouwqAu8IQbI4r2ZX1l3w0OCcB2wrdspMuUqOfJy5KMBscdN+ X-Mailer: git-send-email 2.40.0.577.gac1e443424-goog Message-ID: <20230407215406.768464-1-ndesaulniers@google.com> Subject: [PATCH] ubsan: remove cc-option test for UBSAN_TRAP From: Nick Desaulniers To: Kees Cook , Masahiro Yamada Cc: linux-hardening@vger.kernel.org, Nathan Chancellor , Tom Rix , Josh Poimboeuf , Peter Zijlstra , Miroslav Benes , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-kbuild@vger.kernel.org, Nick Desaulniers Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org -fsanitize-undefined-trap-on-error has been supported since GCC 5.1 and Clang 3.2. The minimum supported version of these according to Documentation/process/changes.rst is 5.1 and 11.0.0 respectively. Drop this cc-option check. Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor --- Masahiro, Kees: get_maintainer.pl leaves much to be desired for this file. Can one of you please pick this up? lib/Kconfig.ubsan | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index fd15230a703b..0e7ad0782399 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -15,7 +15,6 @@ if UBSAN config UBSAN_TRAP bool "On Sanitizer warnings, abort the running kernel code" depends on !COMPILE_TEST - depends on $(cc-option, -fsanitize-undefined-trap-on-error) help Building kernels with Sanitizer features enabled tends to grow the kernel size by around 5%, due to adding all the debugging