Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2649675rwd; Wed, 17 May 2023 12:26:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55EN7oLIHFR5Q9EAup3pYr+92RkTM+rUywC8OCpA3kAnJn02DzSc3WVeJXC7Ea1amwoMzZ X-Received: by 2002:a17:902:7617:b0:1ad:f26e:3a2e with SMTP id k23-20020a170902761700b001adf26e3a2emr14726266pll.50.1684351582293; Wed, 17 May 2023 12:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684351582; cv=none; d=google.com; s=arc-20160816; b=CKLofvzNmcImq1HxYY0PfnkVY6Iq09fF9WHwmTZSKahdL7jVtfR6GiKWbcADIPHZcb h4O3iwCTkeNy4bAy/DNCIIRUT87vpKj0gJvnUKmwiD1Zdi7mII8+Be7CysEOT+Upwc6t jOcSBymZAfYiI0pVD0weTqFvFGcwbQoQ0zqG+DcgGuO6/WZs9mxwpzXsu/+9ppzEFI+T aQodQFlVmj4WLjvKbPvAkNatP6YqaIHxxCY72MFQWkxjXXfNNr5izpCh2MNFF8j0ygAU OyscRyzmJnTBSLvJan9/sDJX+dnTB8w7UbI/xf+2pegyJo2kt8R73v/T3clggXocu6vb TWPw== 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=+sfDGNxFljLZPwjQlmmmYoY6SbW+JgmdsgpLXcsCH5Y=; b=kAp+Iy10UmEkU3oU4/U9Js72ADhhCWAGgQ09CAkSJ642br5FjE2YIp6Py21rLTiPrv 6Zihf2GcHOWTsqmfZoADrajv1Vsz6GOJcgzzPnCAhngYb9uUtStyVz0LuO312hMWeM0Z hv6a1vCodGju/xSwLzHhDviDSbACq3y8enGGPNQzfL0tebEl8etryBt5YBHmu2pHCnRp W/PRT9gqxmDrzCBcAtJUsY1HAp6tEZiKbtyOH0YHKhds45mypUA6CViVq/QIyULOdIiK CiskGe2TqYPT0O/ga3iKl8PC3PCO2NkuIn3V6b3M0h0fqItXJoS0eyAhctrtXLZTDoDV x9oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=0MvIVpu2; 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 a28-20020a637f1c000000b0052cad19f77dsi22308934pgd.0.2023.05.17.12.26.09; Wed, 17 May 2023 12:26:22 -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=0MvIVpu2; 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 S229703AbjEQTKy (ORCPT + 99 others); Wed, 17 May 2023 15:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjEQTJu (ORCPT ); Wed, 17 May 2023 15:09:50 -0400 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B27D044 for ; Wed, 17 May 2023 12:09:47 -0700 (PDT) Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-3f38a9918d1so31691cf.1 for ; Wed, 17 May 2023 12:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1684350586; x=1686942586; 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=+sfDGNxFljLZPwjQlmmmYoY6SbW+JgmdsgpLXcsCH5Y=; b=0MvIVpu2NgSI501OvzcIRQfAWlfFh7IoDuwZnbku8+cdXhaFdzbKEfjNN/VKul/mZn URKug3mfuS6JaTu5ojMXMT7+kKu9uiNFP0cnWqZUQJ49e9KwRGORJDFlPTfxNatgipeZ Vgk+/vIlqdtEk+wmhus1K7LMgVqIdzKI3DvVuOMDgi79B1Rem50C/RmW/jYSX0G3i/zJ WOiri7zt1F3RiHPjBIVcY26RtfboStBMhcPiP6HZXfy/9Qn+p4ZcTXmqmFGPxjPplVLk TXWJmQW5KaljSVGcWaIIMIFS8eR7yaBJkgU+qUn+Bhfw0Ocdwm5GrWpiMIcIJtMP0XWo K2ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684350586; x=1686942586; 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=+sfDGNxFljLZPwjQlmmmYoY6SbW+JgmdsgpLXcsCH5Y=; b=RYcIGvDLWmGalXu3bLcvFiy5V5s1+dpzy6Q/SCGW86u8fTrc42LQJco2BJJEpWpDGD h57lzeBV+XpU+VKO+V1dal6EhsXg9Dn1Hy2jBmgxVBk5XuHQ1AZMfhHIWx/eIwg6fAAP Q34q6NX3EXrgDr52dOMwh3HOhyDseg9xgdT0HSzYC9l3WWYv9ppXsGxPqj7NgvOngtOt EBDtyfr0bl1E4oiPZp9BbG+NTJhEW1WSQXxkXRniN5YIDwLqu/1BvGnhX6q/AeVe0oTr 8LSZCdhNsLjJjmqMjF5uBPt/SEUqaPbO7C9a0hTFN1x/5+PByzDMNT90dA2mnK88UV84 k/Kw== X-Gm-Message-State: AC+VfDwBNiuT1E2NByCygUM8jmQ/piLYkr0hIqU7lC2uhka9UhGwKkyf TKdzZb1ssws52rhhP4tpNyrU3YHDQjHNHEpRX5P0JA== X-Received: by 2002:a05:622a:188f:b0:3ed:86f6:6eab with SMTP id v15-20020a05622a188f00b003ed86f66eabmr19628qtc.14.1684350586364; Wed, 17 May 2023 12:09:46 -0700 (PDT) MIME-Version: 1.0 References: <20230407215406.768464-1-ndesaulniers@google.com> <168435014337.2056649.7592777028793700479.b4-ty@chromium.org> In-Reply-To: From: Fangrui Song Date: Wed, 17 May 2023 12:09:35 -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=ham 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:08=E2=80=AFPM Fangrui Song = wrote: > > 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 a= nd > > > Clang 3.2. The minimum supported version of these according to > > > Documentation/process/changes.rst is 5.1 and 11.0.0 respectively. Dro= p > > > 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 t= hat > tries -fsanitize-trap=3Dall as well. Correction: -fsanitize-trap=3Dundefined > -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.