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

Re: [RFC 0/5] Introduce dynamic tracer using Livepatch


  • To: andrew.cooper3@xxxxxxxxxx
  • From: Ryo Takakura <takakura@xxxxxxxxxxxxx>
  • Date: Wed, 28 Oct 2026 17:08:41 +0900
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=valinux.co.jp; dmarc=pass action=none header.from=valinux.co.jp; dkim=pass header.d=valinux.co.jp; arc=none
  • 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=2B03yrV6ETCBmypYMvpS66Ut+q9oewu4GOSrgKwVmCE=; b=FvOFXujH9rQovB3gV6jAcbEAVoUEyiw6WVyDR3nxwsFWkee5fM+Jk9kmDDRQVMhYY5KywLKayVumMqWjdkfiZC8thT12Ljd9hiudmWA4We+ye2vaMo9OaHeSh/LB5ryM/30HN9P3JLSU7QV6jcyz+R7HSw7W6qNrNY6G7+LNM3wdGbpyF09n7qcmg8t/tjsYDdsfmQSzpTIjs5tXIUMu03JOWHpfF2jRdA2FfXckyZ5N+dgKylQUrE+yVTTJipGZesU/nG9U83OocyXhaXA6lkMVkRjBhdE4K7cPwGFro6Lp2KTzJY2e0GzDgW7X3XVLRheBLgjIxFSFk3rC+aG0hg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rM5KAO9ItCLUv+3aXhisy5vH4yizfFuFbrm+021OU/gQBtvm34jy/Yl73DuGUBHT1UVaJvgj2hYeU9NMOTnOYXHHapVqVCtz0VLrbn/Cojdz8Z3T4aEjEw1eFE6zXZBhqqePy5Jhl83sjQ5qf3WfcvWuoaRzU774FLhHdbpEOUNfkAtA8USznZkhLfKqnMss3v/6k3hfbu3PHcJhaIGACmxE5ndzV3IJtYITEyD9oDYAm01D2j+Z+lquh14U19lXPhBWUoTsHb50us/SNy2z4+5R20HNid+/blF2VYUloT0x1dCfWchHob6cYtgRx8tzl4/OO91w3xBpIXvxRmZr4w==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=valinux.co.jp header.i="@valinux.co.jp" header.h="From:Date:Subject:Message-Id:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=valinux.co.jp;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 28 Oct 2026 08:09:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, 27 Oct 2026 10:18:44 +0000, Andrew Cooper wrote:
>On 27/10/2026 4:37 am, Ryo Takakura wrote:
>>> You are also going to need a GCC_PATCHABLE_FUNCTION_ENTRY_BROKEN symbol,
>>> because of https://godbolt.org/z/sde4faxaz.  See the ASM_GOTO_OUTPUT for
>>> another example of this pattern.  Just use a plain version check rather
>>> than tying it to XEN_IBT; this is a new feature and people wanting to
>>> use it can use a new enough compiler, and it avoids variability
>>> depending on other options.
>> I didn't know about the compiler behaviour. Thank you for the detail.
>> I'll make sure to check the acceptable compiler version and add a version
>> check as you suggest.
>
>https://maskray.me/blog/fpatchable-function-entry seems to have a
>blow-by-blow of the bugs.

Interesting!

>The ordering with respect to ENDBR instructions is the only issue which
>will affect Xen, I think.  We don't use COMDAT, or BTI on ARM yet.
>
>Clang support seems to have been mostly correct at the point of being
>added, which is rather more than can be said for the GCC side.

I see. Thank you for the advise.
I follow them when preparing the check.

>>> Separately, you have a number of MISRA violations which you're
>>> introducing in your series.  I see you've got cf_check, which suggests
>>> you have built in GitlabCI.  Have you also run Eclair?
>> Thank you for pointing this out.
>> My apologies for the violations. I wasn't aware of the tests
>> and haven't run either of them. I added the cf_check following
>> the existing code that I referred to when preparing this series.
>> I'll make sure to run those tests before sending next version.
>
>Do you have an account on Gitlab to run the CI testing?  If not, reach
>out on Matrix.

I don't have an account yet.
Ok, I'll ask on Matrix.

Sincerely,
Ryo Takakura



 


Rackspace

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