Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1824485pxb; Fri, 18 Feb 2022 16:48:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr+TiqRqvvTN6vrAFhglkX5+pWTet3VEvA3N712KGMB0x0z+FfiZVOcRV6h7Ulu1g11VKn X-Received: by 2002:a17:906:1645:b0:6ce:de9:6eb1 with SMTP id n5-20020a170906164500b006ce0de96eb1mr8204437ejd.616.1645231690304; Fri, 18 Feb 2022 16:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645231690; cv=none; d=google.com; s=arc-20160816; b=BLRJ3S1j3Lt7q7c9vpc+DCuryZ8aC4mS8cu/1WHUXb/MAt+aRbRUPmr/Jp2tnngOmM ZNwxsMKlJBaipxLfa9nlWfhzZK33N0Glhptke99uOJg3KDQ6ApKWgLljh4V0z3d4YveK K4uncvmi+flpdpeAog36trrFMgzqZM8Cv+Pdq3nhKHrBpBOy+bo1BZmLNd7/QQSlq9iZ efW9ZJn3hdam/Io04mR7HsP/R444McJZ2Anf+4qrILUJY02JCgLYGXEpbzE7Zu6Ua3bq oIl0imoVVzDoj9xAm/U0htlpUbZdN4n/mr46b+NaQeaBhrR8Js3xjozEwSHS6dG6SKfS AHlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=LXJHrFcUgfck6T64vbuXER18RsSAh2smjYW7lHXzLuY=; b=DPpt3Nel7rc6My0fbmdjFTeYMupQfW48GWcvJpFsoBecxLikIHfnkrsGEF78GjmUlb j9oHSvQrNmQkGoOZo9jlIi9uLTEwkZ+EOjRvcVoWzIZk3gUpBx03QrReYjhS0Vr9b71G muw7vzPxrKtl0B5bhK8FXJ8zp8Q0Bc3/SQL/5N2Ok3Ff/UuXOJL4F6bw3hlBonJVJRNt wE0T4D2aGhCt7aVnRiFr0ThvMhiqc/efWHbWGcsCw5kIQ6FXJEa4Jaufzc2y4CMqNQnl R8+9RD/1S0whrZoKsXabEnSf4zZInCj2mNSAUhOQB2KQTjL52DjFja3OdMMSJ4AcaKND Vv7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FqkbDs/H"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24si6857013edx.369.2022.02.18.16.47.47; Fri, 18 Feb 2022 16:48:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FqkbDs/H"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238426AbiBRRWu (ORCPT + 99 others); Fri, 18 Feb 2022 12:22:50 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237838AbiBRRWt (ORCPT ); Fri, 18 Feb 2022 12:22:49 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC95BE4D3E for ; Fri, 18 Feb 2022 09:22:32 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id i10so7695173plr.2 for ; Fri, 18 Feb 2022 09:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=LXJHrFcUgfck6T64vbuXER18RsSAh2smjYW7lHXzLuY=; b=FqkbDs/H8Ewd7Vcw8fdowTT+8Gz0hPCfAMIeDFtIc8Oe8k6GUaz0GoMPf6SqcHK7f+ B1PJBCo9pYWM7Gx4PLel0GnvEXYwIXXTgjm0wEI/QHU+ZCygklKm5ia6VpX4e0DXCo/i Uwrbt5Lvds/1sKHSezH908ot9BQmjut2mvdiu8tfrxfr5XwvJ3kDhj3mm2X4cFXH5vXe t1alDyuWhGr0Dz5eyNxE0FLbsCVbp1J5SzXPXwtzOOoQMTkYlsZPrvLkhdGF7cogPIAb Qb4E6DRrX3+UBCgU4Tg2Of3vMusT5jim2T1We197f6bLdK2FFdwrqr1ct8bY1I6c1O4l mjFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=LXJHrFcUgfck6T64vbuXER18RsSAh2smjYW7lHXzLuY=; b=gvZjsF7XHZC2ZSHfDh+fd53J8fgX61P06RbaHUUYrWIcPDQkfyLunNRLBC88r9B8g0 39qqL9Q41ZPUzfbGBmayTdLzngWuM1Qf/KUstKFiO6yTBXGZH5uBcz9Sa2VCi6wW4Y/t eRRGi2bKirbIv1RHag3bi6mmcocsJV9wjTs+mRpLAlOh+/I53CsKWXoIeFiwXOBrwOjf i+l6zRzJj+F3ek2RbtdpV8IchyLx/trhPjQ7yefA49XqgqX/mANNb/iTf0x5SBn2GZwQ Ka0qyuIo/MZvLFfA6p/rxuTU0Tz/d/EGJ+5404aKZVEsz/DNs12T7JY36U26tT0J0sl0 W8bw== X-Gm-Message-State: AOAM530FYX1WzfwQGAyRP4Jjq17oPuKYub1b/8oHLp1XwMfPvVMuDign R2rk/+MufHbozHHrWfVLpyGb/w== X-Received: by 2002:a17:90a:67c7:b0:1b9:b5ed:3f19 with SMTP id g7-20020a17090a67c700b001b9b5ed3f19mr13463709pjm.90.1645204952281; Fri, 18 Feb 2022 09:22:32 -0800 (PST) Received: from [192.168.254.17] ([50.39.160.154]) by smtp.gmail.com with ESMTPSA id e4sm10328571pgr.35.2022.02.18.09.22.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Feb 2022 09:22:31 -0800 (PST) Message-ID: <3561688b-b52c-8858-3da2-afda7c3e681f@linaro.org> Date: Fri, 18 Feb 2022 09:22:30 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 From: Tadeusz Struk Subject: Re: [PATCH] KVM: x86: Forcibly leave nested virt when SMM state is toggled To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+8112db3ab20e70d50c31@syzkaller.appspotmail.com References: <20220125220358.2091737-1-seanjc@google.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/18/22 08:58, Sean Christopherson wrote: > This SMM-specific patch fixes something different, the bug that you are still > hitting is the FNAME(cmpxchg_gpte) mess. The uaccess CMPXCHG series[*] that > properly fixes that issue hasn't been merged yet. > > ================================================================== > BUG: KASAN: use-after-free in ept_cmpxchg_gpte.constprop.0+0x3c3/0x590 > Write of size 8 at addr ffff888010000000 by task repro/5633 > > [*]https://lore.kernel.org/all/20220202004945.2540433-1-seanjc@google.com > Ok, that's good. I will keep an eye on it and give it a try then. -- Thanks, Tadeusz