[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] compat/memory: avoid UB shifts in XENMEM_exchange handling


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Thu, 17 Apr 2025 12:50:25 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.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=Cbzl0Yzlpw2DNJqfPlxMfEg9Th/BPQMGf2fv+Xm+sTo=; b=hzNYXVOoEUGZvgAY5nmStIfAVRpVTwtvufV8OU25zj6IhniwzWGVHUlFhVorf0vK4ELqEnjBt42WWW2C3ph3poZjcZ80iQN+zvgopzW5nPzIgifQVcvAIKZOUKV28r8SFEUuPKx0zMvRBxjL0Zt4IBgsV0fheVM0hDts3tC9CsR1Tsa7afUonSrpfbqmJ5Zel1vrmF7najKSKGu9uBINKMHLr2Ej2aqyXsfWNKyr+fKDvmHaL04Xyl4sPX45oDzb/0jqAs1XXPasGhgfxRcIPayOPvK8UScbHDX98DrpwVYCp/zNwkeJFqlIFJ56+rpPyjb/Wh2GRJAlD3dkdO8KcQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uR3SjWd3xmmmSepWHyflCV5J0EPIYJ6nop7Y2YGvIUrq3BJvYz8pMAnfqb6dt7/hgRPxjm2f5P3MBYDl1Ru5C8kcNswI3fe9XHQtCSLlYT4OPhM8Qhn6WzNCKn07CP6UDPArKvTyIOikRXXybz8dQoTyxJ3PA9AjFd/r1p7VHoN/hbtUTjEiVyEHfbjEs4nXlCsOm2mT/MdI+eoAaVecvTT45S7iqseWA24iB2Z6Hl/QtxlhG21lIh54QwKF8HGqufowzAoIa/Lnsyo8vIMwXWRQH6e09SKMHYV99O3O23IVRoVPWt2Qc/UVmoE/0bJAPsAZbm08LD6E4Mv5aDS/rQ==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Manuel Andreas <manuel.andreas@xxxxxx>
  • Delivery-date: Thu, 17 Apr 2025 16:50:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-04-17 10:08, Jan Beulich wrote:
Add an early basic check, yielding the same error code as the more
thorough on the the main handler would produce.

"as the more thorough check in the main handler"...

Fixes: b8a7efe8528a ("Enable compatibility mode operation for 
HYPERVISOR_memory_op")
Reported-by: Manuel Andreas <manuel.andreas@xxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

With that:

Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.