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

Re: deviations tagging


  • To: "fusa-sig@xxxxxxxxxxxxxxxxxxxx" <fusa-sig@xxxxxxxxxxxxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Wed, 15 Jun 2022 08:37:56 +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=C+0cT5V/1JoxqnMv8YY7FU6CsfOLWuu9VcQF5JfRCLM=; b=Q09ec8uiIPhlHYSEtf/iq9qJBY5jicotkue2QQ3iUIhrdMcnk6wVykhDKIGYJFJSUvLtXe8v3hcX1hFkzC57ZakI/4A3MqIxwha/hckLYkFphhO4STB2kfU4avvzJykwqql7Hw9gxdnP99pumDbWz8FU6ER0hwgDi4TT2JEofZm5kz/Q4nnDZcPPd3IWgaL9fQ0aYuws6iafWjmxlZpm/xyzx2V+j19VPHo8bmLcDxjUgEhV8200JIyAlSm1DHwbtBVU68y8ylHrR7GQQw0HdnrXLqaS5CWvkbH/N0C599uaJ0d7tXAmjWGPXl/Ms7QASGQelvgl10YKMtBFksakAg==
  • 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=C+0cT5V/1JoxqnMv8YY7FU6CsfOLWuu9VcQF5JfRCLM=; b=ec6oyP7xekwhSFCSjLDKoYTcidX2ARYHYY/DUW20GJlwr9kwq2Qtu0xibeHyyRxPgPuW5dEtPUn28zc12S+10tHoy0yPgcz1CrIet8PE5vFElwvAEXw20ukzW67DPbxcmVQa14CcPTZLziX3QO6dlC6nNFEhZa2ibYklzgZRzrSd5f+Fv3jyIeZ8q5HxCLp8zp/xD8V4VxpLbrbavQIE4CuigbK6rxNckWiVGURsZGNHPFNjJRgV2/CmgLkTalqEKkgf6F1z/6OBm3ItYTJPiGAFKfNLXdGvZRAKssKJclZiYvM19oWB6igi2GsgLBEOxAE+s9H5l0ytiX1TRD5fxw==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=M+bNqSCYUvt3PwQyZU8iHcNCmERC48h52vafsE220uAwDFZvhtTobk1Gy6YzozLyaJh+3wfJgEIMsSLqSlwleECUypC/G0+femUFpBysqr/oHGV8T4DUlggxHbd9Uf1H/jhxaAXtdc4AK9r+j8X0JVlePiGu43yu8Gh2kKWvNRsQurXxKuBSOV3h7WOAz4OoxN5vPjotqw//kHXeEmLwNUGOOfahOZ51UlU0wGud/0zDJ6K/uj4mF+R2Kk2zKk0rUDWewsPnqpIm46fSvr7IdlXvOnYRQM7NmV+RWmU6sx3aiMEgQteo4TFH5C+wUuhVH1gMugW7FNG+KS47zLMSkQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GOYmeLFL4BgceNtkgz/0lcZvwio0dpLmaXrEa6gaPOwudOsV7JUPRck4pdcKWBDeh6Wr8Bha3WSe3Evq9/K5bgaZDq76GvMP8l0QJa6jT7vQpeJttQq4yFJIzJa7Avuj3awohUSz1LueqJIo0dRIo3wYgO+ooshWtZFSZpHb1saenQIeR6BXVEPmRvqghS70h3W5EJ/QohYwwgxfyD1OHbPyX3r4eQa7Qx+cA7K5iEtM7AjLpPDxwHcCTZcnHjQKW+0pO31IpszGQuhUjGFLeizo5gs2wWPHEDi7Noacv9AIKy5eIturc4eF2A2BO/qErksZlwkCyxlBdcnmuUrn+g==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, Stefano Stabellini <stefanos@xxxxxxxxxx>, "roberto.bagnara@xxxxxxxxxxx" <roberto.bagnara@xxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, "Artem_Mygaiev@xxxxxxxx" <Artem_Mygaiev@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • Delivery-date: Wed, 15 Jun 2022 16:04:51 +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: AQHYgEDHiIEdvqLPd0+KXni9+JC6mq1P+tkAgAArEIA=
  • Thread-topic: deviations tagging


> On 15 Jun 2022, at 07:03, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 15.06.2022 00:47, Stefano Stabellini wrote:
>> Roberto was suggesting to use the following different categories for
>> tagging deviations. We could pick any "TAG" we like for the in-code
>> comments (or other tagging systems).
>> 
>> I am also CCing the MISRA C team to give them early visibility on this.
>> Feel free to provide early feedback if you have any. The plan is to
>> discuss it further during the next fusa-sig call and come up with a more
>> detailed proposal (including the actual tags, how to use them and more)
>> for xen-devel next.
> 
> And as early feedback: They all look like they're meant to be used
> together with some rule reference (or else there's insufficient context
> to know what is being talked about). Yet iirc we said we'd want tool-
> agnostic tags, such that the same kind of comments can also be used to
> mark e.g. things Coverity has found and we have decided to leave alone.
> 
> Jan
> 
>> adopted
>> 
>>   The report should be considered originated by adopted code without any
>>   contribution of native code to the report.
>> 
>> safe
>> 
>>   The report is correct but the specific behavior is safe under every
>>   aspect assumed to be covered by the guideline.
>> 
>> relied
>> 
>>   The report is correct but the rule concerns exclusively "developer
>>   confusion" or readability matters that are not relevant for adopted code,
>>   which is assumed to work as is and it is not meant to be read, reviewed
>>   or modified by human programmers.  To be used for adopted code only.
>> 
>> false-positive
>> 
>>   In the opinion of the developer the violation report is not correct
>>   and the problem has been notified to the tool provider.
>>   To be used only for violation reports.
>> 
>> compliant
>> 
>>   The developer can prove that the possible non-compliance shown by
>>   caution report cannot happen in any situation and can motivate such
>>   claim.  To be used only for caution reports.
>> 
>> false-negative
>> 
>>   The developer has found a non-compliance not shown by the tool and the
>>   problem has been notified to the tool provider.
>> 
> 

Hi all,

Indeed, they all look very useful and very helpful, this month one of my task 
is to
explore how some of the tool works in the context of in-code comments for 
violation
suppression, using cppcheck, Coverity and Eclair.
I’ve found some documentation for cppcheck and Coverity on how to suppress the
checker, I’m missing Eclair, but I’m confident that Roberto can help us on that.

As first thought I was thinking to propose the above tags with an incremental 
number
that could work as a link to a file containing the justification for each 
finding.

/* Safe-<number> */

So that a preprocessor script can be used later to substitute the tag with the 
appropriate
in-code comment suppression tag for a specified checker tool.

I will also propose to you a template for the justification so that we can 
start from there
and discuss on it.

Cheers,
Luca


 


Rackspace

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