Received: by 10.192.165.148 with SMTP id m20csp4125861imm; Mon, 30 Apr 2018 12:11:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrM8RqEpWwC+aprdbmIQ4e5gDUMP5iD4HTVp0BKRq3PhLX96f1K14o+OXPxE5D6QQR0sUZ+ X-Received: by 2002:a17:902:bd8b:: with SMTP id q11-v6mr2975550pls.178.1525115501000; Mon, 30 Apr 2018 12:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525115500; cv=none; d=google.com; s=arc-20160816; b=fVCvq8qQpio/jPcI1J0tgsY6bwOQ10cid+sOzW43JDGAzeuHFcB4HIvBzGczdj+zUj FbZW3BtEam0hVtcrhIEJUxogf/Xmm6vwrueNOoL5V9fzElhpkrJN2U/PYj3aI41LG3IC H8dt9U73bhDhHHn/1bidmIxqdL5Gtmb7lM1X1KFXqIFOyV5GCJ0zNk9QNm38B5/5zS3D 9X3+Y6caYodSJAVY1g6XOYImaTO2K/rZw0k55x2oxMkFI+9tCjAFMslcyWQgwhkUqD6R JyRMqM9KtUmqUoGvQYZNmAEF/2/fccvXsWJsDZpga0PMV2y4mvCD4kqNFieEaFIoE0J9 u9tQ== 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=Oza184VGashl5Tj5x7YRmCgtm5k7gdZVbtHrtmh/5kc=; b=A45/xTgWJvlX4AgUwpOca5fRMYDoY7l9OXbvMjqhgaQN/PyMlAlbcytpwZd49TQemW 1zYiX+wfcg2Xm4/jq9L9K6lgPAt05hVd6fXIWZJGzlkTJPz2vGYeinilg3lLmVcM0Yw2 zUQfMiE1hcui63OEsB0p8IQ7Dfo5U539BK8W+/XpZ9LjcVNP3vPbuM231OOD/jZZH2ft AIaqX+aewS5M5UAwv6eVz0ldss8hcBNFikR5IRm9dDQVZXAWORGiPUsLNX51cYSJiaXB 8ao/uaWap5pQIDZy8AogLmJwzvcy3ETYQ5+X1mb0HC/kOHdjSBwW68l/fAbtRySke6Fb JhhA== 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 v6-v6si6499842pgs.399.2018.04.30.12.11.27; Mon, 30 Apr 2018 12:11:40 -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 S1754780AbeD3TJa (ORCPT + 99 others); Mon, 30 Apr 2018 15:09:30 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:44722 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753410AbeD3TJ3 (ORCPT ); Mon, 30 Apr 2018 15:09:29 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id w3UJ9IgD008812; Mon, 30 Apr 2018 21:09:18 +0200 Date: Mon, 30 Apr 2018 21:09:18 +0200 From: Willy Tarreau To: Sasha Levin Cc: Greg KH , "julia.lawall@lip6.fr" , "linux-kernel@vger.kernel.org" Subject: Re: bug-introducing patches (or: -rc cycles suck) Message-ID: <20180430190918.GA8718@1wt.eu> References: <20180430175829.GB1544@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180430175829.GB1544@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 Hi Sasha, On Mon, Apr 30, 2018 at 05:58:30PM +0000, Sasha Levin wrote: > - For some reason, the odds of a -rc commit to be targetted for -stable is > over 20%, while for merge window commits it's about 3%. I can't quite > explain why that happens, but this would suggest that -rc commits end up > hurting -stable pretty badly. Often, merge window collects work that has been done during the previous cycle and which is prepared to target this merge window. Fixes that happen during this period very likely tend to either be remerged with the patches before they are submitted if they concern the code to be submitted, or are delayed to after the work gets merged. As a result few of the pre-rc1 patches get backported while the next ones mostly contain fixes. By the way, you probably also noticed it when backporting patches to your stable releases, the mainline commit almost never comes from a merge window. > 2. Maintainers need to stop writing patches, commiting them, and pushing them > in without reviews. In -rc cycles there is quite a large number of commits > that were either written by maintainers, commited, and merged upstream the > same day. These patches are very likely to introduce a new bug. Developers are humans before anything else. We probably all address most bug reports the same way : "ah, of course, stupid me, now that's fixed". Keep in mind that for the developer, the pressure has lowered now that the code got merged, and that mentally the fix is "on top" of the initial work and no more part of it. It often means a narrower mental image of how the fix fits in the whole code. I think that you'll also notice that fixes that address bugs introduced during the merge window of the same version will more often introduce bugs than the ones which address 6-months old bugs which require some deeper thinking. In short it indicates that we tend to believe we are better than we really are, especially very late at night. > I don't really have a proposal beyond "tighten up -rc cycles", but I think > it's a discussion worth having. We have enough data to show what parts of > kernel development work, and what parts are just hurting us. I'm inclined to believe that making individuals aware of their own mistakes can help. I personally like to try to understand how I managed to introduce a bug, it's always useful. Very often it's around "I was pretty sure it didn't require testing, the change was so obvious". We all know this feeling when you write 100 lines in a new file, you compile, and it builds without any warning and apparently works, and suddenly you think "uh oh, what did I do wrong?" and you have no idea where to start to look for possible mistakes. Probably that some statistics on mistake classifications and maybe some affected subsystems (if that doesn't blame anyone) could be useful. Just my two cents, Willy