From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D52F63546D8 for ; Thu, 25 Jun 2026 22:09:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782425376; cv=none; b=OVnF1Stp4sqNSqK+btVNErp71nqlQpYoW5D+gP6O02gmOxWorIdbEmYaRZxJPR9n8HH7sT4nlWa7BTa3bm+a7TbhUxvFGYsO4v0kywls33nuzGt7O7o4wUUGYJgE2k2jL0ymCaVkHnaW7ggCbsVrEqjjCLzEpTOtAqBuNs0J12o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782425376; c=relaxed/simple; bh=4fuf7qGYrC3yPo81YZemsSWXTRy04yiF7LGS2CT10EU=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=rBeEYSydQfm5qHhezIrw/m7CbB5vTUv0KcZsFuxNlWxaaI/avD+XzOV28AVc6W7dM3rLL/hPEULW4ot/8GKetEXk0pIJQg1wDZ7+7rtLV6VsDmHkh7f2/n3t6SorAdKCT5atNbv1DPezYViQiaWh0MtQg1cyiMm3IT5x1Tw89ps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=i8Z3VEjQ; arc=none smtp.client-ip=209.85.214.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="i8Z3VEjQ" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2c7645ac9b1so2392025ad.3 for ; Thu, 25 Jun 2026 15:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782425375; x=1783030175; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:reply-to:from:to:cc :subject:date:message-id:reply-to; bh=NObII2noNO0UIUH5NgoGRFqHrpOKFJqLgtTJtdpgNTU=; b=i8Z3VEjQkittp5kCpPwpaOD4n+RonomYYol6ViY1yr43kbooGpDF/0xZ5Ebjrqka7E SQcyJG0lPiwLq6r1DJ72gr/mufQV7H2bwu4OGGbuhXT+EDTVE2CyBOfR8hJqTOHjvMu4 su1JEzKi/XYtD/AB474wZrnbtybxDACh7+mK935H5HpLDHDmWeTD+mwR8KqU1YXJEvQ3 6hPAywRvdgKkck7biagNxs6xxtkgAwEFEFrakTuoINENuJPEnfUHwGOmavwLBeQtK2z9 Uzi0HgUA0NJs7SPAe+6PnZeDlx+mmBajVY5Joy9fCvPDU6l6QPY+34Np13qvgVI1lDLo uQ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782425375; x=1783030175; h=cc:to:from:subject:message-id:mime-version:date:reply-to :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NObII2noNO0UIUH5NgoGRFqHrpOKFJqLgtTJtdpgNTU=; b=henm54jw1u1Fa/H8YSHwvEt7s+1nNRrLH5yRYVK0T4oYFzwBfplFe9AlWffJcB9tlc 1Eg0L9HK5M8Btf2e8yvTjse3rqPQR14aX83n38217e9HLtanaqdFTfe6ZB5UF7jxfQWC dBqLevYS4gYF/eCtQ4CasR+da0LzQ3LJYeY6RnQF2pEvG2wyzp+0zidh/AAupYMD8qqA cgKvZ37j0rfahN8atBHwbc+5AmNbbz7pnwFKKexMoSL+U2myOR7swQ3U+sWXk3R4LlJW xE4fM3aMHFeIiY+waCu7ncbrN7VVUqnz7s5zDX3rxCnD2cgCD/wpunMR8EGb0kOcdjqC gLVw== X-Forwarded-Encrypted: i=1; AHgh+RqCNXM5mn3IVcQunXEBTyKxIjEK4UV+IZE5K5OHabdueQXqkUF9WGGiVgi7WKCXccPwCLLxJ5bJKZzWAWk=@vger.kernel.org X-Gm-Message-State: AOJu0YxtKHR+6dpriSi44DrHX+8wb1SbK77g+pKZb8qC/PLvzNb2tgWS V9vby2n/L2gOAgwfVTxNWg0O9Y9iRTvOolU205gyl8v/E0YJcf4AxLLb2AQm7AcKc7O+qpm2Pr5 BVeWMCA== X-Received: from plhc6.prod.google.com ([2002:a17:903:2346:b0:2c7:bbd8:d3a9]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:fc47:b0:2c6:abaf:85fb with SMTP id d9443c01a7336-2c7fc890a70mr37327305ad.32.1782425374928; Thu, 25 Jun 2026 15:09:34 -0700 (PDT) Reply-To: Sean Christopherson Date: Thu, 25 Jun 2026 15:09:31 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.rc0.799.gd6f94ed593-goog Message-ID: <20260625220933.3357733-1-seanjc@google.com> Subject: [PATCH 0/2] KVM: SVM: Fix a (very) unlikely UAF for GA Log IRQs From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Naveen N Rao Content-Type: text/plain; charset="UTF-8" Fix a potential UAF due to freeing vCPUs while they're still reachable through the global hashed list used to handle GA Log notifications. Sean Christopherson (2): KVM: SVM: Remove VM from the GA Log notifier list before VM destruction KVM: SVM: Drop unnecessary avic_vm_destroy() call on init failure arch/x86/kvm/svm/avic.c | 22 +++++++++++----------- arch/x86/kvm/svm/svm.c | 2 ++ arch/x86/kvm/svm/svm.h | 1 + 3 files changed, 14 insertions(+), 11 deletions(-) base-commit: a204badd8432f93b7e862e7dac6db0fe3d65f370 -- 2.55.0.rc0.799.gd6f94ed593-goog