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

Re: [PATCH] x86/PV: ignore PAE_MODE ELF note for 64-bit Dom0


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 16 Feb 2023 08:38:25 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=vdSvawLur9z3uii9VAf5jczLSIvMRa54vGxeZ+hKdcw=; b=n4e0D2wGoHs2syCpZFN5boF/OjCc6Oof5fM3Jg3s1n2rNJjNN8HIS7jlsGJPl7P5tvATXZTHaTOM9WbyTYUAW0us7O6FFndyyc0AEGijWTjJFC4AvZAJyhgc8zET1DPzVc78IWVZ0WOc88L63qUokaL1Pi1/45YschX1iAiD2AC4Tyya52FukxMkvf3jPfAtnAHOzToxgMuYkdCGikiyMNTe0Hzz/qxFgCaTt/aRnfoScAHUK7RNpZgyoqoZGeJmXO8DW7gSvEP7XVKYLSY87Ttgjx/StIEwywhgnGhMDzVb5kSdmLpPAvf8n33DP3rNhRXAEEwjzMDKCSmhvIiIwg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dwstdrUvo7r++bCM5QWdq6Nsq+WZekmJvURFlkV69Mg+CMNjk1a6z71ezSBa2p2eGGgr2yOTpNcmg322u1w+RHwSWCclDDWR/jr3FZOR6IUEu4qpzNjw4xwA0Xc+VYaEOum4QPeldrrV/9Lja6F/JOijpeL++mV2jg/z1ncuUy8FpoH1/tP08LHoCQ8flHR/XZvOEeWb73eS7do4xNvbvDGw1a5qk/JDNWkP6KdvJx8ijbsaBXCNqQW4ZDV+oTltVNvwYU9ODvvkk5y7GaFZjqPYEO0W6Q8Xb8UxgKCTQmG8wCPsj22ukkjtHWHtZVHQDuuGpuAdNp94SwgkPR+oxA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 16 Feb 2023 07:38:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 15.02.2023 19:41, Andrew Cooper wrote:
> On 15/02/2023 3:10 pm, Jan Beulich wrote:
>> Besides a printk() the main effect is slight corruption of the start
>> info magic: While that's meant to be xen-3.0-x86_64, it wrongly ended
>> up as xen-3.0-x86_64p.
>>
>> Fixes: 460060f83d41 ("libelf: use for x86 dom0 builder")
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>> ---
>> RFC: While Linux works fine with the adjustment, I'm not entirely
>>      certain of external tools (kexec?) having grown a dependency.
> 
> Again, I wonder why you think regular kexec has any anything to do with
> this?
> 
> Are you mixing it up with (legacy) pvgrub which does end up doing a
> kexec inside the context of a PV guest?  If so, it's MiniOS's support
> you need to care about, and I cant see any logic that even inspects the
> start_info->magic[] (either in MiniOS itself, or the pvgrub patches).

I guess I really was thinking of something like "crash" instead, mixing
things up that way.

> Like plenty of other fields in the undocumented PV ABI, it's not
> interesting at all to software.  There's nothing I can see in it that
> you don't know at compile time.
> 
>>  It
>>      may be worth noting that XenoLinux and its forward ports never had
>>      this ELF note in 64-bit kernels, so in principle it may be
>>      reasonable to expect that no such dependency exists anywhere.
> 
> NetBSD sets PAE_MODE for 32bit and 64bit but, like everything else,
> doesn't appear to inspect start_info->magic[].

I.e. the same as (so far) upstream Linux.

> xen-3.0-x86_64p is obviously bogus.  I find it far more likely that
> noone has ever noticed this bug, than anyone gaining a dependency on it.

Which kind of reads like an ack, except there wasn't any ...

Jan



 


Rackspace

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