Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3237282rdg; Tue, 17 Oct 2023 08:27:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZH0ZUtfjK5gPJTkdzbZZayLZBDwzU8vYcK05T24N/y06bf+qHY7akxNQgUScu4vKty+Ss X-Received: by 2002:a92:cd87:0:b0:357:a0a0:638d with SMTP id r7-20020a92cd87000000b00357a0a0638dmr563916ilb.4.1697556444868; Tue, 17 Oct 2023 08:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697556444; cv=none; d=google.com; s=arc-20160816; b=EbayoJP5rxID8vuXaeztGIwaIdUHi2b7JVyvT1nCwqKTuQd6j5GOY+RtWckwQU2WJ5 nM4axwpZdnC3zjXCfGDPeovanOHTy7yyalFJCcvzUPyCSveIFvwayZCqKLng2br8J7gd AsfkerB845wOyvFUS2vbdDITXzaBeAHFwuMqXx2MaQsO9MY/X06RX16Jaxf9saLiRLWd KtLn9V1yuWbrpqAaGn8QAJACL4YNzOItVAj2rzghIuxQ3Xzm0BykriJACZh3hpqM+Nw+ pkUhiIhwUx+Yu/PmpKPGtc1/IeYQcrdPD1hD0Tli/boKPFBrsA9tLlq+1tDp6aEpmJH1 i3iw== 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=C8cg6jGLFG7A51F+ARcwLcIxkWY8BQUYMBYpLmYj4Ek=; fh=fWEurnJyE5o8MpVxRNx6VAQhXs7QcKE49dy8TPFDpCs=; b=yk8B7TZ5zaEjlVWJsuuY2OtS4XjGGa9YcIlw9SsDL4DxBR9zYYlh+7Dt4f1x0pbIaO u4mGnuorytaVjdQl283yS4s/MipIOQSivO+zQ02fZHdBsroYS+3rAqG462Zwx/og4m5u Sf8FmVHZr3MUsuFfcpZCklS96LISHis2rtqUdcMvn46xij2TtA9YOeoiqRZY66MwEe25 7eUq6idr4MwVO7T3b0yvLBfERkuUurCjfSvMbkYoht1a9x6AGnTpD6VZFHHIK1CCsHxk fmBuSAzDtoqA+5xW1Db4Nf5o27HI/eBndMzrpc6zze6IDOdvVlGApkG+oPPS9vLjb6lt wkdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=D+eubzFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id by22-20020a056a02059600b0058afac51c12si21pgb.545.2023.10.17.08.27.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 08:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=D+eubzFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6661F809B0BD; Tue, 17 Oct 2023 08:27:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344338AbjJQP1Q (ORCPT + 99 others); Tue, 17 Oct 2023 11:27:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344242AbjJQP1P (ORCPT ); Tue, 17 Oct 2023 11:27:15 -0400 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3EE99E for ; Tue, 17 Oct 2023 08:27:13 -0700 (PDT) Received: by mail-ua1-x92b.google.com with SMTP id a1e0cc1a2514c-7b5fd0b7522so1728036241.0 for ; Tue, 17 Oct 2023 08:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697556433; x=1698161233; darn=vger.kernel.org; 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=C8cg6jGLFG7A51F+ARcwLcIxkWY8BQUYMBYpLmYj4Ek=; b=D+eubzFVy5d70RAJUb9Bk+l35No5mKchk5eBvaoWekyR3CWL5rlhmQupYHq1CtY0BV dRUFJwT4KssVcNZRiogDJLtk+Di8S2+YjhCBhiRmzWz62VwAg/s9um+JiCe5cpeP9/G/ uZ68MlvA/IdKbq9JBoL2zlO2F9Cws3D+QhSOvAWZZyFAPz5Y2YB0pANpxfDqo2yIx6dG y/+DDHLWEl22OL53n75bY4l8S7OvDJ4TazmpEtERijN0IrrFLV00nfvMLB4QchUz7hyw Wvs+/Y+Hi1fo3DTd6wriHWRFP2VPXMlM2G5qed6tBLH8LoUNA4gsvYMJZGH2fNS0RTxc mCqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697556433; x=1698161233; 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=C8cg6jGLFG7A51F+ARcwLcIxkWY8BQUYMBYpLmYj4Ek=; b=i98VTRV1aUIBpOJc9Kwkb8PHingCZmg+Glo5rSKKephrqsSsH/OYFj/Rwjp9un32yQ 0G1UIiJ05frLL2GzwagKOcAJD4ynUHJz+s7FsXrzXVPJX29XZgUeJoaKrVLMte/N6diJ J/WfYQ3IV/4+jUYr6JW6jNVO3PJZ/gHl8jh/tyrUAaJDMO/UIPRWpJcAb0hoyhvhg2Qw o8HBSnhLDY4kuhDl/NdTFUv+yhYV24eTB9+9S35Ps6WIOxk5rUH3qmTNQUvqlCjMqT7N G9lr3ZzPHesconfxPrbr4YUtCozAaJS4xU5I4Mv1wFo1ev8RNXiuW+WBRuPjmRpAEu9f Cl5Q== X-Gm-Message-State: AOJu0YyqqhSRyfR09VhQOkaqMNLg2RwFbapfy/IQi3Y6NYfuzAjF0qRP ZJWaTLLI++HwriAd5GgJHnJuajq3jkD4ZVQ1CnRexg== X-Received: by 2002:a67:c10f:0:b0:454:701c:7717 with SMTP id d15-20020a67c10f000000b00454701c7717mr2625620vsj.5.1697556432713; Tue, 17 Oct 2023 08:27:12 -0700 (PDT) MIME-Version: 1.0 References: <20231012141031.GHZSf+V1NjjUJTc9a9@fat_crate.local> <169713303534.3135.10558074245117750218.tip-bot2@tip-bot2> <20231016211040.GA3789555@dev-arch.thelio-3990X> <20231016212944.GGZS2rSCbIsViqZBDe@fat_crate.local> <20231016214810.GA3942238@dev-arch.thelio-3990X> <20231017052834.v53regh66hspv45n@treble> In-Reply-To: From: Marco Elver Date: Tue, 17 Oct 2023 17:26:36 +0200 Message-ID: Subject: Re: [tip: x86/bugs] x86/retpoline: Ensure default return thunk isn't used at runtime To: Nick Desaulniers Cc: Josh Poimboeuf , "Kaplan, David" , Nathan Chancellor , Borislav Petkov , "linux-kernel@vger.kernel.org" , "linux-tip-commits@vger.kernel.org" , Ingo Molnar , "Peter Zijlstra (Intel)" , "x86@kernel.org" , "llvm@lists.linux.dev" , Dmitry Vyukov , kasan-dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 08:27:22 -0700 (PDT) On Tue, 17 Oct 2023 at 17:24, Nick Desaulniers wr= ote: > > + Marco, Dmitry > > On Mon, Oct 16, 2023 at 10:28=E2=80=AFPM Josh Poimboeuf wrote: > > > > On Tue, Oct 17, 2023 at 04:31:09AM +0000, Kaplan, David wrote: > > > Perhaps another option would be to not compile these two files with K= CSAN, as they are already excluded from KASAN and GCOV it looks like. > > > > I think the latter would be the easy fix, does this make it go away? > > Yeah, usually when I see the other sanitizers being disabled on a per > object basis, I think "where there's smoke, there's fire." > > Reviewed-by: Nick Desaulniers > Reported-by: Nathan Chancellor > Closes: https://lore.kernel.org/lkml/20231016214810.GA3942238@dev-arch.th= elio-3990X/ Acked-by: Marco Elver Instrumenting these files really doesn't make sense. Thanks for catching this and the fix! > > > > diff --git a/init/Makefile b/init/Makefile > > index ec557ada3c12..cbac576c57d6 100644 > > --- a/init/Makefile > > +++ b/init/Makefile > > @@ -60,4 +60,5 @@ include/generated/utsversion.h: FORCE > > $(obj)/version-timestamp.o: include/generated/utsversion.h > > CFLAGS_version-timestamp.o :=3D -include include/generated/utsversion.= h > > KASAN_SANITIZE_version-timestamp.o :=3D n > > +KCSAN_SANITIZE_version-timestamp.o :=3D n > > GCOV_PROFILE_version-timestamp.o :=3D n > > diff --git a/scripts/Makefile.vmlinux b/scripts/Makefile.vmlinux > > index 3cd6ca15f390..c9f3e03124d7 100644 > > --- a/scripts/Makefile.vmlinux > > +++ b/scripts/Makefile.vmlinux > > @@ -19,6 +19,7 @@ quiet_cmd_cc_o_c =3D CC $@ > > > > ifdef CONFIG_MODULES > > KASAN_SANITIZE_.vmlinux.export.o :=3D n > > +KCSAN_SANITIZE_.vmlinux.export.o :=3D n > > GCOV_PROFILE_.vmlinux.export.o :=3D n > > targets +=3D .vmlinux.export.o > > vmlinux: .vmlinux.export.o > > > > > -- > Thanks, > ~Nick Desaulniers