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

Re: Debian randconfig failure, Was Re: [XEN PATCH v2 0/7] automation: Update containers to allow HTTPS access to xenbits


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 22 Feb 2023 10:42:14 +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=79YgbylKNmpmqn5WaEIFXhdCLmBY7/F7PcJedzqjRIw=; b=kIW90XKLdgkpakZtN1GLilyMG+/v420VxZxPGPaN4husQMU2Tx4RKdd9tQ26bYMIhTlBy/AOtHAmBGtt3gA+MlmFZZsr0n3F2cqozW8iIYCOP9bgYPSeg7dF3cFeq/4V7NcwCADqFYq5qFfaOxGGPory2ukQglpKrycs9astsDHOdIHYJTJ9WHrsGUc8M+VV2glwP09Emh/+BrzLHhagAKDxqaCxhJChTHybrSbjIOC9GI7MCBU5op2qHIQfSZ0X57avtCMn840ucJEweUQzwiPWbZHJ9yiG7n3hJ+uoengnygswwqk+/4Ve3SYj6i3+7oTDXb6Ypz3WveyjsD5ImA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mVPxVsPojw8Llz6IVf4BzDBbK3nwEPa8/T3eDWbblsPnxQzETnkVWhPg3WDqkEyVE8wAy3nkwGMPbDNgXT76X9kfRnBIs31+Lt3NIV2GxyPKSp514ZHmB6CXmrY2O6AbJG+NE1dFpeQTR4IoK5F3dSoQbqA/WjCZFT/ZRbCSTcP5Qsb62VDVxtH7YzZ/wtvNIztjwJWrW8HR7SZ/X6qpHnbs0t2IFN5ZJY+hyKALxQkK1wtKl8KHtt/rLeh8BiFSgtyYk0Z1PjOtdzNy/uJoPxfi3P5KLZkubx9oDe64Ge0K1U7JDzUr9C8XFlfQdlf5emo5I+ccht976H9YkRjsRw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 22 Feb 2023 09:42:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.02.2023 19:05, Andrew Cooper wrote:
> On 21/02/2023 4:55 pm, Anthony PERARD wrote:
>> Building randconfig on debian unstable seems to be an issue.
> 
> You're talking about
> https://gitlab.com/xen-project/people/anthonyper/xen/-/jobs/3769926509 ?
> 
> + gcc --version
> gcc (Debian 12.2.0-14) 12.2.0
> 
> arch/x86/extable.c: In function 'search_pre_exception_table':
> arch/x86/extable.c:200:27: error: array subscript -1 is outside array
> bounds of 'struct exception_table_entry[1152921504606846975]'
> [-Werror=array-bounds]
>   200 |     unsigned long fixup = search_one_extable(
>       |                           ^~~~~~~~~~~~~~~~~~~
>   201 |         __start___pre_ex_table, __stop___pre_ex_table-1, addr);
>       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from arch/x86/extable.c:8:
> ./arch/x86/include/asm/uaccess.h:414:37: note: at offset -8 into object
> '__stop___pre_ex_table' of size [0, 9223372036854775807]
>   414 | extern struct exception_table_entry __stop___pre_ex_table[];
>       |                                     ^~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[3]: *** [Rules.mk:246: arch/x86/extable.o] Error 1
> 
> Jan: do we need some more gcc-wrap sprinkled around?

I think we can get away without, but first of all I'm curious why gcc12
spots an issue there, but not in my (and perhaps also your) local builds.
Being a randconfig failure, is this tied to a specific setting in .config?
Off the top of my head I can't think of any which might affect this code.

To work around this, instead of adding gcc-wrap-ery, I'd favor simply
changing search_one_extable()'s 2nd parameter's meaning from "last" to
"end" (i.e. the range passed in from [,] to [,) in mathematical spelling).

Jan



 


Rackspace

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