Received: by 10.192.165.148 with SMTP id m20csp2110062imm; Thu, 3 May 2018 10:31:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZree0laFh4Pp3piF76y56SrzNsNNGXAf382Yg3U7SqMlaF3/yHruf6a5Vr3U6EIeQUUf3Yl X-Received: by 2002:a17:902:aa97:: with SMTP id d23-v6mr24272356plr.293.1525368676608; Thu, 03 May 2018 10:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525368676; cv=none; d=google.com; s=arc-20160816; b=lEBICcAuBXdiBvtfYPWxtwbsMbkETfCWFclRakcuh4AdcOvx2ajaKsPRs6PTPMg7BY y5IwrwBEnuTdjbJBOdRMB2Og2hHwB3z5TcRAczWy+/kNvEMYPKomhV/DiQH1xL9gchNn kem/K1lojf9h19bMWmSrGxTT6pmx/NqCdGkq+7In+7VIJWGF0SeG3/ZuGJCyE0lDN0hr Jy/i5Dh49wjaqmdOXxc81KgJVwiE/t6YxhBOQRTsedeBRsfhkre8uOI4pLQ6F2vlVhMh zW2Pwo5qHFZRAQROVAT4EN+rqp1DT3tLnJMowimirofPFANf3f5BBto5U8rvC2WnFK+t Wrow== 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=Aelj2f0xVcCfuNpl+0tBW30Pu8P13dvuMFjHBJpXLIY=; b=iUtRNe61hUpzpvSpiVOGkkxHeXcb2TpqBWLuSM4qB8eCiFwSuFiTF8V4j/5vBj4EaZ aMmhPwYnGcW/1oe2W/Y5otO4bq8T6CCQ1Bgr44EI1Z7P0qQRtIECQ73nB4T9evkv+11k kuDk9oXr3Jmsu/1qj7Lax1g5vTlJXbMzbKS1zbFVNSwdYID+ngXy3jVhghO73bq04mtK JjCy6luNzkqFUD8l6wFKwGDv2PNkbOYgEAtP/c4WQzJHS3+APbN6vqs1/CrS6o4WxaZg eCTZH+f3EDxo9wUpNAX5Bu6N/VFj10qMtWTlju3O5KOubS8A9Kre5cXyvxp3xxE35Ul3 dm+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=CvFRGcak; 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 u9-v6si14229212plk.516.2018.05.03.10.31.02; Thu, 03 May 2018 10:31:16 -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=CvFRGcak; 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 S1751279AbeECR3f (ORCPT + 99 others); Thu, 3 May 2018 13:29:35 -0400 Received: from mail-cys01nam02on0111.outbound.protection.outlook.com ([104.47.37.111]:36136 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751007AbeECR3b (ORCPT ); Thu, 3 May 2018 13:29:31 -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=Aelj2f0xVcCfuNpl+0tBW30Pu8P13dvuMFjHBJpXLIY=; b=CvFRGcak1wgrbKwwHxxB0yLjXwrXZcFOxFuaeZMecF6gNHecfKPAzsbGmdORvidafgSl3FnDvpr8nSEPXNktr0Qua0HnRWFt91BzYJvJF+95mP+aDxLTK2zD2At+UUjDQce+pIFj9dEj7HhdS2LHIcfAn/kOhYqMXLcnyQcGhRE= 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:29:29 +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:29:29 +0000 From: Sasha Levin To: Willy Tarreau CC: "Theodore Y. Ts'o" , Geert Uytterhoeven , Greg KH , "linux-kernel@vger.kernel.org" , "ksummit-discuss@lists.linuxfoundation.org" Subject: Re: [Ksummit-discuss] bug-introducing patches Thread-Topic: [Ksummit-discuss] bug-introducing patches Thread-Index: AQHT4WrQpZfAdTeY4k22b0OVmzGN0aQcksOAgABIXgCAAA4OAIAAORwAgAD11QCAAAGkgIAAAoMAgAAQrgCAAAPwAIAABbQAgAAPIgA= Date: Thu, 3 May 2018 17:29:29 +0000 Message-ID: <20180503172926.GQ18390@sasha-vm> References: <20180502195138.GC18390@sasha-vm> <20180503000620.GA29205@thunk.org> <20180503144612.GJ18390@sasha-vm> <20180503145205.GD23311@1wt.eu> <20180503150104.GL18390@sasha-vm> <20180503160046.GH23311@1wt.eu> <20180503161452.GP18390@sasha-vm> <20180503163516.GJ23311@1wt.eu> In-Reply-To: <20180503163516.GJ23311@1wt.eu> 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:rdZjgqryd7B4+jHvl5SSwFypLZ3O2dDc/ilZ/0Yh2UOstiekdTy+59OlpmMTFrXvMRietxcUOpWOZcv7teS3WCKaS4Iff7mZh5kJ14Zo989EpL5T9J2PRzq5K/jKMGjuk6isSg97tXTeA8LqZ7Iy1BeUVd+OKhK7iVwHmhtx7QJ8hNT68fU5orvtfphdIdxjQeCnonRfhSbSXRu7c8rpf72W0/fYfZ58CrO1mp3SUROSk4l8CQThU+TZAkYO8Zmr;20:Ok4OX+Fn5XKz/OEvDMPqEIjMdrtBK2Sr104PM0utQoKKI598mU1Oc0qozxfm0f1pxiH+MQd9+rzICbkUMVtnQmyxE4Bc77S9wtvRGAg/zgFx6cUc/duumQH9oo4rYZJ6AEPCZZgXq8yNrc4MLts5FAShJH4DdTNno1QyH5y7YW0= 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:(192374486261705); 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)(396003)(346002)(366004)(39380400002)(376002)(39860400002)(199004)(189003)(97736004)(3280700002)(1076002)(8936002)(2906002)(316002)(54906003)(81156014)(229853002)(6486002)(6116002)(3846002)(81166006)(6436002)(8676002)(66066001)(93886005)(9686003)(68736007)(6512007)(6916009)(4326008)(105586002)(305945005)(3660700001)(7736002)(6246003)(53936002)(106356001)(22452003)(5660300001)(25786009)(476003)(72206003)(5890100001)(446003)(575784001)(86362001)(478600001)(11346002)(2900100001)(5250100002)(14454004)(26005)(10290500003)(6346003)(186003)(6506007)(102836004)(33656002)(33716001)(10090500001)(76176011)(486006)(99286004)(86612001)(59450400001)(33896004)(781001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1017;H:MW2PR2101MB1003.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: ffv4DZSZlmVORk3G00dO3lPD7YqLvl8PgwtE+eqTbgvH+WwL8AubYOSoxWjWd94wDI0FLSYSiSA+0ZgT1/rnXXbLOFoAGrfQKFeT6CxFb/Tgz/kQCZ6aYAJRVUZQMjr4nbcuLSwSxs1CpoSmTg49rFB8L1AGMFDOv4X0ijZ5ahY18OSlXqVKN7QtY53vSbZ9 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <0BBF3E15B859F5469B9261121E7ACFC7@namprd21.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 2fea6468-e9dd-4c80-3e54-08d5b11b6cfe X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fea6468-e9dd-4c80-3e54-08d5b11b6cfe X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2018 17:29:29.2065 (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 06:35:16PM +0200, Willy Tarreau wrote: >On Thu, May 03, 2018 at 04:14:57PM +0000, Sasha Levin wrote: >> I tried looking at a few commits that came in on -rc7, and I see quite a >> few cases where a commit was merged to Linus' tree in about 24 hours >> after it was authored. Or maintainers who just wrote it, pushed it in, >> and shipped in to Linus. >> >> I've attached the data I used. The columns are as follows: >> >> 1. Commit ID >> 2. When was it merged >> 3. How many days it spent in -next >> 4. What commit did it fix >> 5. When was that commit merged > >> b6cdbc85234b v4.16-rc7 5 ca254490c8df v4.3 >> 82dd0d2a9a76 v4.16-rc7 5 8f58336d3f78 v4.2 >> 5807b22c9164 v4.16-rc7 5 6c8702c60b88 v4.9 >> f97c3dc3c0e8 v4.16-rc7 5 4c4dbb4a7363 v4.15 >(...) > >I like this (not what was done but the analysis). > >I'd argue that a small part of them there are very likely valid reasons >(really obvious fix, security issue etc) but it seems there are quite a >large number of them here. > >Now I understand what makes me uneasy with what I'm seeing here. As I >mentioned, -rc is for people who want to see bugs before their users. >-rc7 will ensure almost everyone discovers the fix at the same time, >because the next version will be 4.16, the first of a stable release, >the one that users are expected to trust. > >So probably that we have to educate/encourage developers *not* to submit >fixes for old bugs that late in the cycle and to rather wait for the next >version so that it cooks in -rc for a while before hitting users, knowing >that these fixes will be backported to stable anyway once considered valid= . > >Just like Greg has its "WTF" script to remind some developers that their >patch is not suited to -stable, I think you could, based on your work, >try to spot regressions introduced by late patches that fall in the >category you've filtered and emit such WTF messages to the original >patch's authors/committers. > >It's important to do it only when these patches cause breakage though, >because we don't want to needlessly delay fixes when they're considered >certain or well tested. Only when they cause trouble. I tried pulling all the fixes that went in 4.17 (so far) for bugs that were introduced as fixes in the v4.16 cycle, I got this list: d65026c6c62e v4.16-rc7 5 6b1e6cc7855b v4.7 d14d2b78090c 63489f8e8211 v4.16-rc6 13 045c7a3f53d9 v4.11-rc6 5df63c2a149a 5dcd8400884c v4.16-rc6 6 0759e552bce7 v4.7 bd28899dd34f 0ef58b0a05c1 v4.16-rc6 6 0cf737808ae7 v4.14 a56d99d71466 7992894c305e 2af= c5d61a719 8936ef7604c1 v4.16-rc6 6 6c8702c60b88 v4.9 a957fa190aa9 bbc09e7842a5 v4.16-rc6 6 65a206c01e8e v4.13 3239534a79ee 6a2cf8d3663e v4.16-rc5 12 d64d6c5671db v4.15 6d6340672ba3 859d880cf544 v4.16-rc4 14 b68a68d3dcc1 v4.15 8420f71943ae e39a97353e53 v4.16-rc4 16 2a842acab109 v4.12 cbe095e2b584 a27fd7a8ed38 v4.16-rc4 19 f214f915e7db v4.13 bffd168c3fc5 0f9da844d877 v4.16-rc2 16 28128c61e08e v4.16-rc2 a95b37e20db9 7324f5399b06 v4.16-rc2 19 186b3c998c50 v4.14 51568d69407d e78c637127ee v4.16-rc3 25 187d7967a5ee v4.4 e988867fd774 ca9eee95a2de v4.16-rc3 25 d717f7352ec6 v4.12 e988867fd774 So out of 755 commits, 14 have been fixed, that's about 2% and we're not even done with 4.17. >For me the rule seems simple to understand, every submitter should >think like this late in the cycle : > > "you're sending a patch that is going to be part of a stable kernel > in no more than 2 weeks, possibly affecting all users upgrading to > that kernel if you did something wrong. Are you really certain you > want this patch merged now, that it got sufficient testing and that > it cannot wait for next -rc1 to get broader exposure first ?" > >I'm pretty sure that most of the time it will be "sure I want it now" >and there will be no problem, which is fine as it automatically reduces >the number of bugs in releases. Some may reconsider their submission. >Some may get caught by your automated script if a later commit fixes >an issue introduced by their patch. And there public shaming is the >only option (or maybe only the second time if you really want to be >nice). I'd much prefer to blame this on maintainers. Authors should be able to submit a patch whenever they feel like it, maintainers should only merge a patch in when it's right.=