Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3893542rdg; Wed, 18 Oct 2023 08:54:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHl3+eJ8DtjvkYzD/zRxftI6IOWl5caJlXopG2GQhx4aZjTJLWMN56uPeMYc88fKaSw7N0f X-Received: by 2002:a05:6a20:7d92:b0:13d:17cc:5bca with SMTP id v18-20020a056a207d9200b0013d17cc5bcamr6176285pzj.18.1697644492360; Wed, 18 Oct 2023 08:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697644492; cv=none; d=google.com; s=arc-20160816; b=xNzsVhZeM+dJw2ZcJd0q6C8fCE64qG+Le6rQEAR95/loIHSjC9ljqjPAqvT9VFJfDp QkM4N1jM7hwhh92+V78OVEN2rQtw5rb26Z5igH1XTvPt/EzGJ7kOIG4ZkH36qJPOqXTK sB/xaJpAYxYGEicV3ztABT4mWTEA3DhFNuMaida2k/QS1g1yWbm2+Jxx3ZiCHP6FNeQE KUisV/fIAXtlSjC8k2qRtbO0sk0yCiX96ZkYaWcvqI+UQK+pxlbg19W6+loAaQymkX7J wddFzj7MIxRDs/lGJrVNyHhNBlUTRkODtyQMNSnNkLIh/+66TNeypkqDrx7vO5rZZFZi YmNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B3jD4NxPmsPNVZGQp1gankd/rDEVvNBGprvWwxxR3YI=; fh=qiX2Xxir88GnDV03/JPgLzkEHIS5kefDwF9vIWtSGjM=; b=vZRd/BhKfBv+6RTc/uRKhmrFOJS4UQ/xL2Ui1pneUoRaYt05EiY2y3Ds/IUKrfhGLp cbCE1NDqDhSbIJ5yhkR/B/XyTagAeqosXWYReWbRR7aNfF8Hk4FHYlJVWLkpitJ+k7ey MyWtpLiJCRgl/j6TAzivDZROnrv/HYEjCsslG3H8YlG+bUNboA8DfGoUwKvV3VBSdLiM H9htGBzDAYi+0ZGGbHYMF82o30osnO4w2aiee3C8Xpvd1ucOoCvVBmW5LL/1jS6sETQq wKEjQ21pSfsldlA65O2r1uCV5n+wWkpBrdaAKXd+dzxMXUFt2/HTwyPQ+jRbJdHAuDNN Y0Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C1FC/5UL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b10-20020a170903228a00b001c9c496bdebsi149087plh.337.2023.10.18.08.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:54:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C1FC/5UL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4E9E280239D8; Wed, 18 Oct 2023 08:54:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232279AbjJRPyj (ORCPT + 99 others); Wed, 18 Oct 2023 11:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232260AbjJRPyi (ORCPT ); Wed, 18 Oct 2023 11:54:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A96B11D; Wed, 18 Oct 2023 08:54:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88AD7C433C8; Wed, 18 Oct 2023 15:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697644475; bh=hdWu9w9T9X5QRXTNPRbC3yaWlv73qKuEfQh/KXXiF5g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C1FC/5ULuzHyEE/rrGoFBtf2NqdJDMWL0V8TeH3UKiYm8vIMl2M/B/3mKeA/XbWKJ wJJ/Ha7eZCZV9t+QgaZ+qDjnpG7cqEMXqoOjnPVyo0Zm2sev6qpGBfIxYuXfpnyq2O kwzpcGhS6UO8F6IV0cLH2ZbnND+CQ2lXJv+9wqgw/GSNSIl4Opzp1epJiSoLoudj7u WA38GtV45lbET3Ip9Bo0oFdvhCxMIqPHbDhf6ifxQqp1bvh+fYdS2+bQtP8aGnCmyW UW3fRaBzWb4d/JN4Wjq7tyZ89pfT6vbOK7SQmNvl2BwffqoGQsX4Vun1Xb7tpf0w0w oU3zP/VMn9Hzw== Date: Wed, 18 Oct 2023 08:54:33 -0700 From: Josh Poimboeuf To: Borislav Petkov Cc: Ingo Molnar , linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, David Kaplan , "Peter Zijlstra (Intel)" , x86@kernel.org Subject: Re: [tip: x86/bugs] x86/retpoline: Ensure default return thunk isn't used at runtime Message-ID: <20231018155433.z4auwckr5s27wnig@treble> References: <20231012141031.GHZSf+V1NjjUJTc9a9@fat_crate.local> <169713303534.3135.10558074245117750218.tip-bot2@tip-bot2> <20231018132352.GBZS/caGJ8Wk9kmTbg@fat_crate.local> <20231018151245.GCZS/17QhDGe7q6K+w@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231018151245.GCZS/17QhDGe7q6K+w@fat_crate.local> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 08:54:46 -0700 (PDT) On Wed, Oct 18, 2023 at 05:12:45PM +0200, Borislav Petkov wrote: > On Wed, Oct 18, 2023 at 03:38:56PM +0200, Ingo Molnar wrote: > > If then WARN_ONCE(). > > WARN_ONCE() is not enough considering that if this fires, it means we're > not really properly protected against one of those RET-speculation > things. > > It needs to be warning constantly but then still allow booting. I.e, > a ratelimited warn of sorts but I don't think we have that... yet. I'm not sure a rate-limited WARN() would be a good thing. Either the user is regularly checking dmesg (most likely in some automated fashion) or they're not. If the latter, a rate-limited WARN() would wrap dmesg pretty quickly. -- Josh