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

Re: Notes from FuSa meeting 2022-06-22 about Deviations


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Tue, 28 Jun 2022 08:16:33 +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=armh.onmicrosoft.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=OSeIIvIMmM+fOXwz1zn+4N7oz94IRuxVqw6UPd/czlk=; b=LDnQgfki3/w+pH1iY62EtPLcfPtug/aBcy2d89vS7dMXyLilJKF9h6ZG/eXFNVnmNKffvq36UpSsOZ5FaSKg+TnLBceacVyQ10s+wHgB8hbIhMBvyOzErPjXS1DqFN0IOC5rt1BxVDTKvtO64qM0MFo0oL0tCDt73mS0u1y96iBSSlcqI7u2tTQrunfkcF3Kp44MfUZd8nL6awkdkWwlt3tIT7FimuA1T0YRfLfovlF+605IHiBHVqJEhnbn0gBeB8Y3dj532c8H97+pumIjI6ClRNVjn0ekpAXZZyNtPAJHAIqI4a35yI6Ejeuxt6gjjKU8kqykbFIMnDOp/p4+bw==
  • 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=OSeIIvIMmM+fOXwz1zn+4N7oz94IRuxVqw6UPd/czlk=; b=lKKs0wR/WXnAtQ3b0vwRN3SVCM0I4NU8PK9AvROO2JZ+gi88O41p1no3wGz9iap87Uvvr4hNlFgNfAgF/kiOtPHYrXiLEO8KMzznWvZTjO7hz0KdE5E2vn1Ili9zyEuYtDcf9vpwzPyy8jMgPSptIA6gjPOmYVq6dT1DoBam9k6qqtZk4CW4jE7dMAzmr8xym4tjKv6AERKTufdTa2PPobcvrl6muxgMYOt4EyjMN18YEjexby4+L+7HVpCRmMk0IA+6kLfVVnnc2E5QvcJ8I5PHxKG5sJAfQ4615agIH1ctrk7WGDwsur6Pb6Rk+p4/QdISzEhrisInxAulMQoB7g==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=adjmFLZ7i8WeXim91hSAeA94dEjfIoe1RYCLYPbPxygOURVUHeeWWWOJY3k6bG2mDyeEAgYu20S5vvuYepBrQsXspMM3Kd2FFP5j1wfVpUBpBSQ5tJ36Oo1yJWI9uXQr+yNp/xImx3lJ63iLXIw6bAUM8JW8GbF0QLIWMlxeElhn36Fp+A9TXadf+stCEAyafUo0Dp/0Yy4HuWT02NGqw6SMyIdxzaZPQwYvzrfQWh2etQVBBIZUP6Km/LNpaev8vJ/321RmTDLqA0+EnhTerd0YBz93CUy9lOt9imL2l7a4rayksgRHxNfI3zGe+bQ3E48CSspHVrpaxccBN9ZGlA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jNNHaP/ENklCB+Rmz2h50kW8dvG1m4mkeWqyJe6JIcm5MU6m3v5f5qkIU3agvX3j369yipCqER/Ou1dN+INeeCjDyN5QP/181VlLu9ngLaadYYqpgDX5rSKTOQ5Q3w0z+IN8Ye5mxysjCgZagchA/JNx0VVPEXSsg6wVaoLDLY0p+WbVmIj2WAREr+6Eeyc94I3MxBDG5jXEjH3gblVdmwSAfrmo4Xd/oxJamdvVfs7+avNzgnBSk4FexEbQRl/J6PNJKgBMBiCdzidlA0oxnpNwhBvccDS5/EWX9pR4isxmsJs7swk+2vRAUKeaSI09oY7Lbxmqj82qY5c+huY1qg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "fusa-sig@xxxxxxxxxxxxxxxxxxxx" <fusa-sig@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 28 Jun 2022 08:16:49 +0000
  • List-id: This is a discussion list for members of the Xen Project FuSa SIG <fusa-sig.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: AQHYiltzcM/YAfIo3kuz6EHJsknl1q1kbw+AgAAK+QA=
  • Thread-topic: Notes from FuSa meeting 2022-06-22 about Deviations


> On 28 Jun 2022, at 08:37, Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:
> 
> On Mon, Jun 27, 2022 at 12:23:32PM -0700, Stefano Stabellini wrote:
>> Hi all,
>> 
>> These are some of the notes that I took today during the meeting about
>> deviations
>> 
>> Cheers,
>> 
>> Stefano
>> 
>> 
>> ---
>> 
>> 
>> reasons for deviations:
>> - code quality
>> - access to hardware (need compiler extensions to access hardware)
>> - adopted code integration
>> - non-compliant adopted code
>> 
>> Purpose of tagging:
>> - I don't want to see this report from the tools again
>> - This is the reason why I am deviating
>> 
>> 
>> Tags:
>> - adopted
>> this is adopted code
>> - safe
>> it is a violation but actually the code is safe
>> - relied
>> this is for adopted code again and only concern dev confusion
>> - false-positive
>> - compliant
>> for *possible* violations which are safe
>> - false-negative
>> Flagging a violation that is present in the code even if the tool
>> doesn't spot it. Probably not applicable to Xen as we want to enable
>> multiple tools
>> 
>> 
>> Probably none of our code can be claimed to be "adopted" according to
>> MISRA, even the one coming from Linux.
> 
> So that would limit the tags that we use to: safe, compliant and
> false-positive?

Hi Roger,

I’m afraid we don’t have an answer yet, the meeting run out of time
yesterday because there was a lot to talk about each tag, probably
In the following meetings we will have the chance to talk about it.

> 
> I'm not sure the difference between safe and compliant is worth having
> a different tag: both will need a written justification anyway. Maybe
> would be clearer if there was some example of the different usage of
> safe vs compliant.

my understanding from Roberto Bagnara’s explanation is that Compliant is
a tag marking a *possible* violation emitted by the tool, so the tool tells you
that there might be a violation because there are probably variables above its
control (for example it doesn’t have a full path graph because a function is 
called
by interrupt vectors, architectural behaviours, …) so the tool’s job is to warn 
you
about that and our job is to have a look on that piece of code and prove that it
works under all the conditions the code is meant to work.

Safe instead is a certain violation emitted by the tool, there is no 
uncertainty in this
finding, but with a proper justification (tagged by Safe) its possible to use 
that code
and be compliant.

Cheers,
Luca


 


Rackspace

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