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

Re: [XEN PATCH] automation/eclair: reorganize pipelines


  • To: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 26 Apr 2024 08:34:23 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=UkuM/TRIQefcUAM/UnQTpfPfnwdxOrboQa341g3Is3A=; b=ik7S+3t0ZboEdHl9HHVGc2ntpeGccwamXNtJPFI1dum3rW0twFeKG30gVfNP/xuMKphnhUntjql7E/aY6M1Tvj/jPHX38wZNDzdRNsDt66c3Ybzc7n4R1+hkTWT0cfuJsMX8ILYH5nZC++2K3OQ8lxXzTyzkb2x27UpHZIE8lG/n58ammuiu/QxsquDsVPFeia5J+bJhLoyaKx0P5qwtSENW9dA4l+g3Wx3jsAdhiHp4nPlKMCLA4xZZ28pmRoThS0RQVH9ZbtvdEzFrDo8sk2Yken9hXO9P/TtzQFGAxGMyAxdEE+y7y2uGgRr6/MSw5sBkIpwwc+WF7WafgY4xog==
  • 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=UkuM/TRIQefcUAM/UnQTpfPfnwdxOrboQa341g3Is3A=; b=DEp+Vcez4GOcD++IebjtBdMbSldR1hSYFI1F0r6nltbVjkeh9PsiJM9CLt2p+vFNA9gnTro+sCS17J0C4F+2xwv/zeG5FS3Q+47dDvJJKL23PMXkf/IqjMD2l+tA3Wm0aomUVxXdpeniRdJ0GkQ01OoLbhKQH9nHzN3nPiQkER5HQJILzD6hSbJFk4XBIHxBUM6/pmwEyx+ST9wQnDyBnPrrbzqhkSrQFDPrDwKHrb0zkh8yzbvp7HcgOTT2uQzWj9mMYYJuWBf+d44AtAGQ1XVu5z5JXL53ctzwFYC8LJi1VadFwt9qQ9YlcvwB0SNHxYoTU0Pjfs1qDjikRmZfMw==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Q7hXQS1zWPlFaeBKodjY3BM9CTvE35+bFLQTVRU5/U5PK20Jvtcfwke9r5JvMgm/1K35TWZjF96dPiMtesplhqf0aM0R5eEtcsIRzuqtMRMZxWuCssZ2zHXNe2vcM15A0i5bkUyUTYvsYJqRcny1aFuMppYexI+LngROtmFsH/Na6OohM/vdcCcdMIcavKIUOODQCFlboH7lt+Z1yZHr1mDd25vFQbaM4JdzUTWe+mLbaW1LWQX+YXWBUFJeO3NLZRjRb6JJ9BuRhyQIFMtq2CY0GKHMIBRRYkj3Pmm2WzCRq4j1nSgRsqi5UqAAKzqGimGay+lmajbcRTo6N3s/dg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fnmLRfFpiO8XyTyB0RUiFzkA6iU+M38G36aqe7vCQjIuWYUEKyGBQTJ8m+80KdeZHzjSwHXdR/C5lMf5dH7F8DHQnl8rmqjmRdDLDEmPkOlVYnflmL++GdShuEw0vbJk3v4UVegDRmjNLWbtZm6Gge+d5jpWH4545wiH9GhrU4rNZMVu1ZQUH/VmlR3rKNmqPSlArlHeVBcbmFFRtIkQmzpY2YyWQS7PkaXzKbEwcE1Dx40/8Ij9TRyp7BW7prGjZd4BQNC4LomiXY0iC6opw8wpAS97qf7I/w68ly0lHTItwRBr+rZm3zu7S/j4M0S+HHMtLFVuXYEvxcKjbbJVoQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Federico Serafini <federico.serafini@xxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "consulting@xxxxxxxxxxx" <consulting@xxxxxxxxxxx>, Simone Ballarin <simone.ballarin@xxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Alessandro Zucchelli <alessandro.zucchelli@xxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 26 Apr 2024 08:34:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHalxT+g/fClqgaI0iwNGAhwN+Th7F6Ot6A
  • Thread-topic: [XEN PATCH] automation/eclair: reorganize pipelines


