Received: by 10.192.165.148 with SMTP id m20csp2118728imm; Thu, 3 May 2018 10:40:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrwI6MuOB16SeSAOrBZoQ5Opn20ylrtYllfszp9JEzQ9PYUqzWq1RvKs3SUZzPO8ztZ0L7Z X-Received: by 10.98.138.193 with SMTP id o62mr24011941pfk.141.1525369203838; Thu, 03 May 2018 10:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525369203; cv=none; d=google.com; s=arc-20160816; b=rxG0yTOQYoXRU2ZYY+SlEZJZtb45itmNbVJAoGlaYCTYTbMiCaXzJbDLrmykadzGGa ZWthnmhbTc3y39kI55ikqq1tdj8S2grKa/SDR/r/sV3UsaZrpX47DneFW8kyjwGmJI7C VfEH9f+FtVvQhzcXLS4kR5mXpc5O+GhB0CiGBeWjIOcnRbESvzycWOmJOO5I4Py+fr3P L1vhn1R+dOxpN6h0JngYjwOZPHg19LW6RbP/KS6GyNsDFbxQDw5Tu5Yt0EX4iPoHeYAm iqStYNQdYNhdieRL+rsIiKCNeUu7UjX7+BSezUAosKN0TVeB4FaovHQTsQ+4S8M250jh /RRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=c7gjnKcV/vGuJRHGvbxIphtWQsyS6wBPxFkTkWXPUU8=; b=AmteA6C1dwPZycpCRs01x5LXNWFKKt3+rAiMAUFKeRU4W/T+kpVJJoqHTojIvflon3 5Irqn3ew0VRWGFsP71I+XJi9zAsa11UHyuwfwrRMZf0XDOfR7gRUvKxtBs4tgkYIN/H/ n2wDYIMfeIKWhqvpZ2M6muFfVVZBVWqf9LLGsc0hjkdaJiXzUrBdxu9KMxF4pyykVe6Q LNdJvagXvfFgvOQdUE96C/jTbNVCJCZtOdD3swEBW6ocjZcNo4imHMZpNzIH136mdGai T0LpchYE0EdMI3lNpxsLxJfbiJp/pXKmzTvVJ1vbEY7THlThXqj2bRgrBwbtRhva719v JnVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=CWvVahom; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si11834581pgm.413.2018.05.03.10.39.49; Thu, 03 May 2018 10:40:03 -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=pass header.i=@microsoft.com header.s=selector1 header.b=CWvVahom; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390AbeECRjT (ORCPT + 99 others); Thu, 3 May 2018 13:39:19 -0400 Received: from mail-by2nam03on0104.outbound.protection.outlook.com ([104.47.42.104]:47589 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751095AbeECRjS (ORCPT ); Thu, 3 May 2018 13:39:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=c7gjnKcV/vGuJRHGvbxIphtWQsyS6wBPxFkTkWXPUU8=; b=CWvVahomWFLWb1CSc7+flzm9cUGWlo6Dn26BHNJcJVMdwyjG6XPH9RtjwudSQsZBbhKzlByb0tQG8HpaGzT968ADywnr4NBnc5rbZggtIjXudefXl3STk7D/UnIn9SXNW/lmaAdxykVdLsqpZ2N114Ewl5zE0pFEE+2nmVQqf5Q= Received: from MW2PR2101MB1003.namprd21.prod.outlook.com (52.132.146.28) by MW2PR2101MB1017.namprd21.prod.outlook.com (52.132.146.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.1; Thu, 3 May 2018 17:39:16 +0000 Received: from MW2PR2101MB1003.namprd21.prod.outlook.com ([fe80::1958:87f0:1598:af6f]) by MW2PR2101MB1003.namprd21.prod.outlook.com ([fe80::1958:87f0:1598:af6f%13]) with mapi id 15.20.0755.002; Thu, 3 May 2018 17:39:16 +0000 From: Sasha Levin To: Randy Dunlap CC: James Bottomley , Willy Tarreau , "ksummit-discuss@lists.linuxfoundation.org" , Greg KH , "linux-kernel@vger.kernel.org" Subject: Re: [Ksummit-discuss] bug-introducing patches Thread-Topic: [Ksummit-discuss] bug-introducing patches Thread-Index: AQHT4WrQpZfAdTeY4k22b0OVmzGN0aQbRuYAgAAEU4CAAA85AIACgPOAgAA5DwCAAARoAIAABNUAgAAGDgCAAARxAIAAGlaAgAAF8YA= Date: Thu, 3 May 2018 17:39:16 +0000 Message-ID: <20180503173913.GS18390@sasha-vm> References: <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> <80974b02-8037-b412-36f9-1b7656ec9d4e@infradead.org> In-Reply-To: <80974b02-8037-b412-36f9-1b7656ec9d4e@infradead.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1017;7:3G26TJlc4WUshdBO+3P8/qvdwNCMKaCSLleXx3I5uwGr4/MKVfNZedB+kMq3JiJ3g0uV4FcfbeCSH6asmylkc1LUfJMCKQWV3Boto8t7euT+HcdYD38nbiOIJ9UXqEvVEI0lsTzi7Ng2ygwwmXFKYYZ8PZv5HqxqvT/IIotMlI4Lor5r+t4DJ05J2Rq9EQMgjvHld6jJgg9WbhijFIEDtqvAyJbKx6n0ch3r+cSb0j2Mw7wHx2OoQUZB6KfWDBMC;20:aVHzgZ0nZpgwT7bXiSS27YhGLS3gpGZ1sv+0q/bOhSCdr03C5MUCWVfWNxguqs530KEIsu3c6U0Qdgdof2WXF68aOT53lKCJDRR7iYT7pTvjHNkXXDyyFpK8rHaXu2/quixu8Q5hXThYcDrgnWrWucCObrq+ywfZcCufmMGqbYw= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:MW2PR2101MB1017; x-ms-traffictypediagnostic: MW2PR2101MB1017: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(2018427008)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:MW2PR2101MB1017;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1017; x-forefront-prvs: 066153096A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(39860400002)(376002)(346002)(366004)(396003)(39380400002)(189003)(199004)(51444003)(377424004)(86362001)(11346002)(478600001)(72206003)(476003)(446003)(5250100002)(2900100001)(106356001)(22452003)(53936002)(5660300001)(25786009)(14454004)(76176011)(486006)(99286004)(10090500001)(59450400001)(33896004)(86612001)(6346003)(10290500003)(26005)(33716001)(33656002)(186003)(102836004)(6506007)(6116002)(3846002)(6486002)(229853002)(54906003)(81156014)(6436002)(8676002)(81166006)(97736004)(8936002)(316002)(2906002)(3280700002)(1076002)(105586002)(4326008)(6246003)(7736002)(305945005)(3660700001)(9686003)(93886005)(6512007)(68736007)(66066001)(6916009)(3714002);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1017;H:MW2PR2101MB1003.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: m8eOPAUXbXFji8M0RCP0V0vP1rKB83z6a+gto7+jqOCKwj9Wq4T784Yv5txfXyxa9bgh/NRXg6wqXBDYWgRBbxiEGt9bjD7/QoUKQQp0PCadtm75sGw/R2J60kr99TrM1b0ai6EcMvO+LFD3f9+8aJ+Ah1GwKEkM0sSf5pW+sbxdY6PvAuh9SR4xWyPFpMus spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-ID: <660A9CC8ADCB7E469836DF126648ECFD@namprd21.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: bc2be064-cb17-4776-8a55-08d5b11ccacd X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc2be064-cb17-4776-8a55-08d5b11ccacd X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2018 17:39:16.1368 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1017 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 10:17:57AM -0700, Randy Dunlap wrote: >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.=A0=A0More comple= x >>>>>> bug fixes run the risk of having side effects which introduce >>>>>> other bugs, so could potentially destabilize the -rc process.=A0=A0I= n >>>>>> 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.=A0=A0If 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.=A0=A0So, 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. While checkpatch is a tool for both authors and maintainers, I'm hoping that this tool will only be useful for maintainers, who are less likely to abuse it. I hope. Maintainers are still needed. I started this discussion because right now maintainers don't scale enough, and that in turn causes both delays and mistakes in the process. We have a bunch of tools to help patch authors, but not as many for maintainers. To some extent, I do wish that this will help patches get merged earlier. If a maintainer sees that the patch spent a while in -next, passed all his subsystem's internal testing, got a few reviews, he could just go ahead and merge it in faster without starting to dig through his mail client and git tree.=