From patchwork Wed Dec 16 19:41:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioanna Alifieraki X-Patchwork-Id: 1417375 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cx59W25y5z9sTK; Thu, 17 Dec 2020 06:41:50 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1kpcgE-000105-JX; Wed, 16 Dec 2020 19:41:46 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kpcgD-0000zy-Dw for kernel-team@lists.ubuntu.com; Wed, 16 Dec 2020 19:41:45 +0000 Received: from mail-wm1-f71.google.com ([209.85.128.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kpcgD-00031T-4t for kernel-team@lists.ubuntu.com; Wed, 16 Dec 2020 19:41:45 +0000 Received: by mail-wm1-f71.google.com with SMTP id z12so2045799wmf.9 for ; Wed, 16 Dec 2020 11:41:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=7E/DD6X0wUUDvlW61GVpG4UapuEOG6KUHYVHpydMFfU=; b=jgPzVXrk/3hjDjYbHR3g/tP1vNAAfGGROWGJIivq8W/M7SN4y2gTLq8d6cuBoJ39K4 OUC7NkJxGGR/f0yFkVY/4k3Hq6cqQPdDrceI1R8m0ktNgCW1sJwkRz7KmzU8QHusLZ3Q 71bqbkDDCmMtjkrsm5zmMIy9oJBwzdeUcZBOS2iwGA1oxUG4JlNrWZ8zUxH3abFDC+yW Qq55aNjBjMyDuZo89yLNA0X7dCyyrwfOHHjihmMH6ztBaOk1ikRXBYlPVF2iqxSSmYfg 2dT6jPg+1ITInnL/6CC/7nxAL/Cv/tmXeHJXOHgptKJ935gRUnScBbNJjxYdp7MoaHxF E+Zg== X-Gm-Message-State: AOAM532bC4vMZjuVBum4QIfylYe4/sC8EvMe+kyj8EQUgDhIaaVw+77N bD/LQFnTQBksLpt07A45942ctBl43pSIDjQ/wPF97pJnrmy43cJFEYm4oBJd0+U0Q4m+OByTgEC fsd9Idf8coIkZsP+hVfnr8Tdre3QHP/5/s5kRaqhaHw== X-Received: by 2002:a1c:234d:: with SMTP id j74mr4956316wmj.18.1608147704603; Wed, 16 Dec 2020 11:41:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRVFUJ+i3Y1Gx0blULIzOLi7dJXMQ3Rw7Ff25CeTMedjjbYjLP357CNYh3zxyEC1a2y8k/4w== X-Received: by 2002:a1c:234d:: with SMTP id j74mr4956296wmj.18.1608147704307; Wed, 16 Dec 2020 11:41:44 -0800 (PST) Received: from localhost ([2001:67c:1560:8007::aac:c2e0]) by smtp.gmail.com with ESMTPSA id a14sm4506877wrn.3.2020.12.16.11.41.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Dec 2020 11:41:43 -0800 (PST) From: Ioanna Alifieraki To: kernel-team@lists.ubuntu.com Subject: [SRU][Xenial][PATCH 0/3] Fix corruption on blocked_vcpu_on_cpu list Date: Wed, 16 Dec 2020 19:41:42 +0000 Message-Id: <20201216194145.24239-1-ioanna-maria.alifieraki@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1908428 The following 3 patches fix the bug reported in [1]. They are backported to apply on 4.4 kernels. Backport is required becasue upstream commit bc22512bb24c(kvm: vmx: rename vmx_pre/post_block to pi_pre/post_block) which renames vmx_pre/post_block functions to pi_pre/post_block is missing from 4.4. Original patches come from [2] and have been accepted upstream. [1] https://marc.info/?l=kvm&m=149559827906211&w=2 [2] https://lore.kernel.org/lkml/20170606105707.23207-1-pbonzini@redhat.com/ Paolo Bonzini (3): KVM: VMX: extract __pi_post_block KVM: VMX: avoid double list add with VT-d posted interrupts KVM: VMX: simplify and fix vmx_vcpu_pi_load arch/x86/kvm/vmx.c | 181 ++++++++++++++++++++++----------------------- 1 file changed, 89 insertions(+), 92 deletions(-)