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

Re: [PATCH] Add more rules to docs/misra/rules.rst


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Mon, 30 Jan 2023 09:32:48 +0000
  • Accept-language: en-GB, en-US
  • 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=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=dibFMqZvR7Rnflsae3OShO/SukIWjWcvhwJPpuUDoes=; b=bfomlTxOic2Yrp1i+FBBrHv5XZMSc7ysrLaykjfpbr0hN6Q6ADPMTfoKeMuYgkOw36N7m6yzhpUgS/dzfGUp9AmCYv94aQJdbKTWZQvzfvC/URlhXWQj7cy2enD3AatRdqGnfr9V+weOYlHgY8qCHsz9nm+Li2Nbg43HuuWnldSoq39jGHuVpmieAl9m14DuAY6X+BeDqP7g8bTuzecvMktnTEK87Z3kOfiL0/CCgi+hu6eumD4Jo8Etg4x2qwMrevZAFw/GdqHkQLvuiIZxW8nuJi2FAqMDWdlcjTSxA/AMm6HXugFN2PVcFrXbgKgiB0S7xTF1HBEPNqbHgJYsww==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D+fRq7uniYSxXbb58r5ykywNroaHgPQYc2JcQ2pjDw+N4HyRHygoo07/h7G0AoQLiGjkozoNJGY+vZ3vb9+hu7zBx3GDmaQN+2OmxJo8bO32ZcyN0OTuZi74mEcjglRgsImZkPa8R9Y2nZSkrUmcRnnl/EN2GCit5jARhn3mgatV3FQY64YxIeyMckVOb/sGiIoxNgXC9SuJpVK7yE1MR7+lp2pIF0OPEvMq65p17TDz652gnrVsTZcpGVzzCEzpYlyhp3YsNz4wxdS/D5z1OzWOUvJSaYj0ZCXI6cyR/9Crw9NN7b/OX9zr5gnVBVE6muxHs3wyC9DxxV5w8EmzhA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <stefano.stabellini@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 30 Jan 2023 09:33:26 +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: AQHZMP/Bwov1pLqo70y7UrD5jvL/DK6waZaAgAByqQCAAAyrgIAAJGIAgADVWICAALcHAIAD/qYAgAAhQ4A=
  • Thread-topic: [PATCH] Add more rules to docs/misra/rules.rst


> On 30 Jan 2023, at 07:33, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 27.01.2023 19:33, Stefano Stabellini wrote:
>> On Fri, 27 Jan 2023, Jan Beulich wrote:
>>> On 26.01.2023 19:54, Stefano Stabellini wrote:
>>> Looking back at the sheet, it says "rule already followed by
>>> the community in most cases" which I assume was based on there being
>>> only very few violations that are presently reported. Now we've found
>>> the frame_table[] issue, I'm inclined to say that the statement was put
>>> there by mistake (due to that oversight).
>> 
>> cppcheck is unable to find violations; we know cppcheck has limitations
>> and that's OK.
>> 
>> Eclair is excellent and finds violations (including the frame_table[]
>> issue you mentioned), but currently it doesn't read configs from xen.git
>> and we cannot run a test to see if adding a couple of deviations for 2
>> macros removes most of the violations. If we want to use Eclair as a
>> reference (could be a good idea) then I think we need a better
>> integration. I'll talk to Roberto and see if we can arrange something
>> better.
>> 
>> I am writing this with the assumption that if I could show that, as an
>> example, adding 2 deviations reduces the Eclair violations down to less
>> than 10, then we could adopt the rule. Do you think that would be
>> acceptable in your opinion, as a process?
> 
> Hmm, to be quite honest: Not sure. Having noticed the oversight of the
> frame_table[] issue makes me wonder how much else may be missed in this
> same area (18.1, 18.2, and 18.3).

Hi Jan,

I think I recall the frame_table[] issue but I was looking into the eclair 
reports to
understand it better and I was unable to find it, do you recall where the tool 
was
complaining for the 18.2 related to the frame_table[]?
Any notes or link is appreciated, maybe we could speak with Roberto to 
understand
It better, because I checked with Coverity and I was unable to link findings of 
18.2 with
the symbol frame_table[] (however I might be a bit lost in all the macros).

Thank you.

Cheers,
Luca


> 
> Jan





 


Rackspace

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