> On 25 Apr 2024, at 14:32, Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx> wrote:
> 
> On 2024-04-25 11:40, Federico Serafini wrote:
>> On 25/04/24 02:06, Stefano Stabellini wrote:
>>> On Tue, 23 Apr 2024, Federico Serafini wrote:
>>>> From: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
>>>> Introduce accepted_guidelines.sh: a script to autogenerate the
>>>> configuration file accepted.ecl from docs/misra/rules.rst which enables
>>>> all accepted guidelines.
>>>> Introduce monitored.ecl: a manual selection of accepted guidelines
>>>> which are clean or almost clean, it is intended to be used for the
>>>> analyses triggered by commits.
>>>> Reorganize tagging.ecl:
>>>>   -Remove "accepted" tags: keeping track of accepted guidelines tagging
>>>>    them as "accepted" in the configuration file tagging.ecl is no
>>>>    longer needed since docs/rules.rst is keeping track of them.
>>>>   -Tag more guidelines as clean.
>>>> Reorganize eclair pipelines:
>>>>   - Set1, Set2, Set3 are now obsolete: remove the corresponding
>>>>     pipelines and ecl files.
>>>>   - Amend scheduled eclair pipeline to use accepted.ecl.
>>>>   - Amend triggered eclair pipeline to use monitored.ecl.
>>>> Rename and improve action_check_clean_regressions.sh to print a
>>>> diagnostic in case a commit introduces a violation of a clean guideline.
>>>> An example of diagnostic is the following:
>>>> Failure: 13 regressions found for clean guidelines
>>>>   service MC3R1.R8.2: (required) Function types shall be in prototype form 
>>>> with named parameters:
>>>>    violation: 13
>>>> Signed-off-by: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
>>>> Signed-off-by: Federico Serafini <federico.serafini@xxxxxxxxxxx>
>>>> Signed-off-by: Alessandro Zucchelli <alessandro.zucchelli@xxxxxxxxxxx>
>>> Fantastic work, thank you!
>>> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>>> Is this patch safe to commit now? Or would it cause gitlab-ci breakage?
>> Yes, it is safe because the ECLAIR analysis is still allowed to fail.
>> Committing this patch wouldn't break the CI but it will highlight some 
>> regressions with the orange badge and the following messages:
>> arm:
>> Failure: 5 regressions found for clean guidelines
>>  service MC3R1.R1.1: (required) The program shall contain no violations of 
>> the standard C syntax and constraints, and shall not exceed the 
>> implementation's translation limits:
>>   violation: 5
> 

Hi Nicola,

> +Cc ARM maintainers, Luca Fancellu
> 
> after some investigation on these regressions on R1.1, there are some 
> concerns with the current code:
> 2209c1e35b479dff8ed3d3161001ffdefa0a704e introduced the struct
> 
> struct membanks {
>    unsigned int nr_banks;
>    unsigned int max_banks;
>    struct membank bank[];
> };
> 
> with a flexible array member at the end; this is well-defined in C99, but 
> what is non-standard (a GNU extension) is having this struct as a member to 
> another struct/union in a position other than the last.
> 
> This is still supported by GNU (albeit reliance on this is undocumented for 
> Xen), but what is concerning here is the following (taken from [1]):
> 
> "A structure containing a C99 flexible array member, or a union containing 
> such a structure, is not the last field of another structure, for example:
> 
> struct flex  { int length; char data[]; };
> 
> struct mid_flex { int m; struct flex flex_data; int n; };
> 
> In the above, accessing a member of the array mid_flex.flex_data.data[] might 
> have undefined behavior. Compilers do not handle such a case consistently. 
> Any code relying on this case should be modified to ensure that flexible 
> array members only end up at the ends of structures.
> Please use the warning option -Wflex-array-member-not-at-end to identify all 
> such cases in the source code and modify them. This extension is now 
> deprecated."
> 
> It looks like this option, and the corresponding deprecation of the 
> extension, will be available starting from GCC 14, so this might impact 
> future compiler updates for Xen builds.
> 
> Linux is also concerned about this (see [2]), so I think the changes in 
> struct layout introduced by the series [3] should be reviewed to determine 
> whether this change was deliberate or happened as a byproduct. If this is 
> determined not to be a legitimate concern, then this can be documented as an 
> use of the GNU extension.

Thanks for letting us know, so the change was deliberate, the effect probably 
not, I guess we need to find a way to fix this in order to use this interface.

Cheers,
Luca





 


Rackspace

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