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

Re: [PATCH for-4.19] xen/arm: static-shmem: fix "gbase/pbase used uninitialized" build failure


  • To: Julien Grall <julien@xxxxxxx>, Oleksii K. <oleksii.kurochko@xxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Wed, 19 Jun 2024 13:44:32 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org 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=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=leMPA/wXFypHYSB6ShGF1QFdxJ3xOOpa+MO6Y5fM4CM=; b=XVSIR/GY7AD9kOK86MFjVjy/44wrx+BsSJ3OZ13L+m7Uyu4v1vUi9HAUqFs4M052gFhJ24F9Dus+Al1cFaRccNRQ0wTGZUlmsJAA+545XMgyFOrquwC/LUmWKiuxf2iqL4VoDNX7j/b+lGdm/mUqyMdb7bH9h+mo6eCabR8h1gcawzlItfxkOCStEP9900aa1OuSdvm7RBgGJ4aHwFN781pDvwBq62XJpK39zx9l+y8aMBGHFG/hPWLzw6TqM0LxsPB5FeO5K/kYmf/b19B7MbkbUVU/UTVdcMLMGaK6UOjn/PXx1pbp0qag3gD/HJvdmrhrvKGyx2zUKcZt7ZBvXg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cPsCyo/hTSKFLicXB9z+ddsRZgpsDYHKLh8wwc6QJ0ZvxpH1MeEuL95gsICqpuSeutEa4SwYkYikX1qLEY9VNOZRMIz8XbpTA79MmTCqcBFP/la5HccSstpqkyeB/GeUZcLo83Nnl6MQyUEGZK3JQsuvoJvh79U1gCCmuRwbVqKfa10vYDltSMQNKXXUv4tIl0aDGOLK6JxxDByZt73xwRjlF+eDYP6TfBtksxrr6FcwwLM4URCdEm7eeYOzdvDHwKkvafYb2vgrj4ZQxXefoZIf7FPav2LiZAbMs50ElWAuLXl8qznDL/sHdrLvyqRMXl73LyBtB/j/VEfaq9eJzw==
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 19 Jun 2024 11:44:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Julein,

On 19/06/2024 13:37, Julien Grall wrote:
> 
> 
> Hi,
> 
> On 19/06/2024 12:19, Oleksii K. wrote:
>> Hi,
>> On Wed, 2024-06-19 at 09:02 +0000, Bertrand Marquis wrote:
>>> Hi,
>>>
>>> Adding Oleksii for Release ack.
>>>
>>> Cheers
>>> Bertrand
>>>
>>>> On 19 Jun 2024, at 08:46, Michal Orzel <michal.orzel@xxxxxxx>
>>>> wrote:
>>>>
>>>> Building Xen with CONFIG_STATIC_SHM=y results in a build failure:
>>>>
>>>> arch/arm/static-shmem.c: In function 'process_shm':
>>>> arch/arm/static-shmem.c:327:41: error: 'gbase' may be used
>>>> uninitialized [-Werror=maybe-uninitialized]
>>>>   327 |         if ( is_domain_direct_mapped(d) && (pbase != gbase)
>>>> )
>>>> arch/arm/static-shmem.c:305:17: note: 'gbase' was declared here
>>>>   305 |         paddr_t gbase, pbase, psize;
>>>>
>>>> This is because the commit cb1ddafdc573 adds a check referencing
>>>> gbase/pbase variables which were not yet assigned a value. Fix it.
>>>>
>>>> Fixes: cb1ddafdc573 ("xen/arm/static-shmem: Static-shmem should be
>>>> direct-mapped for direct-mapped domains")
>>>> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
>> Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
> 
> I have committed to unblock the CI. But I have some questions on the
> approach. I will ask them separately.
The CI failures as seen in:
https://gitlab.com/xen-project/xen/-/pipelines/1338067978
are due to 2 issues. This patch solves the first one. The other is related to 
Henry's xenstore
series that without a corresponding Linux patch, that has been merged into 
mainline, causes a regression.
And thus all the dom0less PV tests fail. We will need to revert the xenstore 
patches for now.

~Michal



 


Rackspace

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