Received: by 10.192.165.148 with SMTP id m20csp2068149imm; Thu, 3 May 2018 09:51:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrWP8L4ulZl8oQCDKLRenlLkY/BUdWdcBMK5OtozxIF8CfWx2ocmYyxNdlgXJuiAwc2y5na X-Received: by 2002:a63:2a89:: with SMTP id q131-v6mr19672843pgq.379.1525366300260; Thu, 03 May 2018 09:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525366300; cv=none; d=google.com; s=arc-20160816; b=TETUUNVMgaSShP/amCbK9JUwlDlNu3TW8aIlPpGC9aqXGDO2pZHExWtEtOXjMiQfRP 1mGTEKABRaZ7sywtn+6jDBhmOX51SYFLfxmu/oFrs9BPOXvJaOHITzBixYmH3v80zvuc c1afNc+kQ3svi+1xXWJUbP7GFjyMbeHtsa17JzXm/aikV9RdM39XnpOhaPzKJJpBinQx cTieYtiAOslPP5v/c/fQnUfOJ+8gMWKjHKKuNmINIwjxELThE6F8576i2RXTqsRHEtEf 7GiWaB3EQWVV6SRUX7hAIfX2yh8vcgMU+uCVT0sUjnegJlw4OgxV3haaDm3GKrwn92KM kpOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=LKdpD56f0oWMCTu6HelYce+Xyqhid0svX3J/fdaW0QI=; b=Xk+zEgzG1KVUFU0mVqYf8EfTw0qci5EtSx3vdUTtB+Jkyk+9ted805BHGLrVgGehLn aCscE3NZC6u5ggY+osbw/PeupMFpdZjsX5JJEWFoh7K4N/bYZ7/BIEJmrpeXEKl9AYnH klKAAZi8GiShHdE0YbH0Phz4Y41L+aQa6dpWx4Om8WsOVBwZWzmP5u96RZ/DFkT+SyRs uE6uw5bTucvhDqOKwRhGzDLjjUhMG8IW8nG5IXTMD2Eb/Kln9rHu13TEAslAaVngAIwZ 82xvYAmgg/3e8T8KIOefV1IniVdEC255siT3RzS394wSFUqOqnwKzIfIIEVoSZ4vJsfk UMjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxtx.org header.s=google header.b=W2WzBPhV; 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 z4si14545838pff.159.2018.05.03.09.51.25; Thu, 03 May 2018 09:51: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; dkim=pass header.i=@linuxtx.org header.s=google header.b=W2WzBPhV; 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 S1751291AbeECQuE (ORCPT + 99 others); Thu, 3 May 2018 12:50:04 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:43609 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbeECQuC (ORCPT ); Thu, 3 May 2018 12:50:02 -0400 Received: by mail-io0-f193.google.com with SMTP id t23-v6so22397460ioc.10 for ; Thu, 03 May 2018 09:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxtx.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LKdpD56f0oWMCTu6HelYce+Xyqhid0svX3J/fdaW0QI=; b=W2WzBPhVFiGXMkN3UPgEJLgvFmVVUryvXrVw1PBh8qulOFy+Dfr43E+nJVTGKY3L75 lDCjY9eWdjHdLlrdxH5k/rBSFssR7sWIEmTVN2IxdJHYi9o6waCqMbaA9iYnIvN/tPJA COPDkNghbTHdgP9Ud1edKrCAtk8ifFk+r32G0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LKdpD56f0oWMCTu6HelYce+Xyqhid0svX3J/fdaW0QI=; b=lSBf4lKm/inQ7r5XJ/Wqz7urPFXSs0UUqmYjOhBglYQ1FQR/jvFvpxpMA2dEx0pN4I Ava1o0WJwxZqiNiirUrJngdVDwRj3taXEnHp5ZKt7i3raasljEH8Yw0RgX7KR925+R9s H2iwxJfr9Drpr46YMHt7bxFhzdEjEbVyYwN6gWDaeb6UuotjKzpg8C01keeCokFBjbZI KPegISsR9PRPRgJKXUIJqV+AjVFo6LlvAllflN6yq1eLNE1vUWX97g0OSaXmS3TEPZe5 5ADB02Hws9H7rfKjrUEcPwf+ZPFPI8RRUbWnikeOQX3xsrX5QbpmLMb7zIbkGXENS2iN NBvg== X-Gm-Message-State: ALQs6tCwjDJhiw3WXmqAVDhOfVWosP8hej0D+9tWYx0K4Ey2vqD8eism Ac0GkE9Jd8YsIZmU/mN2eM4x+eqfkjg9zjDECJkcUw== X-Received: by 2002:a6b:ba46:: with SMTP id k67-v6mr25750174iof.289.1525366200997; Thu, 03 May 2018 09:50:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:a349:0:0:0:0:0 with HTTP; Thu, 3 May 2018 09:50:00 -0700 (PDT) In-Reply-To: <20180503160210.GO18390@sasha-vm> References: <20180501163818.GD1468@sasha-vm> <20180502195138.GC18390@sasha-vm> <20180503000620.GA29205@thunk.org> <20180503145533.GK18390@sasha-vm> <20180503154911.GA26754@roeck-us.net> <20180503160210.GO18390@sasha-vm> From: Justin Forbes Date: Thu, 3 May 2018 11:50:00 -0500 Message-ID: Subject: Re: [Ksummit-discuss] bug-introducing patches To: Sasha Levin Cc: Guenter Roeck , "Theodore Y. Ts'o" , Geert Uytterhoeven , Greg KH , "linux-kernel@vger.kernel.org" , "w@1wt.eu" , "ksummit-discuss@lists.linuxfoundation.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 3, 2018 at 11:02 AM, Sasha Levin wrote: > On Thu, May 03, 2018 at 08:49:11AM -0700, Guenter Roeck wrote: >>On Thu, May 03, 2018 at 02:55:36PM +0000, Sasha Levin wrote: >>> On Wed, May 02, 2018 at 05:38:32PM -0700, Guenter Roeck wrote: >>> >On 05/02/2018 05:06 PM, Theodore Y. Ts'o wrote: >>> >>On Wed, May 02, 2018 at 10:41:56PM +0200, Geert Uytterhoeven wrote: >>> >>> >>> >>>Between v4.17-rc1 and v4.17-rc3, there are 660 non-merge commits, of which >>> >>> - 245 carry a Fixes tag, >>> >>> - 196 carry a CC stable, >>> >>> - 395 contain the string "fix". >>> >>>(non-mutually exclusive) >>> >>> >>> >>>That leaves us with 200 commits not falling in the bugfix category. >>> >> >>> >>Some non-bug fixes are allowed in -rc2. So perhaps what might be >>> >>interesting is to look at v4.16 (which is completed), and look at the >>> >>distribution of commits: >>> >> >>> >> * regressions fixes (for bugs introduced during the current >>> >> release cycle) >>> >> * "normal" bug fixes >>> >> * commits which don't touch code (e.g., spelling or >>> >> documentation-only fixes) >>> >> * other commits (features or cleanup fixes) >>> >> >>> >>at each rcX level. The historic "standard" has been feature commits >>> >>in -rc1 and -rc2 (tolerated, but ideally should before the merge >>> >>window), bug fixes / regressions in -rc3 and -rc4, and after -rc4, >>> >>regression fixes only. It would be interesting to see how well we >>> >>have been holding to the historical ideal. >>> >> >>> >>It would then be intersting to use Sasha's analysis to see whether >>> >>there are more bug fixes caused by regression fixes versus normal bug >>> >>fixes, and whether or not they are common when fixes come "out of >>> >>cycle" --- for example, a non-regression bug fix in -rc5 or -rc6. >>> >> >>> >>Because if that last is the case, then the prescription is very simple >>> >>and not controversial --- bug fixes found post -rc4 should be held to >>> >>the next merge window. >>> >> >>> > >>> >Holding up even fixes for severe bugs for 4-6 weeks ? Seriously, that is >>> >unrealistic. Holding up the fix for the next SpeckHammer because it was not >>> >ready before -rc4 ? I don't think so. >>> >>> For severe problems, the patch usually gets more than enough reviews and >>> testing, so I don't see a need to soak it in -next more than some >>> minimal amount of time to get bot coverage. >>> >>> However, these things show up only a few times per year. Most of the >>> fixes even in late -rc cycles are for older bugs that aren't too >>> critical. We can't base our decision on severe bugs that get exceptional >>> treatment anyways (see PTI getting pushed in -stable). >>> >>> >Even when not counting severe problems, you are adding lots of additional work >>> >for those who do and want to rely on stable releases to merge in bug fixes. >>> >Sure, I am at times annoyed having to deal with a regression in a stable >>> >release, but it very much beats digging through various mailing lists for >>> >pending patches to fix CVEs, or for crashes seen in the field, just because >>> >they are held hostage by some restrictive process. Even worse, I'd end up >>> >picking the regressions anyway because I can _not_ wait those 4-6 weeks >>> >plus the time it takes for the fixes to show up in a stable release. >>> >>> I think that for -stable we don't have a good idea how soon we want to >>> merge patches in. On one hand enterprise distro folks complain we're >>> jumping the gun, and on the other hand folks like yourself claim we're >>> too slow :) >>> >> >>You are misquoting me. I am saying that it would be a bad idea to hold up >>bug fixes after -rc4, which is quite different to saying that patches >>don't make it into stable releases fast enough. I am perfectly happy to >>wait a week or so for a patch to soak in _mainline_ before being applied >>to stable. > > Most bug fixes that go in at that point are fixes for previous released > kernels, what's the harm in keeping them around for longer? > > I'm not saying that it should be some arbitrary rule for everyone, but > just suggesting that maintainers should exercise more caution merging > untested commits that don't even fix a current regression. > There is a balance here. In the past, one of the biggest complaints we had as distro maintainers was that known regressions get reported, and fixed, and then the maintainer would sit on the fix until the next merge window. This happened even for trivial fixes. And not being in tree does keep it out of stable. This has improved greatly recently. Perhaps things have over compensated, but I don' t think that putting a blanket rule out there is the answer. Just perhaps some best practices for test coverage. > w.r.t stable, as you just said, you're fine with a week or two, the > enterprise folks (as well as Ted, to some extend, in this thread) > suggest that this should be a month+ I don' t have an issue with some things percolating in mainline for a bit before being pulled into stable, it might have saved us a lot of grief with the random patches last week. But again there isn't a set rule that seems logical here. Adequate test coverage is the concern, not some set time, especially for obvious fixes. I know for Fedora, we do have (some) people testing rawhide daily, so things in Linus' tree start getting end user testing usually within 24 hours. I am not saying that things are great now, or cannot be improved. I am just concerned that we come up with some "rule" that takes us back to keeping legitimate fixes out of tree for much longer than necessary. >>I am absolutely _not_ happy with the number of patches making it into >>-stable releases recently. I am especially very concerned that the current >>flurry of patches queued for -stable will destabilize pretty much all >>stable releases, and pretty badly, for that matter. I am seriously >>contemplating not to integrate the next few stable releases into ChromeOS >>for that very reason. That would be a different discussion, though. There is certainly concern here. If end users stop trusting stable kernel updates, the next time there is a big security issue, they may just ignore the fix until there is consensus that it is safe to update . > > For AUTOSEL, I'd be happy to learn of issues you encounter and address > them in my process. > > I've been submitting automatically selected patches for over a year now > and the track record for regressions is on par with patches that are > tagged for stable.