Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3171851ybi; Mon, 29 Jul 2019 02:08:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvBN60YEIlscXa9mF5lF8flu9cpgbbwUeOiXolp3sBSlmvpQWFPqu0xK9mnT2ZibbPHtf+ X-Received: by 2002:a17:90a:b115:: with SMTP id z21mr48690494pjq.64.1564391330449; Mon, 29 Jul 2019 02:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564391330; cv=none; d=google.com; s=arc-20160816; b=hebiLKaAVTlIeqP6qLVk7ON4EV5BPWahIHQDNiQr8snPbq5KWHlpW/MPUDncMucmkJ M7SRuLU/Dp79s+sLDmlhdICuuITFfznYXqg1CxCCUBdh77Ico+QCbqz+ixiuxCQ3WiNj ZUfwkynxh0/wajtw+cxwIMwUAoNxU6b3RAbIAfmGkqfn6Ztg72BkXtlxgbTaXxt609BK DY75jBTL/nyUlprBmQ5oroaiDjisy5YiH+FnjzFiMuhSVPcf2UYRljXKGAhLm6mfFKKN W17pLyo27cW3gHEyKrZhxgd+grFYa1scX89opPL4JBMXnm+9gcaJVZf9veqwBlZ8uIPx ohTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=I1Kj7YUPvkqZu0AVoqLEWB0rMOmtYob12XhQjO3Ri6Q=; b=kEFaex4Gfl8PtVzkax5cg6QsxPAjEuTx7LzDfKK5t4rxalIUzj/wXKYiV1JlNptusy b6gCHM6TQGbiVLHxPXHKD5yzU93ZZo0FynxqThMsdRvhYwnSBK5hjkLP+N2W5CplWSzX aXLLibDlz/xb/x6wwy02ieBSbFdPYbo6PIWmoIqTSwnQywLOuj0y08OAtUGBR66wxRev qoBEchp7CWf4A7CX/7BBwc7rbSCJiVwSc7488FTEtDwKuLm6VD2uDwXBGvtS0JXq2+N8 57jQxzN9/Qv9JM+sQK6YkNtLPRKUVyuCVZe2ZdkWgz83utff6ZtF3cQVRrMQKSAevFLG VihA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cqvfLHPF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v63si24698211pgd.111.2019.07.29.02.08.35; Mon, 29 Jul 2019 02:08:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cqvfLHPF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727244AbfG2I6o (ORCPT + 99 others); Mon, 29 Jul 2019 04:58:44 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:34672 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbfG2I6o (ORCPT ); Mon, 29 Jul 2019 04:58:44 -0400 Received: by mail-lf1-f68.google.com with SMTP id b29so34247708lfq.1; Mon, 29 Jul 2019 01:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=I1Kj7YUPvkqZu0AVoqLEWB0rMOmtYob12XhQjO3Ri6Q=; b=cqvfLHPFUr5VxLj7mTj7MPXkdMQrlElRYzxTAKvcRGsHMjXI10VTKm4NlH9fEjQCX7 +HyrBLZh73kMWXuARtvgjMlo6mHSUe5xs+i/Jhy4EblsDE7sji2m1JzJ3oaeyt/EuFnb mK0hJ18HHpmV3uHcNB5U6SBZc7ICPlwSSgwX5eQbHPsRuHa9PhFEJnjhPo29ufjn+mwK REBtU646Guh/uerj6wz5DOsVddH3mBBhJ/5AGJO97VwAofsGZeelKO0q0Lemqj50c/Dz nsneBBBi7xzaAPaX/70YoFTn0x2CY4K+SXJKHtxuWSOA8+6uFU4I2i+2HPZNAGKevH7s fV4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=I1Kj7YUPvkqZu0AVoqLEWB0rMOmtYob12XhQjO3Ri6Q=; b=MgHmd4uYtFe8WB38OOp4+SUMj6T76r5U+PX7+WqTQePF+FWrZqlLYdvvtH9SbuxYff RfHnvD+7JlYP/ogyZMlyCZRHI2Ny2wTd230B9EBwEMKWPFj0J5Wk616AdU0OlXXO09Ew /WUOhJjegZbdXNouxW4CH3q+rW7xPRdeZmiEM00WYgppMc7pIGkLHTd+hsZY0Qa/Htfx QYHyCh3fRXpLPd676/YpiXA5rr5Ldj/v6c4vXgNxb93YwMqfHDJq0a2tI6y736u0hCyl a5Yb/g1uJHyUCLm5oJa1DqgcbAkeEn46kzTHmIwn7JxEh3S2wmbPuW5paej+s3LLeJn6 tVgw== X-Gm-Message-State: APjAAAXBZryT5ctImfqcZnTuRQsY2Nta8R30GPnHmVuSWY2ELajUXD5D 7Ak0m4er+tJAn+yHcGB4BqX6bjm2z3qPuUtD9/1iIA== X-Received: by 2002:a19:4349:: with SMTP id m9mr50210064lfj.64.1564390721868; Mon, 29 Jul 2019 01:58:41 -0700 (PDT) MIME-Version: 1.0 References: <20190725104645.30642-1-vkuznets@redhat.com> <20190725104645.30642-2-vkuznets@redhat.com> In-Reply-To: <20190725104645.30642-2-vkuznets@redhat.com> From: Jack Wang Date: Mon, 29 Jul 2019 10:58:30 +0200 Message-ID: Subject: Re: [PATCH stable-4.19 1/2] KVM: nVMX: do not use dangling shadow VMCS after guest reset To: Vitaly Kuznetsov Cc: stable@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vitaly Kuznetsov =E4=BA=8E2019=E5=B9=B47=E6=9C=8825= =E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=883:29=E5=86=99=E9=81=93=EF=BC= =9A > > From: Paolo Bonzini > > [ Upstream commit 88dddc11a8d6b09201b4db9d255b3394d9bc9e57 ] > > If a KVM guest is reset while running a nested guest, free_nested will > disable the shadow VMCS execution control in the vmcs01. However, > on the next KVM_RUN vmx_vcpu_run would nevertheless try to sync > the VMCS12 to the shadow VMCS which has since been freed. > > This causes a vmptrld of a NULL pointer on my machime, but Jan reports > the host to hang altogether. Let's see how much this trivial patch fixes= . > > Reported-by: Jan Kiszka > Cc: Liran Alon > Cc: stable@vger.kernel.org > Signed-off-by: Paolo Bonzini Hi all, Do we need to backport the fix also to stable 4.14? It applies cleanly and compiles fine. Regards, Jack Wang