From patchwork Tue Jan 5 23:54:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioanna Alifieraki X-Patchwork-Id: 1422748 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 4D9TrX42S7z9sVs; Wed, 6 Jan 2021 10:55:08 +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 1kwwAJ-0007Xh-T7; Tue, 05 Jan 2021 23:55:03 +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 1kwwAI-0007XT-Cc for kernel-team@lists.ubuntu.com; Tue, 05 Jan 2021 23:55:02 +0000 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kwwAI-0003Vk-2b for kernel-team@lists.ubuntu.com; Tue, 05 Jan 2021 23:55:02 +0000 Received: by mail-ed1-f71.google.com with SMTP id cq17so978323edb.17 for ; Tue, 05 Jan 2021 15:55:02 -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=12QYSqQovNIQpq6XL8d7kTbwVPYc4sbetwoc1ZSdiHA=; b=L6XYvirCca9OcShqaA65WMuReKi9n8OBBiFzVx0YhNvA+dDRQlaVgyQ3whC1KJScj2 gaqFxAgY8MpcOmBwZ2BWA+USfJCbOyktEvPmhaiMOPXt4eTQcVCZpFmhvSHJfwZQ/LFY FO8kREUySWbGzeksc/SjZvbpIwrWI0yHRRzpziMEEwjohc/HTRsrQfIBBzi+FmRarXRi RhMDVZLoukbczG2QwsqFU/bnmXmK/G+kltD+3+Xa9gD3IlxsDZUfMYJmA+bRg0ID47yQ iNuxNewzbQ6BfjTPNjp0jPf5/Sw8S7bk7M5MpcMBEFVGsWdmnZDqUG5dbXyUu+WVW+mE 799g== X-Gm-Message-State: AOAM530S3p5eH/SnrqJshKY78p3E8LjC5TMLDp6K6vHGG0efPRbhR229 p9qFONxn6/WYoLO43cPilqnH1sGIdFuJ6VqNgPQZtb/VH/q+dOxitALWr5iLEDJ28zTRyBPL9vG EtXNu6r5ViLByziq0jZXYClkF3h+oyyd40rKqNq3yTw== X-Received: by 2002:a17:906:6a92:: with SMTP id p18mr1177784ejr.308.1609890901562; Tue, 05 Jan 2021 15:55:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuSVUIHcJw1GT35i9L4nJad37mnhCnFog8LsijG5/xO5fToZMksxICbVysWD8yedRU89B+lA== X-Received: by 2002:a17:906:6a92:: with SMTP id p18mr1177779ejr.308.1609890901407; Tue, 05 Jan 2021 15:55:01 -0800 (PST) Received: from localhost ([2001:67c:1560:8007::aac:c2e0]) by smtp.gmail.com with ESMTPSA id a10sm251589ejk.92.2021.01.05.15.55.00 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jan 2021 15:55:00 -0800 (PST) From: Ioanna Alifieraki To: kernel-team@lists.ubuntu.com, ioanna-maria.alifieraki@canonical.com Subject: [SRU][Xenial][PATCH v2 0/3] Fix corruption on blocked_vcpu_on_cpu list Date: Tue, 5 Jan 2021 23:54:57 +0000 Message-Id: <20210105235500.20681-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 | 177 ++++++++++++++++++++++----------------------- 1 file changed, 87 insertions(+), 90 deletions(-) Acked-by: William Breathitt Gray Acked-by: Stefan Bader