From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E14B32451E2; Wed, 11 Dec 2024 07:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733903597; cv=none; b=uGMw2VBogmIzjNQH+uz6umBph8tOrsI/pMAAWnzq7n+rFcZTwYWMpNWf6Hhf2jcGHC7EAtBn1RQBq8cijcXgAuqCjbQzblrXVrdqF3zhjE7tCSnt3lXO6hfocD1gu3yCvnWHayj8f+1z0rd1TZ1IBLu+sjytjPUwQJUFE0zC8To= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733903597; c=relaxed/simple; bh=wtv1PNb5q+Ix0UB+WDVjJZGzgbU7uOPG8O/vD5gSJKQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H1oU0OVrONZdkHmrQhm4zy3qMtJw67mOYJ1bVysGHi0nA+Ff4GfODkPJ3p7DxqHHIy1OUN5c1IIXyPjuiQO3ms5+ClKGEBKnRUv8oAlOMYKS40HkYuDOVO36PY1LgDaUPcP+TA7VPxpH8qB7DAjphGmFnK7Bb6PHqYhhL+1CpZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C54DC4CED2; Wed, 11 Dec 2024 07:53:17 +0000 (UTC) Date: Tue, 10 Dec 2024 23:53:15 -0800 From: Josh Poimboeuf To: Borislav Petkov Cc: Borislav Petkov , Sean Christopherson , X86 ML , Paolo Bonzini , Pawan Gupta , KVM , LKML Subject: Re: [PATCH v2 1/4] x86/bugs: Add SRSO_USER_KERNEL_NO support Message-ID: <20241211075315.grttcgu2ht2vuq5d@jpoimboe> References: <20241202120416.6054-1-bp@kernel.org> <20241202120416.6054-2-bp@kernel.org> <20241210065331.ojnespi77no7kfqf@jpoimboe> <20241210153710.GJZ1hgJpVImYZq47Sv@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20241210153710.GJZ1hgJpVImYZq47Sv@fat_crate.local> On Tue, Dec 10, 2024 at 04:37:10PM +0100, Borislav Petkov wrote: > > Also it doesn't really make sense to add a printk here as the mitigation > > will be printed at the end of the function. > > This is us letting the user know that we don't need Safe-RET anymore and we're > falling back. But I'm not that hung up on that printk... The printk makes sense when it's actually a fallback from "spec_rstack_overflow=safe-ret", but if nothing was specified on the cmdline, it's the default rather than a fallback. In which case I think the printk would be confusing. -- Josh