Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1262085ybt; Thu, 18 Jun 2020 04:39:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnqv0pgE5pno7Z+B4doPoE36ozy2A9HW90VZ5UKTwliA0+2zj2h5LvDFeIvvbeD+O0httt X-Received: by 2002:a05:6402:1217:: with SMTP id c23mr3601647edw.270.1592480373142; Thu, 18 Jun 2020 04:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592480373; cv=none; d=google.com; s=arc-20160816; b=xbmjOOS9JgErE+rJWWK2HhrA7UdZkz0jKa5gFG/eD+VaVSbXVkauSHEHltwrfkt/WZ 6iPdNLtlJYsi+yYhiFku3KXekWEojT/mx07LEC3v5B0VNAR7x/AF/H4GCHKB9JE/wdJq iCt3cyhF9DQ3+bjIA5r4LUlMYEf1iY09wKYhbaEJReuucc2tBwxYUuBEil/UzhbmEBoE y+cjRL2/bFLpX77uoQTYrMkhCNCXHTSGmvrjbyu7R08kHJ6SeSQzp/94jjWptynZjBsv e6UoZ1h1FyELVshJJQmEsASqilr9uVwow0U6xjdzuwpLNi1vVlhVU+zdAUFV1fY0tV64 4Kvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:autocrypt :to:from:subject:cc:dkim-signature; bh=ehAN5jtm9B3asTS9Vq05604toI++iB0rGiWj24O/12Q=; b=JodLoqlaGSbQgfK+liUWiu4JvkYKG+JXBnWT0AGDazVmAZhS29QyEjTLs58ykT5r+h jBuapRH2E3k3sED+XJ/XnM7yCKUiyyo6JpEAWOA1TTkvnuRjZrvluRIf0uG/Fo33Kzii 3F9EFwI75E+E02QJBJO5w5UF49XfAnRCZaGZ7emy7RHyrmss4u04sBTLozr0EVBD9vaM 7iLZVns7YXeA69GYMDeTIbu6tvgOtOweuPtnF2v9McDhccQ419ynMNf7dSWZO5UZ7YtW 2oHuWUhTfLaTlBTB3JvQMJZqKox3i4Oprzwx+dlsXCqGJHUsU79lobPd49fwfdX6JWIi HdOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=NPneonDJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si1776517edr.56.2020.06.18.04.39.10; Thu, 18 Jun 2020 04:39:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=NPneonDJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729646AbgFRLf0 (ORCPT + 99 others); Thu, 18 Jun 2020 07:35:26 -0400 Received: from mout.web.de ([212.227.15.14]:34417 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729583AbgFRLfX (ORCPT ); Thu, 18 Jun 2020 07:35:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1592480100; bh=mrk9KN93Cq13swgTdZ56LeduK37rnJtF/Sv4c5hfqIU=; h=X-UI-Sender-Class:Cc:Subject:From:To:Date; b=NPneonDJGToeMbjxAT+qmM7xwfT3m0x4QxVEQiWFJh5gbUtBC4sgg7xjGPQ6rwOLv 4x7vAxY/tRLpOXW9EiAz+G1QGiq93kHme2fJ/sKLTk+iWYbTUglOn4WiDf7EOe3tIj Caa7JIFzfLG0QSOaQDauhjldLtz4UQTidrPXio4E= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([2.244.102.18]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0La1Sn-1j2hAM3OQP-00lkDk; Thu, 18 Jun 2020 13:34:59 +0200 Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, "Gustavo A. R. Silva" , Kees Cook Subject: Re: [PATCH v2] coccinelle: misc: add array_size_dup script to detect missed overflow checks From: Markus Elfring To: Denis Efremov , Coccinelle , Gilles Muller , Julia Lawall , Masahiro Yamada , Michal Marek , Nicolas Palix Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/ZwgcmUNS5gQkNCFA0dWXznQARAQABtCZNYXJrdXMg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1xxJhbzN+r9djSGGN/5IBDfUqSANC8cWzHpWaHmSuU3JSAMB/N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: <54ac89f1-5f38-8909-a652-c658a5a1f36b@web.de> Date: Thu, 18 Jun 2020 13:34:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:0Dsq4Mo4EkdKR8BRAGjdd8c2NdEx6G8+Kdjlot/fS/RILhfftby 4gN8IziJBUTiEfT/vy+gIm8fCSqdH8qYJflL6nlW4L5s6CYIlSeoB1q4jlCnKE6o3Ds1UHL h/34v/EBKxS+gKXB2pIBnbnP06z83oqZzQfLwwUaGnjtEkxDI0b7HPSIQWQ7UFrP6EwucDr gMH9bKNLy9Cg4nchBbiog== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:z1xSrbl3LBo=:U0HD7SMPsYBVeB5MUzfN87 GUiNxltBIimtTQLZunA3arKQWjQyC6OX1cTeh2+c117p5QK8S30KuOgCjCu4PkChlU7vggN7a kBiW03juwhAMF7mzqt2OQeRM//gJIWJgoswIM8ZAE3C+j7YoDWoxAeVzgBNFADt9PZMr+yWai GnZ4Jit3uByUapCg3skMeDT4EVjvyyTpvLwjxx+j1k7wYSQ+s4ciJ1OvEC6l3niILA0SzYw+G M38KifDtnumbiC1zYrvUQalzYQJZk6MFb7U868oZJY5gwH11IX2iyCvDMTKK36izkmIXM5ASs cQo3fyWZJXp6S+VbaryLW9LcDdG0+n/nIOfl4mOl97dH09viyFYoqVVVEFY05czehja7s2H/9 sVMlbmdDpWv/m7DbixG7+x+p4RCwRjEmmQ40690Rn1GracsmGoPKz9sW5WHevbAzX4NdZkefj dwZvwQ2nITUdBY/cTYD2JSS0k45Ja/kOgy0DL55nqi/5G5z7EtPt93dFeVdHUjhKGNGfndV/k mRjsDSnoeuH/2F6n9nTu1xlNe/dQC9BePUmCTaEbPKz8u8ykgCTXV48h0c028vE/nZAtW/iLs dm/0QVo5LdPP5vDPWnAktBO0T2MVK0qNZaLVUrqQ1gF+xTPKHxY/4YOdcq6GIblwUWtK2EXJA 3ot/qbICNMxDwDFT6FVtwoOXzIMaNppkKKyDWn7heoGGFsEy5mmDAFsdbvI+F7/sglw4oIrfA wllGqltgMRVDVzL3FMZA1jJ5CG0DaWsbbKtVgi0r0gaaGtTsly3wosWsHpjXcbjpJwvg+CfGo klRIAT51tOPlyM+29QVmuyjIviI+PniahLkrqzK4gMQ2C5WX4QZnOJ/rIEgC9GFZdcYVwOHfO BVZ/sYy0ucKM2Vf/DKDOz72D4NVGiKVCm69Nx7CsIGpzbQ1clBblUYIkn7ZP5F6QETUbr0vq5 /shlRmSPwc66b65ZOEVb31fEcwtLM7wmjQ/XyRA7J0+OFFzGBgBL2a5b5tC3S+UDKTyHbDZsm eQ3A0rwuAiujij1a0E6J3kxr59JHxAdqMa9bG6HqD6K40HcDNsWYREqA+x7femliJmuX3Yb1P A/Mv4JqWdGDcUG1mHRKHE4kLyaD7yHVbiA2c26lnPrvYNdwMfAaiT6qPzyD+6yGgHeVw1q0C6 zPrvXk91C0pR3apPzjli27cRcayXNgOmMzj/ZKUb749s3NZ2Gw//rt2/cghYnJbgUmZaMdPav 98oXw2X6fPBSpC5BI Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Why did you repeat a typo from the previous patch subject? > Changes in v2: =E2=80=A6 > - assignment operator used Did you add just a metavariable for this implementation detail? =E2=80=A6 > +expression subE1 <=3D as.E1; > +expression subE2 <=3D as.E2; > +expression as.E1, as.E2, E3; How do you think about to use the following SmPL code variant? expression subE1 <=3D as.E1, subE2 <=3D as.E2, as.E1, as.E2, E3; > + when !=3D \(&E1\|&E2\|&subE1\|&subE2\) I suggest to move the ampersand before the disjunction in such SmPL code exclusion specifications. + when !=3D & \(E1 \| E2 \| subE1 \| subE2\) > +coccilib.report.print_report(p2[0], > +f"WARNING: array_size is already used (line {p1[0].line}) to compute \ > +the same size") I would prefer an other code formatting at such places. +coccilib.report.print_report(p2[0], + f"WARNING: array_size is already used (line = {p1[0].line}) to compute the same size.") Regards, Markus