Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp446875pxu; Sun, 22 Nov 2020 14:35:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwviT29fJxNzk/yyGAO9ViR0x7Gw0hgjUsFTJwf+F6txETTc596o0J0fJpq6OEEjhrr2Uv7 X-Received: by 2002:a17:906:7ac7:: with SMTP id k7mr633069ejo.454.1606084544161; Sun, 22 Nov 2020 14:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606084544; cv=none; d=google.com; s=arc-20160816; b=oOCVpIlJu3428UL/54vXnqW2ElOJPdEerWb+BvgztFviECePfhEdOEbL1K3pxqFWbd M7G4q8Dux2mLc5HOy9aKL+5vjJ6mHQCdCmd8mTNNQ6fMipG0XBD1Da51RxY2zDlq16wH kOkl8np/QAgg+dr5ELpeDrPfOBFma0V/vKImSU6ZeRaXvQNsNexfZoMBuYWuBukIRuUn nVxv1RgM599Z1yc/bhOg4uFpp0Y3ZLnpsWR+UUOBjhJ8VzaAnOClsSIJhfeJBg5TN8vq NGGG+s5Fmc3AM0XpcUxA5rh8hgU+CN+7kB8dFmR9foHVb5xAmInrp2W15E6eUgA1SwGy 3yvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=P01P3cZP3Cji2Un6xTGDWEPeLh0L8R60A19VGeJTp68=; b=zdCq13XbWE3ag6n+RfLl9bOc/63BEmdL1I1uiBEkAn9fbCXzrtWxCQEDPV2uwegg3m oMM+TzFGAVFJXag9S9+cJdJkEX5cZUWvgw/yR8xOMMniYYor2DgPfRkExW9ddSBY0urE cW5dClR/Uvo9eU3Hl4qfV41Au+RN0xakP+ziwDmSNjrCCCiC7SHC8dYYueeMNVAZ9Dqp A5pfPJPKq7Q/jtTHNXABic+8mUrusTxcg7rj9/UcJS4FEKNZpvDP7DfP92AKfOYJosNN gqPK0bbhM5aMOJ6grDyE8i6H5Dtdj24t85TPF7dsYsfQiJOxZ3YNhNgltWn4yBQ3pPch dBUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 r8si5949385edi.606.2020.11.22.14.35.15; Sun, 22 Nov 2020 14:35:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726802AbgKVWeB (ORCPT + 99 others); Sun, 22 Nov 2020 17:34:01 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:50298 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbgKVWeB (ORCPT ); Sun, 22 Nov 2020 17:34:01 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id A588721F21; Sun, 22 Nov 2020 17:33:55 -0500 (EST) Date: Mon, 23 Nov 2020 09:33:55 +1100 (AEDT) From: Finn Thain To: Joe Perches cc: James Bottomley , Tom Rix , Matthew Wilcox , clang-built-linux@googlegroups.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, tboot-devel@lists.sourceforge.net, kvm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-acpi@vger.kernel.org, devel@acpica.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, netdev@vger.kernel.org, linux-media@vger.kernel.org, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-wireless@vger.kernel.org, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, ecryptfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-mtd@lists.infradead.org, keyrings@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, alsa-devel@alsa-project.org, bpf@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-nfs@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [RFC] MAINTAINERS tag for cleanup robot In-Reply-To: Message-ID: References: <20201121165058.1644182-1-trix@redhat.com> <20201122032304.GE4327@casper.infradead.org> <20201122145635.GG4327@casper.infradead.org> <0819ce06-c462-d4df-d3d9-14931dc5aefc@redhat.com> <751803306cd957d0e7ef6a4fc3dbf12ebceaba92.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sun, 22 Nov 2020, Joe Perches wrote: > On Sun, 2020-11-22 at 08:49 -0800, James Bottomley wrote: > > We can enforce sysfs_emit going forwards > > using tools like checkpatch > > It's not really possible for checkpatch to find or warn about > sysfs uses of sprintf. checkpatch is really just a trivial > line-by-line parser and it has no concept of code intent. > Checkpatch does suffer from the limitations of regular expressions. But that doesn't stop people from using it. Besides, Coccinelle can do analyses that can't be done with regular expressions, so it's moot. > It just can't warn on every use of the sprintf family. > There are just too many perfectly valid uses. > > > but there's no benefit and a lot of harm to > > be done by trying to churn the entire tree > > Single uses of sprintf for sysfs is not really any problem. > > But likely there are still several possible overrun sprintf/snprintf > paths in sysfs. Some of them are very obscure and unlikely to be > found by a robot as the logic for sysfs buf uses can be fairly twisty. > Logic errors of this kind are susceptible to fuzzing, formal methods, symbolic execution etc. No doubt there are other techniques that I don't know about. > But provably correct conversions IMO _should_ be done and IMO churn > considerations should generally have less importance. > Provably equivalent conversions are provably churn. So apparently you're advocating changes that are not provably equivalent. These are patches for code not that's not been shown to be buggy. Code which, after patching, can be shown to be free of a specific kind of theoretical bug. Hardly "provably correct". The problem is, the class of theoretical bugs that can be avoided in this way is probably limitless, as is the review cost and the risk of accidental regressions. And the payoff is entirely theoretical. Moreover, the patch review workload for skilled humans is being generated by the automation, which is completely backwards: the machine is supposed to be helping.