stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	stable <stable@vger.kernel.org>, Stephen Boyd <sboyd@kernel.org>
Subject: Re: Clock related crashes in v5.4.y-queue
Date: Mon, 6 Jan 2020 08:20:53 -0500	[thread overview]
Message-ID: <20200106132053.GA1706@sasha-vm> (raw)
In-Reply-To: <9c295487-5e28-0fa7-7892-59e61cd7d07e@roeck-us.net>

On Sun, Jan 05, 2020 at 08:34:59AM -0800, Guenter Roeck wrote:
>I think we are going into the absolutely wrong direction. Expecting that
>everyone would use mainline is absolutely unrealistic, and backporting
>more and more patches to stable branches can only result in destabilizing
>stable branches, which in turn will drive people away from it (and _not_
>to use mainline). The only reason it wasn't a disaster yet is that we have
>better testing now. But we offset that better testing with backporting
>more patches, which has the opposite effect. One stabilizes, the other
>destabilizes. The end result is the same. Actually, it is worse - the
>indiscriminate backporting not only causes unnecessary regressions,
>it (again) gives people an argument against merging stable releases.
>And, this time I have to admit they are right.

Just to get an idea of how the AUTOSEL commits affect the kernel tree I
tried the following:

We have 10648 commits on top of 4.19 in the 4.19 LTS tree:

$ git log --oneline v4.19..stable/linux-4.19.y | wc -l
10468

I've tried to identify how many of them have a "Fixes:" tag pointing to
them, and how many were reverted (using it to identify buggy commits in
the stable tree), ending up with:

$ wc -l fixes
637 fixes

So about 6% of the commits that go in the stable tree have a follow up
fix or revert. Now, let's see where commits in the 4.19 LTS tree come
from:

$ git log --oneline --grep "Signed-off-by: Sasha Levin <sashal@kernel.org>" v4.19..stable/linux-4.19.y | wc -l
5475
$ git log --invert-grep --oneline --grep "Signed-off-by: Sasha Levin <sashal@kernel.org>" v4.19..stable/linux-4.19.y | wc -l
4993

In general, Greg is the one who picks up commits that are tagged for
stable, security issues, and patches requested by folks on the mailing
list. I'm mostly doing AUTOSEL, other distro trees, and mailing list
(but Greg still does the most of the mailing list work).

Anyway, looks like mostly an equal split between stable tagged commits
and AUTOSEL ones.

Now, looking at the buggy commits again, I check whether the commit came
via Greg or myself (just using it as a way to differentiate between
stable tagged commits/commits requested by users/etc and commits that
came in using AUTOSEL), and I get:

$ for i in $(cat fixes | awk {'print $2'}); do if [ $(git show $i | grep 'Signed-off-by: Sasha Levin <sashal@kernel.org>' | wc -l) -gt 0 ]; then echo "Sasha"; else echo "Greg"; fi; done | sort | uniq -c
    367 Greg
    270 Sasha

Which seems to show that AUTOSEL commits are actually less buggy than
stable tagged commits. Sure, this analysis isn't perfect, but if we
treat it purely as ballpark figures I think that it's enough to show
that picking up more fixes doesn't contribute to "destabilizing" the
stable trees.

-- 
Thanks,
Sasha

      parent reply	other threads:[~2020-01-06 13:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-02  2:44 Clock related crashes in v5.4.y-queue Guenter Roeck
2020-01-02  3:41 ` Guenter Roeck
2020-01-02  7:30   ` Stephen Boyd
2020-01-02 14:13     ` Guenter Roeck
2020-01-02 14:19       ` Naresh Kamboju
2020-01-02 14:38         ` Guenter Roeck
2020-01-02 21:01 ` Greg Kroah-Hartman
2020-01-02 21:28   ` Guenter Roeck
2020-01-03  0:40     ` Sasha Levin
2020-01-03 14:50       ` Guenter Roeck
2020-01-05 16:02         ` Sasha Levin
2020-01-05 16:34           ` Guenter Roeck
2020-01-05 19:10             ` Sasha Levin
2020-01-06 13:20             ` Sasha Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200106132053.GA1706@sasha-vm \
    --to=sashal@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux@roeck-us.net \
    --cc=sboyd@kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).