Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3235546rdg; Tue, 17 Oct 2023 08:24:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtNOJM2+Lw64oXm2WE9yjkqGEbwKntOi43w0zvPdaVyvfnHM3sq7c1MNxnWgPdkuChpFgg X-Received: by 2002:a17:902:c404:b0:1ca:3e64:2378 with SMTP id k4-20020a170902c40400b001ca3e642378mr3549482plk.4.1697556270961; Tue, 17 Oct 2023 08:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697556270; cv=none; d=google.com; s=arc-20160816; b=BezN1xedGWNdvzHe+nBftPu6zaCggASiOtgYX+tKBc0R9PGVIm+Yyk587noxFsgusJ WDfvZPhhdGGxw9r/yFqojWcUq71Zne2XswO985CYHtfvXApa22E/Yj9TIpqc1WU37NFO 2LR7OH5ILI4kIb7TNAhBaDitJEjnhypMutAXJByl00I120xKJQAaHY+1ZhVzRDm2KY8k f4u8t+QndRowfQ+8vsMsc6FhcH+eSd7X+rIl9pIlNdeQosL4SxQUwOyyOpP7WdWKYzR9 HlEKdUBWS7OwZjD2UmtGxp3PianxqIRb9p3Tp+R5Kaw89AdXhLdDPatg1WBEajfHWeiM ze7g== 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=UJQt/dhfW4ljIETmg9qzLnjfnzaDOgcBSv1MQzSSlYg=; fh=vqXZi9gxeMzqmPnv/InKLu6SV6iKt+SKklRsePoGBS8=; b=Uak6OzHW2n21A1aNAoLg97HhHCMMazje+p6RpaH8GtVNqyxrCXqhecIk/6KqscF5X/ R7+mzjn78n/X4HznJ9y83pkSP//mAuMZqb9StAPSoMGyj0VtKvB+EKYBmkTsNf1xjTZJ TASqbrc57RBhqM2x5Wq+c028GMdqyJBdRor4aA0q+r7BjYAhFmH8LK2iRUFHYHOD22jc dy7ztkJpDfNb4LDTVhtHRH9KG8AFJ8/9FSWFbv3kHuuk8dvvoK1KwmchUjLLp6N7NfOu S3L7efd+QU/Hv1GVgr1s14LtDGNQEsfzXJcWKjNuTUHxCkmYqlVg/9j9BSh9RxiTEhhy cFJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=woL87RtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u1-20020a17090282c100b001c3323ff53asi1978790plz.139.2023.10.17.08.24.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 08:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=woL87RtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 4956780ACEE9; Tue, 17 Oct 2023 08:24:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344337AbjJQPYW (ORCPT + 99 others); Tue, 17 Oct 2023 11:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344321AbjJQPYV (ORCPT ); Tue, 17 Oct 2023 11:24:21 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADA60B0 for ; Tue, 17 Oct 2023 08:24:19 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-507adc3381cso3369039e87.3 for ; Tue, 17 Oct 2023 08:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697556258; x=1698161058; 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=UJQt/dhfW4ljIETmg9qzLnjfnzaDOgcBSv1MQzSSlYg=; b=woL87RtJl1Y/f2Y3mwS/bFiJ2mzm78+NNbVdNuZCgGeGpFmIQiSp5BVK5n4AVHRc83 W529plLHwMtLEIUOukaMLV27q8cgGRzNOWsEFfBa+I5MRvWA7jmssuK27zHvPLMVUzVf 68Pr1b4+JD0Rp5uma+XOJ2fNp5yndEVuvinDXTgBGcS0W6zoANiYHApHcwdY9IjRTdHT ADHbxz4alIfxIrq1I7B5sNArB9SVE/Hr6rstoqP7yIjmzaxnpatsbZ5qbQ0no/CY4zMN wyGl9nqHSBFIhnyZeAoHZkwicx0UG/5lDE7m1haS0XAUXswrPPLCBB5f0VpMF6/T++XV SyGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697556258; x=1698161058; 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=UJQt/dhfW4ljIETmg9qzLnjfnzaDOgcBSv1MQzSSlYg=; b=sj+oAxes1c6eobwm5f2/oexb0TxxXvvNtjDjfdR5qrfOWgMJKoXDJ2Qq8E2iOB3Qub rOUV282oryXLJZqRjbbSdlM7ogc0JphTJ4XPuz7PFghDYSvhvfaJsdVM4manuKWIMKeD K/EVTkikBnJkpWVMWRalCyCUbi86zQZcwFmdPxfvothERkUSPHTEkSX2BQJrKwYT6kEu 0qPblOPhdf9UhzYbvT9UPSxzijmRClsOL9l2JyqjKGNXIFYS1STvITXT8wwqkESP8iPx 9OLXw0tbjrMO8F5k2+8vhgE1MTJMMvOr/U0c5nbzT/DopIZsuWoD0qDGo+EC0DMMooMP K7bQ== X-Gm-Message-State: AOJu0Yz9MUoTSCD1QyQZ+c0CkQDoLbV/NLMlD1GaB2Z9Ndkaec2aX/xf fGUOBpBhHZEjcXcBuy2+dNPfTpRc8QxBNb2HokoI7w== X-Received: by 2002:a19:6703:0:b0:507:b7db:1deb with SMTP id b3-20020a196703000000b00507b7db1debmr2213812lfc.38.1697556257664; Tue, 17 Oct 2023 08:24:17 -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: <20231017052834.v53regh66hspv45n@treble> From: Nick Desaulniers Date: Tue, 17 Oct 2023 08:24:02 -0700 Message-ID: Subject: Re: [tip: x86/bugs] x86/retpoline: Ensure default return thunk isn't used at runtime To: Josh Poimboeuf Cc: "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" , Marco Elver , 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 08:24:28 -0700 (PDT) + 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 KCS= AN, 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.thel= io-3990X/ > > 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 > --=20 Thanks, ~Nick Desaulniers