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

Re: [PATCH v6 2/7] x86/alternatives: serialize after (self-)modifying code


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 23 Jun 2025 18:18:18 -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=ii1fNGp6HNiLb19C5vR+Zl3rPUSVUG7ABdOEVMMEFp0=; b=GsZ8siyBsU9YyPq0g/gPXwZzPbuEIrxABwEMqccCTYPvG5JIFE1faueL2mHfG+myqkfjO/C2C2ID3g3rlZRuixuKOVSVfDvAC/tgLgwluEFgjQbPA5zIwBbFdh0rXfIK19ubqD/dqdsX9/yq5vvRQm5iEYrBY66AXUjrxId3+RMhUq0JZ4xExn0x8QLSWLxRfvyL5YAJYVVoaiUPi4kFOCLGBxBHavg1M1ngnoFY4F/2H9YJSADJg0KvS/CmLva4QSd9gRjC1ydjurc7VHtnmvF2E3jEdeAV09YddrtrZcE9whAr/bf/HekJczGv++DpaqnSwhQyuTQMVoDsY0gCcw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=elVzQVN2TQuq9y2Vvj2wDx6OEHA9miYe7Asn3IVnPsv7X2t7FX3KFYbupwUQb7IjBxj8+aYyhZSaAJqg9wpJp9JuanGMEhn4/63nFcgTGXsqIOxm1VX/kJc+aQARfRG1tBpq69qUCG+TyOFJhblYeFClKr0U/YqBBDKL9oaEUqzuJfuHVUzoKam0f1ubauSPurV+zZYjVSLD31J/fFnEXyCj3XsS5N/6Cm2uPyUcFA/IQVyS8K14N1INophYNWVk8QFksl93aubH1Gu5i11QvFHkINIjiqgzpG6sWLUGNuTqs5Dmp7XoboTfRec7SP8vJSFtZrC3KQSGwGFfdx8mxQ==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 23 Jun 2025 22:20:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-06-16 08:59, Jan Beulich wrote:
While supposedly safe via enforcing a control flow change when modifying
already prefetched code, it may not really be. Afaik a request is
pending to drop the first of the two options in the SDM's "Handling
Self- and Cross-Modifying Code" section (still present there as of
version 087). Insert a serializing instruction there, and remove the
"noinline" in exchange.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

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®.