From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8113CC4332F for ; Sun, 12 Nov 2023 18:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbjKLSpn (ORCPT ); Sun, 12 Nov 2023 13:45:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232065AbjKLSpl (ORCPT ); Sun, 12 Nov 2023 13:45:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 180BC2715 for ; Sun, 12 Nov 2023 10:45:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71A6FC433C8; Sun, 12 Nov 2023 18:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699814737; bh=K85le3M5N6X5vxm7aXwtDMsciUwKcAxv/rs64u0jS0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H+UPxP2vQbqVLgqz5CnFsnxMDVz9YsED9u2OsBHgDrNSbbFlyTRTGGJmzg1MYqpue mKkDnIKaNwtDwUlfs7NWg0P88K7lbn0I53Wz/LiuCFDT4xx54Ihp63nk28kXf4aSCV 14gY83A8HnmIRpcqF4ziPwQjMuUbQTvfzqCvKNqwRxnPCQB1UC6qU5LqfBU1dggeet 4OxEHnZEoBwy2f6tUz1v7VnJynLq2UrIQj/md/H1P3R47XikXyc/fkts7mVRJsWPiq OhVCkBVWTSttZkEL9D2YriyJjEzuyxDktJLmlFe8Tjb+0Ax4DaxcR8ZOi6YN9eLPH0 TdFWdZ+Ya+0PQ== Date: Sun, 12 Nov 2023 13:45:35 -0500 From: Sasha Levin To: Adam Dunlap Cc: stable@vger.kernel.org, Peter Gonda , Jacob Xu , Dave Hansen Subject: Re: Backport f79936545fb12 ("x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot") Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Fri, Nov 10, 2023 at 09:05:19AM -0800, Adam Dunlap wrote: >commit f79936545fb122856bd78b189d3c7ee59928c751 upstream. > >This patch fixes a boot failure that happens with VMs running with >SEV-ES or SEV-SNP when the guest kernel is compiled with a gcc version >past 12.3 (or possibly earlier) due to undefined behavior. As far as I >know, the UB has existed ever since SEV-ES guest support was merged in >(I believe 5.9), but only started causing boot failures with the >updated compiler. Thus, I propose backporting this patch to stable >branches since 5.9. Looks like its already queued for 5.15+, and needed some minor massaging to get to 5.10. -- Thanks, Sasha