Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1367843rwl; Fri, 7 Apr 2023 14:59:06 -0700 (PDT) X-Google-Smtp-Source: AKy350Zj6UrXQM6HHRp5mGe0BQvbEVtABygvQXzMRVrSvSa00A+APnLp9QlO7jKdyRGFSb42VG3z X-Received: by 2002:aa7:da58:0:b0:504:894b:1bc9 with SMTP id w24-20020aa7da58000000b00504894b1bc9mr298457eds.26.1680904746581; Fri, 07 Apr 2023 14:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680904746; cv=none; d=google.com; s=arc-20160816; b=nJFiTbGl2nFY79ppJ4SdtWMiYB8o4/vI/s6vrNsXBIKH/9cktWwOkxTDzomRFZFLMe WqpA+0mAfStA7ki88TELlBzL7EzbfVKNnf1C7bGiVjH09Y2BpkbDhMfNvCD3aLjJNeiY rjDt3pxFVWEsjB48qGAvmyUtWmUKBh4YHDm/KQOABj2+0dF2Zln5vWTZl/erEmASRO1V a1MmYBWaDpkn+NIxTX9LajPktq+oZbQX6II5VZl4YB0drjy/gT7MACGu5B/Vr4C5/NJv P4z9psMf0i/68KWRiBuXkE+Z1Riw2rzET1/f9a2mEC2HthRwcrpgJSIPiZCRMRBFf9nL ONyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=60/gaWjqwxGxXAf1RFA4/q2SLdJZklouAa0oPsZCWds=; b=pj11eWKHKEanQmsbWgXolhd9OQl2TGS67KAmBn1/LCFKiZ2SSe10mAiAjYOvvbzLNj sCdkY5LzV3lSQpAHk74E2C/EtDt4WJs12SInluis+vp5JLY1lOz24UB34fEAqU4aoUGI tPHgg9DZjx5KjetLHcf04YO9+DdeeQPrb0N/wzhOPsLYsxdPoFzBub0+YSlYX1OwaXT8 3xPOorzsJc2HHD61gAD13Iw7fO+hH7BGsFrfyWK5gRqTCYxhEZCRI4XxTVwyPyZ6oM2Q 71AV+/s+m5kt4jdJSce+Q6ZHLzMjVt7GWTS+xBu855z0Zd2Fgz6V79HosYC67FZdXniU tE+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Qhw2EW+4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020aa7d80f000000b004ab162a8415si4206413edq.283.2023.04.07.14.58.42; Fri, 07 Apr 2023 14:59:06 -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=@google.com header.s=20210112 header.b=Qhw2EW+4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbjDGVyU (ORCPT + 99 others); Fri, 7 Apr 2023 17:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbjDGVyR (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 135D08E for ; Fri, 7 Apr 2023 14:54:14 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-54c0c9de33aso62737697b3.15 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=g/Q7J/ORFxp+8ZGKYQfFzFstH6W06CtMEbg3KprbZFeTggRkpTLSlrw6DGY0dJL4pw e5RkkVLqwVxbvU3CZsCy57KDVVczHrqs5QBV3XHY8WMIkRssCckP0ZKP/FKfxMpEkYEW pDjbg/cFWmDxQjqqFSAmtZGenjGasJmW7abfXqPym7lEHkhtG92+70+aRvpUvMdtbJpZ yc+7bdno0Kqcm4JYNFq66d7cNsoFRQFJB2V/qkdX3/ajHVxYRVFqHjyjzg+jQujcuwv0 HyLCEyIMIVMWUwlRMdkWPTv+iSlWpWRPzoQE3hrMn4tQwZVsfxOER9BoGAgpIfMuh9+q HlkA== X-Gm-Message-State: AAQBX9dbyBVRQMMDAbwxc49iTUwkGCvcmUFRmiIdfDHhix2RsGEhCO7n zeE2NV+5SGVz5GCe4RKgk2H9bxsVZSBD1klX5W0= 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 -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 --- 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 -- 2.40.0.577.gac1e443424-goog