[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] xen/arm: vITS: check the target vCPU in INVALL
- To: Mykola Kvach <Mykola_Kvach@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Mon, 23 Nov 2026 08:31:57 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=epam.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NL1QXmSLIAEVW2tLzQRqDhuKJ1LBwy2M1jPZsf/RZcc=; b=BVON+em2a9Dwd4gNkiq3MXkoPo6Hx2LP2/CAdTMnahxUOEs0DATBrKxwZv3YrrstrTyUQ0x8cjSsPoei33Ufj73tIANBbqBE9ugval9esZcd04nJMUJz37ohtD28cDFafCLau/cP/KG0o0emyr4kX6KXlt7PhcMZYcVhuOLHgvijb1h2DnnGgi+9PtsZ4G0WVeU2txreAnd3OkD9PdPIqHVN+wfeANHw7B4WKVBhbfoEtRnE1r4owxnnqVKuy2Au+Cc93wwN8Ph0qv47fnLYL2LIS3h84QW+enK3R8sC1w0Q5RDXQ3bKhPZgVBWYBnvaNvgRFTA/LRpW2LRjWvACJg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s/lcnuLGilnhVaRz96Ph1CE2OucrQ7jRqs7kkN+6ujr/bwp3/LHex2Qwauzp2x7UdRTsMhkybu+4/P+8JMwNWpzpo4SMZUeO69/i3c6LMkm2hdrlHOS0YqzaPTfE6VerH6lE+dGhMj+1SvVQngLVgmVjpkEeD41xPd2pkMtG03LW0TV8KUtUfL/aRmTgzlerWELRCDY6NJv0nWeneekgmQaAur85ga1cVa5C8ggknj3BXylze164jLrOXgSR35RanXwPSYRsLoUc+Furf6EJWMgjxFTEbBUMM+l0UVCcTykwiQoC7sQUkoGcWBtnbaSEEVBrJc0q5gTHCSsSrOQygw==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Mon, 23 Nov 2026 07:32:23 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 20-Nov-26 20:37, Mykola Kvach wrote:
> get_vcpu_from_collection() can return NULL if the collection entry
> cannot be read or does not identify a vCPU. its_handle_invall() then
> dereferences NULL when taking the vCPU's vGIC lock, crashing the
> hypervisor.
>
> Return -ENOENT to the vITS command dispatcher when the lookup fails.
>
> Fixes: e975cca32bde ("ARM: vITS: handle INVALL command")
> Signed-off-by: Mykola Kvach <mykola_kvach@xxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
~Michal
|