Received: by 10.192.165.148 with SMTP id m20csp2055524imm; Thu, 3 May 2018 09:37:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpwRW1rT4NWG8ncXH8zB1vGu9xKqG5LK8Gx6EhGx6veDs4IWUAKR0XOrCUTX1RMGp70dyb0 X-Received: by 10.98.196.133 with SMTP id h5mr24139737pfk.86.1525365470955; Thu, 03 May 2018 09:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525365470; cv=none; d=google.com; s=arc-20160816; b=yVD2Ez3TXma0hHdk81iTqm/3ysEp6Ru7u+1TawcaATefzo048alMOrn3HreMjdTqBd VyymUaKr01yEg62qo2jo8YCAvdhfz+2vCpnFnDQtwVFelxSBOlstMBEBraJ9lfYY4/mh uFGc108BY3LxBFBxYs3bfET1gLoFvIB1p+ZNwHWTBeJ3O9cdUKqpgdQPApQ5E7IRnWLC dQO6lAPCSXkW8FpuVESrQ2mqgAmaB8wcw5WP/mcCJQsp7fTNQF8fLCYFQCG8UeyHHMdd JMZRATDLlZms1+O/LNV4avi3NsWW8Uz3dyLnbQvUKnoCj/8Cu2s/7FnYy3V/lxXeOZY+ z2Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=1VO+6s0JtP50ySALlpeQBISQLNnPhrocOk/pzShhywc=; b=LTS4ADa+B1WpAqkzjeUdt9IcFBxsSv0qRBdwfUcrY8OZEiyhVpN17R3V9jqjjTd4wp +F2nbgDCjmghBWBZl7fycihsy6srsGDxUMP4iDgt6gvxGL4oKcB4298yMMQ8TpUjVYaD hIoHecrqVKS/JIwfHvwGVEiZENEDrl3EC/8ayBNaOE0RLy1qVMzJnV3Jgmk4kpYMrcbE xlPoMAsUIZijaOE5DncBWUzH9V9qrElvTmPCDjsqfowcN/Bg5stquSNYVez5ZRG5gxTY j7H9GCtFVixOR7uj04/RJ2jk4VMcCx4bcGFnBKiK++9SL5RkZVyXVG5n8g0WMHdeYv7Q 2oiA== ARC-Authentication-Results: i=1; mx.google.com; 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 p7-v6si11913258pgd.96.2018.05.03.09.37.29; Thu, 03 May 2018 09:37:50 -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; 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 S1751643AbeECQfb (ORCPT + 99 others); Thu, 3 May 2018 12:35:31 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:46186 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbeECQf2 (ORCPT ); Thu, 3 May 2018 12:35:28 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id w43GZGAh023389; Thu, 3 May 2018 18:35:16 +0200 Date: Thu, 3 May 2018 18:35:16 +0200 From: Willy Tarreau To: Sasha Levin 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 Message-ID: <20180503163516.GJ23311@1wt.eu> References: <20180501163818.GD1468@sasha-vm> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503161452.GP18390@sasha-vm> User-Agent: Mutt/1.6.1 (2016-04-27) 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 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. 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). Willy