Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1535426ybt; Thu, 18 Jun 2020 10:56:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+ie/lWEZFww72vv1O8Kg/IX4gjnuIyE534V0ITujSjCpEl4S9PgNAZ/8xhcx5ZdTIhvyW X-Received: by 2002:a17:906:ae88:: with SMTP id md8mr5275052ejb.347.1592503001917; Thu, 18 Jun 2020 10:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592503001; cv=none; d=google.com; s=arc-20160816; b=0iwf35H2iI4bUpiUTC2RXV6SFHvMjygBnSGh3UWlzrq0kSk+xWoAwhyd5zfxTIxwCt WBpTSGdhnPL9LWmS2thGFHoHO+fG0wZUQ1I0/PV8y8tKk9rT1o6zVRkdCc/oWWaQgXFs kZu8NIvNH113mFd3m4O3WXkxnG0jIUAr27fc7bF4W7OMEVbAfs5ApWSSXZaI25y4gFCJ JBwtt1pJ2m6HlRkrlJmZa2pAs51bu/kXTDOsi1ESgCwLSjO3a5ZCwwan66dtxfhe0cIF 1nfpof6+v0/xClN9QZCv1fiBOiZuPpieKqMzAndcWzPH4HBLrpSeldIwpCQyFIxu9KCy v/6g== 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:in-reply-to:mime-version:user-agent:date :message-id:subject:autocrypt:from:references:cc:to; bh=iV6BEDB1zo0555x4Iuh2YDEJGSgVibiOS7btV2WxH4U=; b=eoOnt3xGEOC6/5OJDooubRRFeLTY1q8JUfvliIALqyahzG3chJ7/wAyMo4Y5CmtGP3 eEocEqlOJUakPuSREV54+LNtU33PZYef/+WFpmXiPtsI2v6DiPzd9YWDBRHtMQRjOhuT cOjwmnKEKqk0mt6IhmEqfXnhrGtDhaVaUpsgOg6sPkIiZECEKqm6gF3pLSAmj38EwQk5 5A5oAdyzDmygYDNml2riT9lRX/EcOElwHz3haepnR7p2R/uBTW6AMZcNrU9jJZAXUDXY e0bhK0iLRA7rvZJz9y8HaUk+F87o2jVlpiKj99CxgjqoOqy3h6JQISSnQbacPnqtLmo0 zQUg== ARC-Authentication-Results: i=1; mx.google.com; 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 d19si2212475ejy.459.2020.06.18.10.56.19; Thu, 18 Jun 2020 10:56:41 -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; 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 S1728227AbgFRMYt (ORCPT + 99 others); Thu, 18 Jun 2020 08:24:49 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]:38926 "EHLO mail-lj1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbgFRMYp (ORCPT ); Thu, 18 Jun 2020 08:24:45 -0400 Received: by mail-lj1-f179.google.com with SMTP id a9so6972777ljn.6; Thu, 18 Jun 2020 05:24:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:autocrypt:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=iV6BEDB1zo0555x4Iuh2YDEJGSgVibiOS7btV2WxH4U=; b=JVAjo7/+jQ3jfmQ3OqBwcwu5k6vDtO6stmtJzCSTffaIlv6/seENZrw2zQQXe9JAgF v84IxE/5uTTO3VIDga3FqjQ1YezIldYa7o2dJdKLj+SCk5xAP8/gL9gGwRTJ95XZhzBW Us8C81rGptgTjqgrTkn7/QflLi6+lLwLAzHIuFE7330inlXIF/weKmXD6EX6u9DRxmS0 wKvGuGNJNQvkrrJu7uaUaCY+07l0RdrkNDgzhYAOA9Ejum7cp/r/rcxeX3vR+pAly3jL rpsAkHmxDSGg/N9yHobBOh6qj+vuidDQJPsI6MOs/MR2xa8x0+RyfHRKbil7wUwIt2uD 5auA== X-Gm-Message-State: AOAM532yv0Sjgkuv9UTyooem7Nm6KnQTJC5b0xdopNPxNg4lYlJaHWam Dx9skihzU2PTA4P7GUfb+57yXdPYt1UMEQ== X-Received: by 2002:a2e:910c:: with SMTP id m12mr2374933ljg.332.1592483082528; Thu, 18 Jun 2020 05:24:42 -0700 (PDT) Received: from [192.168.1.8] ([213.87.137.195]) by smtp.gmail.com with ESMTPSA id l14sm606137lja.2.2020.06.18.05.24.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2020 05:24:42 -0700 (PDT) To: Markus Elfring , Coccinelle , Gilles Muller , Julia Lawall , Masahiro Yamada , Michal Marek , Nicolas Palix Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, "Gustavo A. R. Silva" , Kees Cook References: <54ac89f1-5f38-8909-a652-c658a5a1f36b@web.de> From: Denis Efremov Autocrypt: addr=efremov@linux.com; keydata= mQINBFsJUXwBEADDnzbOGE/X5ZdHqpK/kNmR7AY39b/rR+2Wm/VbQHV+jpGk8ZL07iOWnVe1 ZInSp3Ze+scB4ZK+y48z0YDvKUU3L85Nb31UASB2bgWIV+8tmW4kV8a2PosqIc4wp4/Qa2A/ Ip6q+bWurxOOjyJkfzt51p6Th4FTUsuoxINKRMjHrs/0y5oEc7Wt/1qk2ljmnSocg3fMxo8+ y6IxmXt5tYvt+FfBqx/1XwXuOSd0WOku+/jscYmBPwyrLdk/pMSnnld6a2Fp1zxWIKz+4VJm QEIlCTe5SO3h5sozpXeWS916VwwCuf8oov6706yC4MlmAqsQpBdoihQEA7zgh+pk10sCvviX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FcqCFUlfAqUDO T30gV5bQ8BHqvfWyEhJT+CS3JJyP8BmmSgPa0Adlp6Do+pRsOO1YNNO78SYABhMi3fEa7X37 WxL31TrNCPnIauTgZtf/KCFQJpKaakC3ffEkPhyTjEl7oOE9xccNjccZraadi+2uHV0ULA1m ycHhb817A03n1I00QwLf2wOkckdqTqRbFFI/ik69hF9hemK/BmAHpShI+z1JsYT9cSs8D7wb aF/jQVy4URensgAPkgXsRiboqOj/rTz9F5mpd/gPU/IOUPFEMoo4TInt/+dEVECHioU3RRrW EahrGMfRngbdp/mKs9aBR56ECMfFFUPyI3VJsNbgpcIJjV/0N+JdJKQpJ/4uQ2zNm0wH/RU8 CRJvEwtKemX6fp/zLI36Gvz8zJIjSBIEqCb7vdgvWarksrhmi6/Jay5zRZ03+k6YwiqgX8t7 ANwvYa1h1dQ36OiTqm1cIxRCGl4wrypOVGx3OjCar7sBLD+NkwO4RaqFvdv0xuuy4x01VnOF Subject: Re: [PATCH v2] coccinelle: misc: add array_size_dup script to detect missed overflow checks Message-ID: <759d33d2-25a2-f55f-7e3a-7481ab5dd0fc@linux.com> Date: Thu, 18 Jun 2020 15:24:39 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <54ac89f1-5f38-8909-a652-c658a5a1f36b@web.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 6/18/20 2:34 PM, Markus Elfring wrote: > Why did you repeat a typo from the previous patch subject? Where is the typo? I can't handle your suggestions because your mails constantly break the threads. I just can't find them after due to missed/wrong In-Reply-To headers. Again, this mail doesn't contain In-Reply-To header and highly likely I will miss it when I will prepare next version of the patch. >> +expression subE1 <= as.E1; >> +expression subE2 <= as.E2; >> +expression as.E1, as.E2, E3; > > How do you think about to use the following SmPL code variant? > > expression subE1 <= as.E1, subE2 <= as.E2, as.E1, as.E2, E3; It's less readable and harder to review. > >> + when != \(&E1\|&E2\|&subE1\|&subE2\) > > I suggest to move the ampersand before the disjunction in such > SmPL code exclusion specifications. > > + when != & \(E1 \| E2 \| subE1 \| subE2\) Ok, I will fix this if there will be next version. > > >> +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.") > No. It's pointless to break the line to save 5 chars this way. I can use instead: coccilib.report.print_report(p2[0], f"WARNING: array_size is already used (line {p1[0].line}) to compute the same size") or msg = f"WARNING: array_size is already used (line {p1[0].line}) to compute the same size" coccilib.report.print_report(p2[0], msg) or coccilib.report.print_report(p2[0], f"WARNING: array_size is already used (line {p1[0].line}) to compute the same size") And I prefer the last one if Julia will allow me to use more than 80 chars in print string. Thanks, Denis