Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2649333rwd; Wed, 17 May 2023 12:26:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PhbSBtgiDKbFFo8hMXD0cwBDr6h4NWxNZznQ/AfheUcghHzheIYFd5UaTwT6wbJGT/Oah X-Received: by 2002:a05:6a00:1749:b0:643:980:65b with SMTP id j9-20020a056a00174900b006430980065bmr1205686pfc.2.1684351565191; Wed, 17 May 2023 12:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684351565; cv=none; d=google.com; s=arc-20160816; b=zTB+nREj2ZvVQWx93QrfoCQLFzYAGAegq3/I71BK9YumdVIDyZ5zNRroZUmhwZgfvl HRnZ2DcP7mbss8DsRQfBUGO/kh+7kIco9WLri+B7743pvWxxpLM/2IcGykVDNxFW43ej SJPgz4EQ9n894uO4ZgU4S/9t4C3xNedki3niepZwCyWCGVmtbJIMvpP6mgk0ekHUc8P1 djPMUKMtv0UKeWepljCctJpXd8NtZZmWvmjDD0a0lrMoZKCvuhQxYHxKPJXDHb1JiMfV xiUx2NQgvUZhgCfotiJG968GYazY/yKGkTbYct9o82yHFYH6Gxt2ND4/++RcJXH6u95j KUFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wTCrNF1k6eLvgjFBEtoVOllbYMzqAXAFq2VPdBNe0PU=; b=n4v1FnbHVUJbl/Dt02OSeIXKdYXUc08Kl50folfZZCYid/djDbVvvd91WouMxigCXP SkX09lZMhW1+s15dpGmeMVDDWdWaSUhLdwTQBFzDPLzejiZnLG8zE+1XCO2ymrvaBqg5 ibAoe3P2zctkgePGazCC8UmBMbgZ+SPjB3qGDhVGTF8LPSSYjiG2HREjzSJS+WSNgSod /mwK4BZIGm9Kax/gHrKn9qsbSQKQ3aV8xX8mLvyX+E9zpTTuAdMXvpmxxp6uCOh8tCsS wy5/UaqW8vnjGQIqeO9AxFVY0L+wD36chopdWKKBnfTIpR2QkCKDc0htrO+DeK2MlWPy x3gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=1RbKqgNl; 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 z19-20020a63e113000000b00530878c182fsi14659396pgh.289.2023.05.17.12.25.53; Wed, 17 May 2023 12:26:05 -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=20221208 header.b=1RbKqgNl; 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 S229875AbjEQTJQ (ORCPT + 99 others); Wed, 17 May 2023 15:09:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbjEQTJO (ORCPT ); Wed, 17 May 2023 15:09:14 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F887AD0A for ; Wed, 17 May 2023 12:09:10 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id d75a77b69052e-3f51ea3a062so34931cf.1 for ; Wed, 17 May 2023 12:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1684350549; x=1686942549; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wTCrNF1k6eLvgjFBEtoVOllbYMzqAXAFq2VPdBNe0PU=; b=1RbKqgNlFVDn38jbjn+Xyf9v2PZkmr8NlkChy47jOU4d/MCsfICl4HNWXWC54W/pIG 1dofWJXAUWTCZsLtED0n1ndgNbYBCSAPo29fdxJKDrBAtQLgOX9f4pwZf9kS3ghxthb2 N0cN9RM3ETTW9YLxhlOsJZe46DUn6ZX78QPySHArvwB3zQoi3yo5ttMISt8BFPmlw110 S2XVBIeCofavikgM7slybu8BTtRWgBDobDNS6+35+preNvJmtRz207zhxdU79kZEcZuJ wKIH702z053O+wSyqnfucxGZO8MfVQbrjAHBqACNkUsgYmu7+zNA5DF9+/qkjRd2vMvk XikQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684350549; x=1686942549; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wTCrNF1k6eLvgjFBEtoVOllbYMzqAXAFq2VPdBNe0PU=; b=hczapC1AEtsI0IiO88xRuFogDoHianEoaWaeCeGfy7u9Dp83WZwjwxsfUUFua151BY SNGGo8cWyEW2um9+HO9A7vf4IV03q9Nw0gPW9Ax22Ayx10s2dRw+qQoY892Nfeqg7LwA JEUzQdZsl4bHSpM5pjBwH/4kL/kdoIqz37hmKkzDu4/g7MMnYKUnkeOOtUDcgGZeQgw9 b6hC3k5VdtcWpWgEi+Y5FEBUks8Om/VhLj7Ev9GhSILHId4ny9PHjH+vVpVJaMB3YUfF rrPr89Km/yVEkzrauyQ0lFQ/5s6oC2JfT/9xY4IXlFWwzJ8/9z8L9V7AF2TK3Mc/bpJs M/Ow== X-Gm-Message-State: AC+VfDxOpOHpMVQhzo38u6JszZX74rbklC6aXfB7biW1hn2ULACQTNEr MpWUPwcHQPMVcUTgBXoKr6zfwoyw9i66R3EXlAsqag== X-Received: by 2002:a05:622a:181b:b0:3ef:3083:a437 with SMTP id t27-20020a05622a181b00b003ef3083a437mr34609qtc.18.1684350549567; Wed, 17 May 2023 12:09:09 -0700 (PDT) MIME-Version: 1.0 References: <20230407215406.768464-1-ndesaulniers@google.com> <168435014337.2056649.7592777028793700479.b4-ty@chromium.org> In-Reply-To: <168435014337.2056649.7592777028793700479.b4-ty@chromium.org> From: Fangrui Song Date: Wed, 17 May 2023 12:08:58 -0700 Message-ID: Subject: Re: [PATCH] ubsan: remove cc-option test for UBSAN_TRAP To: Kees Cook Cc: ndesaulniers@google.com, masahiroy@kernel.org, linux-kbuild@vger.kernel.org, nathan@kernel.org, linux-hardening@vger.kernel.org, jpoimboe@kernel.org, llvm@lists.linux.dev, mbenes@suse.cz, linux-kernel@vger.kernel.org, trix@redhat.com, peterz@infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_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 On Wed, May 17, 2023 at 12:02=E2=80=AFPM Kees Cook = wrote: > > On Fri, 7 Apr 2023 14:54:06 -0700, Nick Desaulniers wrote: > > -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. > > > > > > Applied to for-next/hardening, thanks! > > [1/1] ubsan: remove cc-option test for UBSAN_TRAP > https://git.kernel.org/kees/c/08e4044243a6 > > -- > Kees Cook > > For this -fsanitize-undefined-trap-on-error, I think we need a v2 patch tha= t tries -fsanitize-trap=3Dall as well. -fsanitize-undefined-trap-on-error has been deprecated in Clang for 8 years, and at some point we will remove the option. GCC implements -fsanitize-trap=3Dall later, but -fsanitize-undefined-trap-on-error is documented as deprecated as well. --=20 =E5=AE=8B=E6=96=B9=E7=9D=BF