From nobody Mon Sep 16 19:25:01 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1721770927; cv=none; d=zohomail.com; s=zohoarc; b=i9QQm9wEGenCPzqFdKPbWrI1TLfOZI5fcPTOSIJ4QWUQsQLb5u/I/9d+tKZrY6HzukLpdIngFtKbVCxfjq438T6WdZrFdvCn5z+zFca6r5C7xL3ISZeXxFUwTy+0jK+6ah9J1oiRe32NU3WGbPh67g8fLybRFbb/vHeD+NhjJTY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1721770927; h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=wbMzQxgArTxGKvRIHB5JRMnOako2B1fDFmOJg5SCXEE=; b=BbPn8YcfaoHD1cYECurBdr2DfI4NQDCMuzEes+Sta3wzRjHJuVL4sJvVyJ1xNUvUc6+4Mv7OxGP/K09pcK7JX7UODDp+sOgn1YLwcwTacqi5MJKw5WtP0hlplfRFZ1aRf6oDNcfj3WP1ya0N2N97ZPcQQUk/cD8x5ysWF1ZeR/Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1721770927758636.8157048678447; Tue, 23 Jul 2024 14:42:07 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.763574.1173840 (Exim 4.92) (envelope-from ) id 1sWNGZ-0002n5-RT; Tue, 23 Jul 2024 21:41:51 +0000 Received: by outflank-mailman (output) from mailman id 763574.1173840; Tue, 23 Jul 2024 21:41:51 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sWNGZ-0002my-Ob; Tue, 23 Jul 2024 21:41:51 +0000 Received: by outflank-mailman (input) for mailman id 763574; Tue, 23 Jul 2024 21:41:50 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sWNGY-0002mq-AN for xen-devel@lists.xenproject.org; Tue, 23 Jul 2024 21:41:50 +0000 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 5b168fa2-493c-11ef-8776-851b0ebba9a2; Tue, 23 Jul 2024 23:41:46 +0200 (CEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 42775CE0F15; Tue, 23 Jul 2024 21:41:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A514EC4AF09; Tue, 23 Jul 2024 21:41:39 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 5b168fa2-493c-11ef-8776-851b0ebba9a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721770900; bh=ff5YjC90GVSl12piLg//AWX/fJWKZqOrozrOhQaUu+g=; h=Date:From:To:cc:Subject:From; b=YeT0MoJaGRalfx5wsTWAu8UScilDbWoA+fRgof2FtL26eV+n5cWgLLM56NtUDG5TZ Ug2qgVgARGC+FrNipgwb5LegAfC/rJ/ndTuK77JTjltR2SnrvUyXF2JCvvpI9bVGe3 ySU5uBmbevPFHEV4FvlJJNt9nte7UKv+LXvT7kmi19ahWQNz9PKJa4KrvXdj6UnfUY C3SbBDBhZ4itEUMzjg2g2L+SXK55I+7lQeidVJqPGDqSAEdngGGykgrsao0pQyCFc4 rd1L1e4b/lPI4AjbgZqNgk1JfLkl8KdiVgSWqaJo6A/puJ7hDcliWdTo6VXI5a6iZa JH1scWKZfX60g== Date: Tue, 23 Jul 2024 14:41:38 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: xen-devel@lists.xenproject.org cc: sstabellini@kernel.org, Jan Beulich , Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Bertrand Marquis , Julien Grall Subject: [PATCH] docs/misra: add R18.6 to rules.rst Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1721770928836116600 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In practice, we are already following R18.6 and we have zero violations reported by ECLAIR (there are some cautions being reported.) Signed-off-by: Stefano Stabellini diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 80e5e972ad..0cb2fb8f24 100644 Acked-by: Bertrand Marquis --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -580,6 +580,13 @@ maintainers if you want to suggest a change. - The relational operators > >=3D < and <=3D shall not be applied to = objects of pointer type except where they point into the same object - =20 + * - `Rule 18.6 `_ + - Required + - The address of an object with automatic storage shall not be + copied to another object that persists after the first object has + ceased to exist + - + * - `Rule 19.1 `_ - Mandatory - An object shall not be assigned or copied to an overlapping