Received: by 10.192.165.148 with SMTP id m20csp2096822imm; Thu, 3 May 2018 10:18:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpKKUgicMAkS7LXohqLdpFCZBU2R7n92ei+PCbhamjPlypp0ATkGvgPymNNTX+/kKmUsw3c X-Received: by 2002:a63:744c:: with SMTP id e12-v6mr15050781pgn.4.1525367911576; Thu, 03 May 2018 10:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525367911; cv=none; d=google.com; s=arc-20160816; b=YucESqDlfgDgSA4o36vDL15fo9bGhaVqR5YeT1Ygv6JQxjXYBZB2CVWBVFClCn4FX7 HBCCxpsTLNS5ooV0SuTdGhAtXZ/BJGR954EhUe2jncluqe/ykeqAkBaJG7XTSbZrLfA1 /FjosalZp5Rp5FnYS/fi2e1i5i120VJRjMTchx/9JzPqyDrv4raKGT8kbaSmOfgfLAIV BFNkqXS/hlZIgkgpHPmWLd6TJFs/ZB9UUNt1hjg8q4GmXpNftVefzy7ZId4qDDe7NqQn FJ7+TyfpxRz/Io5AG4qyLJq+bkJa5Wejx8TDC++qs2FDpROADUSXNP3WacD2AuVeJlZH 3LNQ== 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:references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=3Sx6mGVVmTE6MqCSyE9by0UWauVQJcRJF1NnVarua/k=; b=Aq7PqiwDVipd/Go1buCE59D6kjd/7RJnOpKi3/7Oo9CbCKBJ+CRsI/GfQcic/Q4ZIp WTmtyMN/N2tARCDPRTK3sgCR5h+HLRHIoT10RpQR6RVxWN4vXgp7kDI6jc8LwUG8K23R l3GKDdU9yQzD17wOX/p7G+FuydgQM9m6NbrLDkPQdtqsuf1WASykg8MCAZPY0A62Yrgx 1ag3HM6hX9vkT8gZK42YLh4Qpb/j8nrYzWRA1cRUOjZnraT979D1h1gqHUIHUyi3czhj lqgJiscIBtm60rViawTaxYugkVUzMKboJYfD7SLsGoeN+z6/Pvq4shUR97SAlKhPGowp ALng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Z3zFafA3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13-v6si5098754pgu.628.2018.05.03.10.18.16; Thu, 03 May 2018 10:18:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Z3zFafA3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbeECRSA (ORCPT + 99 others); Thu, 3 May 2018 13:18:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49628 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbeECRR7 (ORCPT ); Thu, 3 May 2018 13:17:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To: Subject:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3Sx6mGVVmTE6MqCSyE9by0UWauVQJcRJF1NnVarua/k=; b=Z3zFafA333wnZkd+/NQLUGT+6 dBZbjrNeaBKDDbUvdj+ASLQUBksJiL1EItXrys8znAUysXT2cI2wSOPSIZ298ChWBYXF8UYEjet38 gnqzFtfVzrir8NO/pE2ofnEBFTbiJQXhQ6qyg3zveBxoaU3ghsfNxDdF9dJppiA0CZ4CD+A1SXYx0 qZDYxTWCfIX1dCOHWqgCHM2D5mh3DB3ZxeUihGTbYugowXiTVlmR3zimXBrwSRrscdihj+b0agaIk VGDgI/yxS14B+X9cc6gIlGmT/NxUoLs717jXDIQp1PNMFv5BbS8HKXEJA/YmSf3VZw3mTAw+nu0W2 orNfkuVgw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEHri-00038z-LC; Thu, 03 May 2018 17:17:58 +0000 From: Randy Dunlap Subject: [Ksummit-discuss] bug-introducing patches To: Sasha Levin , James Bottomley Cc: Willy Tarreau , "ksummit-discuss@lists.linuxfoundation.org" , Greg KH , "linux-kernel@vger.kernel.org" References: <20180501163818.GD1468@sasha-vm> <20180501194450.GD10479@thunk.org> <20180501200019.GA7397@sasha-vm> <20180501205448.GE10479@thunk.org> <877eol808s.fsf@intel.com> <1525357984.3225.12.camel@HansenPartnership.com> <20180503144850.GC23311@1wt.eu> <20180503150608.GM18390@sasha-vm> <1525361268.3225.17.camel@HansenPartnership.com> <20180503154342.GN18390@sasha-vm> Message-ID: <80974b02-8037-b412-36f9-1b7656ec9d4e@infradead.org> Date: Thu, 3 May 2018 10:17:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180503154342.GN18390@sasha-vm> 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 On 05/03/2018 08:43 AM, Sasha Levin wrote: > On Thu, May 03, 2018 at 08:27:48AM -0700, James Bottomley wrote: >> On Thu, 2018-05-03 at 15:06 +0000, Sasha Levin via Ksummit-discuss >> wrote: >>> On Thu, May 03, 2018 at 04:48:50PM +0200, Willy Tarreau wrote: >>>> On Thu, May 03, 2018 at 07:33:04AM -0700, James Bottomley wrote: >>>>> They're definitely for bug fixes, but there's a spectrum: obvious >>>>> bug fixes with no side effects are easy to justify.  More complex >>>>> bug fixes run the risk of having side effects which introduce >>>>> other bugs, so could potentially destabilize the -rc process.  In >>>>> SCSI we tend to look at what the user visible effects of the bug >>>>> are in the post -rc5 region and if they're slight or wouldn't be >>>>> visible to most users, we'll hold them over.  If the fix looks >>>>> complex and we're not sure we caught the ramifications, we often >>>>> add it to the merge window tree with a cc to stable and a note >>>>> saying to wait X weeks before actually adding to the >>>>> stable tree just to make sure no side effects show up with wider >>>>> testing.  So, as with most things, it's a judgment call for the >>>>> maintainer. >>>> >>>> For me this is the right, and responsible way to deal with bug >>>> fixes. Self-control is much more efficient than random rejection >>>> and favors a good analysis. >>> >>> I think that the ideal outcome of this discussion, at least for me, >>> is a tool to go under scripts/ that would allow maintainers to get >>> some sort of (quantifiable) data that will indicate how well the >>> patch was tested via the regular channels. >>> >>> At which point it's the maintainer's judgement call on whether he >>> wants to grab the patch or wait for more tests or reviews. >>> >>> This is very similar to what James has described, it just needs to >>> leave his brain and turn into code :) >> >> I appreciate the sentiment, but if we could script taste, we'd have >> replaced Linus with something far less cantankerous a long time ago ... > > Linus, IMO, is getting replaced. Look at how many functions he used to > do 10 years ago he's no longer responsible for. Agree. > One of the most obvious examples is -next, where most integration issues > are resolved before they even reach to Linus. > > This is good for the community, as it allows us make the process better > and scale out. It is also good for Linus, as I'm not sure how long he'd > last if he still had to edit patches by hand too often. Instead, he gets > to play with things that interest him more where his is irreplaceable. > >> It's also a sad fact that a lot of things which look like obvious fixes >> actually turn out not to be so with later testing. This is why the >> user visibility test is paramount. If a bug fix has no real user >> visible effects, it's often better to defer it no matter how obvious it >> looks, which is why the static code checkers often get short shrift >> before a merge window. >> >> A script measuring user visibility would be nice, but looks a bit >> complex ... > > It is, but I think it's worthwhile. Would something that'll show you > things like: > > - How long a patch has been in -next? > - How many replies/reviews/comments it got on a mailing list? > - Did the 0day bot test it? > - Did syzbot fuzz it? for how long? > - If it references a bugzilla of some sort, how many > comments/reviews/etc it got there? > - Is it -stable material, or does it fix a regression in the current > merge window? > - If subsystem has custom testing rig, results from those tests > > be a step in the right way? is it something you'd use to make decisions > on whether you'd take a patch in? > Reminds me (too much) of checkpatch. Sure checkpatch has its uses, as long as its not seen as the only true voice. (some beginners don't know about that yet) So with this new script, human evaluation would still be needed. It's just a tool. I could be used or misused or abused. $maintainer still has a job to do, but having a tool could help. But be careful what you wish for. Having such a tool could help get patches merged even quicker. -- ~Randy