From: Greg KH <gregkh@linuxfoundation.org>
To: Thorsten Leemhuis <linux@leemhuis.info>
Cc: stable@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, Sasha Levin <sashal@kernel.org>,
Jonathan Corbet <corbet@lwn.net>
Subject: Re: [RFC PATCH v1 2/3] docs: stable-kernel-rules: make rule section more straight forward
Date: Mon, 10 Jul 2023 21:44:54 +0200 [thread overview]
Message-ID: <2023071017-ferocity-chooser-427b@gregkh> (raw)
In-Reply-To: <420fc78dd7f3cd537143ebdb25a51ea58d3f031d.1689008220.git.linux@leemhuis.info>
On Mon, Jul 10, 2023 at 07:10:12PM +0200, Thorsten Leemhuis wrote:
> Tweak some of the rule text to make things more straight forward, with
> the goal to stick closely to the intend of the old text:
>
> * put the "it or equivalent fix must be ustream" rule at the top, as
> it's one of the most important ones that at the same time often seems
> to be missed by developers.
> * "It must fix only one thing" was dropped, as that is almost always a
> thing that needs to be handled earlier when the change is mainlined.
> Furthermore, this is already indirectly covered by the "Separate your
> changes" section in Documentation/process/submitting-patches.rst which
> the rules already point to.
> * six other rules are in the end one rule with clarifications; structure
> the text accordingly to make it a lot easier to follow and understand
> the intend.
>
> CC: Greg KH <gregkh@linuxfoundation.org>
> CC: Sasha Levin <sashal@kernel.org>
> CC: Jonathan Corbet <corbet@lwn.net>
> Signed-off-by: Thorsten Leemhuis <linux@leemhuis.info>
> ---
> Documentation/process/stable-kernel-rules.rst | 39 +++++++++----------
> 1 file changed, 19 insertions(+), 20 deletions(-)
>
> diff --git a/Documentation/process/stable-kernel-rules.rst b/Documentation/process/stable-kernel-rules.rst
> index 6e4026dd6882..85d5d2368034 100644
> --- a/Documentation/process/stable-kernel-rules.rst
> +++ b/Documentation/process/stable-kernel-rules.rst
> @@ -6,31 +6,30 @@ Everything you ever wanted to know about Linux -stable releases
> Rules on what kind of patches are accepted, and which ones are not, into the
> "-stable" tree:
>
> + - It or an equivalent fix must already exist in Linus' tree (upstream).
> - It must be obviously correct and tested.
> - It cannot be bigger than 100 lines, with context.
> - - It must fix only one thing.
> - - It must fix a real bug that bothers people (not a, "This could be a
> - problem..." type thing).
> - - It must fix a problem that causes a build error (but not for things
> - marked CONFIG_BROKEN), an oops, a hang, data corruption, a real
> - security issue, or some "oh, that's not good" issue. In short, something
> - critical.
> - - Serious issues as reported by a user of a distribution kernel may also
> - be considered if they fix a notable performance or interactivity issue.
> - As these fixes are not as obvious and have a higher risk of a subtle
> - regression they should only be submitted by a distribution kernel
> - maintainer and include an addendum linking to a bugzilla entry if it
> - exists and additional information on the user-visible impact.
> - - New device IDs and quirks are also accepted.
> - - No "theoretical race condition" issues, unless an explanation of how the
> - race can be exploited is also provided.
> - - It cannot contain any "trivial" fixes in it (spelling changes,
> - whitespace cleanups, etc).
> - It must follow the
> :ref:`Documentation/process/submitting-patches.rst <submittingpatches>`
> rules.
> - - It or an equivalent fix must already exist in Linus' tree (upstream).
> -
> + - It must either fix a real bug that bothers people or just add a device ID.
> + To elaborate on the former:
> +
> + - It fixes a problem like an oops, a hang, data corruption, a real security
> + issue, a hardware quirk, a build error (but not for things marked
> + CONFIG_BROKEN), or some "oh, that's not good" issue. In short, something
> + critical.
> + - Serious issues as reported by a user of a distribution kernel may also
> + be considered if they fix a notable performance or interactivity issue.
> + As these fixes are not as obvious and have a higher risk of a subtle
> + regression they should only be submitted by a distribution kernel
> + maintainer and include an addendum linking to a bugzilla entry if it
> + exists and additional information on the user-visible impact.
> + - No "This could be a problem..." type of things like a "theoretical race
> + condition", unless an explanation of how the bug can be exploited is also
> + provided.
> + - No "trivial" fixes without benefit for users (spelling changes, whitespace
> + cleanups, etc).
>
> Procedure for submitting patches to the -stable tree
> ----------------------------------------------------
Ah, it's nice to see that mainline also enforces the "must do one
thing", I think when I originally wrote this, it didn't :)
Again, all looks great to me, I'll be glad to take it.
thanks,
greg k-h
next prev parent reply other threads:[~2023-07-10 19:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 17:10 [RFC PATCH v1 0/3] docs: stable-kernel-rules: add delayed backporting option and a few tweaks Thorsten Leemhuis
2023-07-10 17:10 ` [RFC PATCH v1 1/3] docs: stable-kernel-rules: mention other usages for stable tag comments Thorsten Leemhuis
2023-07-10 19:43 ` Greg KH
2023-07-11 6:07 ` Thorsten Leemhuis
2023-07-11 10:15 ` Jani Nikula
2023-07-11 10:33 ` Thorsten Leemhuis
2023-07-10 17:10 ` [RFC PATCH v1 2/3] docs: stable-kernel-rules: make rule section more straight forward Thorsten Leemhuis
2023-07-10 19:44 ` Greg KH [this message]
2023-07-10 17:10 ` [RFC PATCH v1 3/3] docs: stable-kernel-rules: improve structure to optimize reading flow Thorsten Leemhuis
2023-07-10 19:46 ` Greg KH
2023-07-10 17:18 ` [RFC PATCH v1 0/3] docs: stable-kernel-rules: add delayed backporting option and a few tweaks Thorsten Leemhuis
2023-07-10 19:50 ` Greg KH
2023-07-11 5:57 ` Thorsten Leemhuis
2023-07-11 8:42 ` Johan Hovold
2023-07-11 8:57 ` Thorsten Leemhuis
2023-07-10 19:51 ` Greg KH
2023-07-12 9:30 ` Thorsten Leemhuis
2023-07-12 15:16 ` Greg KH
2023-07-12 17:02 ` Thorsten Leemhuis
2023-07-12 19:00 ` Greg KH
2023-07-13 8:48 ` Thorsten Leemhuis
2023-07-13 15:06 ` Greg KH
2023-07-13 15:39 ` Conor Dooley
2023-07-13 16:27 ` Thorsten Leemhuis
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=2023071017-ferocity-chooser-427b@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@leemhuis.info \
--cc=sashal@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.