Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4015013rdg; Wed, 18 Oct 2023 12:14:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWw/uDD/s7lC7uzQhnx51TaAWKVRlf0lXnLn21JIP+473Pz6T53tXfFv/tqPtRnT+gutfC X-Received: by 2002:a17:90a:bc8c:b0:27d:e73:3077 with SMTP id x12-20020a17090abc8c00b0027d0e733077mr102489pjr.1.1697656463748; Wed, 18 Oct 2023 12:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697656463; cv=none; d=google.com; s=arc-20160816; b=LxM1jQVZwtYy8c5jbuj7qv+LJdSFdkvZBZrDndpQHfQ5PIBib2CmEy3wZ5DLkWv+bt RXbZt302+638Mq07fc3aM4hyCe3mvgZlDidKb2Rja8RuKukWXJ1gU6Z2lEnEa4gD8Xvi pm3ByZ7ltUV0im1wB9ZJFecm2cxGm0exKTT1eZUbp2DNQl2dTPadj5runAnLiriX6gkd 7fCB4JlW4oWAerckBWekgNg6TEHJyd2dzV/Iri1QubS0t7FSAcf4Msl9BOxugaDpgMSo GjbaY1YbD7d1Zqcxis8F4fXo66U0T0+JfEhcqUwR0HLj9NBgG8z9p6fi0rjcjz6LdKZ9 DELA== 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=/ik27/dcfe9lscgIPdxFPfbkYZTCg+YkiNLvkBt5CZk=; fh=ryNl978v0qTqD2R+xUvvqKb6xbCiYXTSd64Ar2Y696I=; b=OItQbTqdKScucfkmhmw7Nmn0jAYaR4xe6qDeP2HFSODGpPKQEouPiNSBJpPG2kYeGi cshzbdRKmRpgvzfTzJLlFD35yy4yaCj2+7qITfr/3YcXdmSBMB8Zab3GswzrqqALg0Yk bhuP8Cz8XksAWrosaQA0GH6E7LeA0PhfkKHUFmza+zUS2GAqdmGzLAKLln7tRZdYJK/G L4PZ5iLCSQfvi8KOf3IOfs2ZGPJ81W5gDMP7iOOzszxybnQUSbtQ76vH1NGmsrhhc0zm iysaCHsXtoWC7IPJjVR5H5IP9wigUdjMoY78msHxddYPpMQttvc8+t56t7PG13SYrPvw eWZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ERr6Rza2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id y15-20020a17090a154f00b00258996c09e4si502857pja.22.2023.10.18.12.14.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 12:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ERr6Rza2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 2C81B8132A77; Wed, 18 Oct 2023 12:14:20 -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 S229702AbjJRTOM (ORCPT + 99 others); Wed, 18 Oct 2023 15:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjJRTOL (ORCPT ); Wed, 18 Oct 2023 15:14:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C023CAB; Wed, 18 Oct 2023 12:14:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C838C433C7; Wed, 18 Oct 2023 19:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697656449; bh=dFRqduN7YTqHc7HQ6JGA9+8GGHtLEMQGa5F7wvBiPHc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ERr6Rza2enKVLtJLaYvNUvT3qymcYtjkxskJfJNvUezR7q5EiZujK8LY2HXB9L00Q 9kqYQTYAYz5hb+otyknNMAizUtiHBKDOUK/x0MxPaS7/nwv+/pxMUHXDM45wsOhzWv ab6/CY7i45HGx4N0ZAERFxvasZJi/k8FQr4/ilHv7oavWDqb1FRLBq2P9iEu9j3t01 ihYJYtIgLy+WKR5WDXxFYqVtCzzbZAnOwtszI2xVGMyGQejLhKOYNUV3aI3dHTiAfY 0LrcNQXUhB+v1ZcR01rZka5Bz5BgbN8o7UWl/l9n3T4hKenAjBHvg104KR3Fn2PENu 4nUHyDrZhi7uQ== Date: Wed, 18 Oct 2023 12:14:07 -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, David Howells Subject: Re: [tip: x86/bugs] x86/retpoline: Ensure default return thunk isn't used at runtime Message-ID: <20231018191407.n4ys6vefbio7z3sn@treble> References: <169713303534.3135.10558074245117750218.tip-bot2@tip-bot2> <20231018132352.GBZS/caGJ8Wk9kmTbg@fat_crate.local> <20231018151245.GCZS/17QhDGe7q6K+w@fat_crate.local> <20231018155433.z4auwckr5s27wnig@treble> <20231018175531.GEZTAcE2p92U1AuVp1@fat_crate.local> <20231018181431.skre6i6vzrxsprck@treble> <20231018182223.GFZTAiX4BJ6FT8bHzz@fat_crate.local> <20231018183915.xwamzzqjf6gehaou@treble> <20231018184431.GGZTAnj8V/R54S5KK9@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231018184431.GGZTAnj8V/R54S5KK9@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 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]); Wed, 18 Oct 2023 12:14:20 -0700 (PDT) On Wed, Oct 18, 2023 at 08:44:31PM +0200, Borislav Petkov wrote: > On Wed, Oct 18, 2023 at 11:39:15AM -0700, Josh Poimboeuf wrote: > > And see my reply to that? Not trying to be daft, I just didn't see how > > your reply was responsive. > > > > A single WARN_ONCE() has the benefit of not overflowing dmesg, while > > also making the warning available to those looking at dmesg (or the > > taint flag), as those who care should be. > > A single WARN once is not enough as this is security-sensitive. Warns do > get ignored. > > > A rate-limited WARN() is problematic, as it overflows dmesg (and > > possibly wrapping other logs), potentially obscuring other important > > data. > > This will hopefully make people look by screaming louder. But no > guarantee. Not saying it is the right thing. > > UDing without any output is not the right thing either. > > All I'm saying is, there's no good solution for how to catch this and > make people report it. > > Make more sense? There are a lot of warnings which could become security concerns. By definition, a warning means something is seriously wrong. If it's ignored, all bets are off. That's why we taint the kernel. -- Josh