Skip to contentSkip to conversation

Stable kernel release process update

PATCH Superseded Bagas Sanjaya 2 participants 11 messages Mar 12, 2022 – Mar 14, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Stable kernel release process update

The stable release process documented in stable-kernel-rules.rst needs to be updated to reflect current procedure.

Patch 1 is merely reorganizing three submission option lists to be subsection of the procedure section.

Patch 2 contains the actual process documentation update.

Patch 3 and 4 updates "Tree" section by adding stable -rc tree link and correcting link for stable tree, respectively.

Cc Greg Kroah-Hartman <[email protected]>
Cc Sasha Levin <[email protected]>
Cc Jonathan Corbet <[email protected]>

Bagas Sanjaya (4):
Documentation: make option lists subsection of "Procedure for
submitting patches to the -stable tree" in stable-kernel-rules.rst
Documentation: update stable review cycle documentation
Documentation: add link to stable release candidate tree
Documentation: update stable tree link

 Documentation/process/stable-kernel-rules.rst | 31 ++++++++++++++-----
 1 file changed, 24 insertions(+), 7 deletions(-)

base-commit: ffb217a13a2eaf6d5bd974fc83036a53ca69f1e2

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw

PATCH 1/4 Documentation: make option lists subsection of "Procedure for submitting patches to the -stable tree" in stable-kernel-rules.rst

The table of contents generated for stable-kernel-rules.rst contains "For all other submissions..." section, that includes options subsections. These options subsections should have been subsections of "Procedure for submitting patches..." section. Remove the redundant section.

Also, convert note about security patches to use .. note:: block.

---
 Documentation/process/stable-kernel-rules.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/process/stable-kernel-rules.rst +4 -3
index 003c865e9c2..d8ce4c0c775 100644
@@ -35,12 +35,13 @@ Rules on what kind of patches are accepted, and which ones are not, into the
 Procedure for submitting patches to the -stable tree
 ----------------------------------------------------
 
- - Security patches should not be handled (solely) by the -stable review
+.. note::
+
+   Security patches should not be handled (solely) by the -stable review
    process but should follow the procedures in
    :ref:`Documentation/admin-guide/security-bugs.rst <securitybugs>`.
 
-For all other submissions, choose one of the following procedures
------------------------------------------------------------------
+There are three options:
 
 .. _option_1:
 
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#4 lore raw

PATCH 2/4 Documentation: update stable review cycle documentation

In reply to Bagas Sanjaya

In recent times, the review cycle for stable releases have been changed. In particular, there is release candidate phase between ACKing patches and new stable release. Also, in case of failed submissions (fail to apply to stable tree), manual backport (Option 3) have to be submitted instead.

Update the release cycle documentation on stable-kernel-rules.rst to reflect the above.

---
 Documentation/process/stable-kernel-rules.rst | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
Documentation/process/stable-kernel-rules.rst +15 -3
index d8ce4c0c775..c0c87d87f7d 100644
@@ -139,6 +139,9 @@ Following the submission:
    days, according to the developer's schedules.
  - If accepted, the patch will be added to the -stable queue, for review by
    other developers and by the relevant subsystem maintainer.
+ - Some submitted patches may fail to apply to -stable tree. When this is the
+   case, the maintainer will reply to the sender requesting the backport.
+   If no backport is made, the submission will be ignored.
 
 
 Review cycle
@@ -147,13 +150,22 @@ Review cycle
  - When the -stable maintainers decide for a review cycle, the patches will be
    sent to the review committee, and the maintainer of the affected area of
    the patch (unless the submitter is the maintainer of the area) and CC: to
-   the linux-kernel mailing list.
+   the linux-kernel mailing list. Patches are prefixed with either ``[PATCH
+   AUTOSEL]`` (for automatically selected patches) or ``[PATCH MANUALSEL]``
+   for manually backported patches.
  - The review committee has 48 hours in which to ACK or NAK the patch.
  - If the patch is rejected by a member of the committee, or linux-kernel
    members object to the patch, bringing up issues that the maintainers and
    members did not realize, the patch will be dropped from the queue.
- - At the end of the review cycle, the ACKed patches will be added to the
-   latest -stable release, and a new -stable release will happen.
+ - The ACKed patches will be posted again as part of release candidate (-rc)
+   to be tested by developers and users willing to test (testers). When
+   testing all went OK, they can give Tested-by: tag for the -rc. Usually
+   only one -rc release is made, however if there are any outstanding
+   issues, some patches may be modified or dropped or additional patches may
+   be queued. Additional -rc releases are then released and tested until no
+   issues are found.
+ - At the end of the review cycle, the new -stable release will be released
+   containing all the queued and tested patches.
  - Security patches will be accepted into the -stable tree directly from the
    security kernel team, and not go through the normal review cycle.
    Contact the kernel security team for more details on this procedure.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#7 lore raw

PATCH 3/4 Documentation: add link to stable release candidate tree

In reply to Bagas Sanjaya

There is also stable release candidate tree. Mention it.

---
 Documentation/process/stable-kernel-rules.rst | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/process/stable-kernel-rules.rst +4 -0
index c0c87d87f7d..523d2d35127 100644
@@ -183,6 +183,10 @@ Trees
 
 	https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
 
+ - The release candidate of all stable kernel versions can be found at:
+
+        https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/
+
 
 Review committee
 ----------------
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#9 lore raw

PATCH 4/4 Documentation: update stable tree link

In reply to Bagas Sanjaya

The link to stable tree is redirected to
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git. Update accordingly.

---
 Documentation/process/stable-kernel-rules.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/process/stable-kernel-rules.rst +1 -1
index 523d2d35127..c242fe1788c 100644
@@ -181,7 +181,7 @@ Trees
  - The finalized and tagged releases of all stable kernels can be found
    in separate branches per version at:
 
-	https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
+	https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
 
  - The release candidate of all stable kernel versions can be found at:
 
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#5 lore raw

Re: [PATCH 2/4] Documentation: update stable review cycle documentation

In reply to Bagas Sanjaya
Quoted 24 lines · Bagas Sanjaya

In recent times, the review cycle for stable releases have been changed. In particular, there is release candidate phase between ACKing patches and new stable release. Also, in case of failed submissions (fail to apply to stable tree), manual backport (Option 3) have to be submitted instead.

Update the release cycle documentation on stable-kernel-rules.rst to reflect the above.

---
 Documentation/process/stable-kernel-rules.rst | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
Documentation/process/stable-kernel-rules.rst +0 -0
index d8ce4c0c775..c0c87d87f7d 100644

Documentation/process/stable-kernel-rules.rst Following the submission: · line 143

Quoted 5 lines
Documentation/process/stable-kernel-rules.rst +2 -0
@@ -139,6 +139,9 @@ Following the submission:
    days, according to the developer's schedules.
  - If accepted, the patch will be added to the -stable queue, for review by
    other developers and by the relevant subsystem maintainer.
+ - Some submitted patches may fail to apply to -stable tree. When this is the
+   case, the maintainer will reply to the sender requesting the backport.

This is tricky, as yes, most of the time this happens, but there are exceptions. I would just leave this out for now as I don't think it helps anyone, right?

Documentation/process/stable-kernel-rules.rst Following the submission: · line 144

Quoted 1 line
Documentation/process/stable-kernel-rules.rst +1 -0
+   If no backport is made, the submission will be ignored.

That's kind of obvious :)

Documentation/process/stable-kernel-rules.rst Review cycle · line 155

Quoted 8 lines
Documentation/process/stable-kernel-rules.rst +3 -1
@@ -147,13 +150,22 @@ Review cycle
  - When the -stable maintainers decide for a review cycle, the patches will be
    sent to the review committee, and the maintainer of the affected area of
    the patch (unless the submitter is the maintainer of the area) and CC: to
-   the linux-kernel mailing list.
+   the linux-kernel mailing list. Patches are prefixed with either ``[PATCH
+   AUTOSEL]`` (for automatically selected patches) or ``[PATCH MANUALSEL]``
+   for manually backported patches.

These two prefixes are different and not part of the review cycle for the normal releases. So that shouldn't go into this list. Perhaps a different section?

Documentation/process/stable-kernel-rules.rst Review cycle · line 160

Quoted 7 lines
Documentation/process/stable-kernel-rules.rst +1 -2
  - The review committee has 48 hours in which to ACK or NAK the patch.
  - If the patch is rejected by a member of the committee, or linux-kernel
    members object to the patch, bringing up issues that the maintainers and
    members did not realize, the patch will be dropped from the queue.
- - At the end of the review cycle, the ACKed patches will be added to the
-   latest -stable release, and a new -stable release will happen.
+ - The ACKed patches will be posted again as part of release candidate (-rc)

Is this the first place we call it "-rc"?

Documentation/process/stable-kernel-rules.rst Review cycle · line 161

Quoted 1 line
Documentation/process/stable-kernel-rules.rst +1 -0
+   to be tested by developers and users willing to test (testers). When

No need for "(testers)".

Documentation/process/stable-kernel-rules.rst Review cycle · line 162

Quoted 1 line
Documentation/process/stable-kernel-rules.rst +1 -0
+   testing all went OK, they can give Tested-by: tag for the -rc. Usually

"testing all went OK" is a bit ackward. How about this wording instead:
Responses to the -rc releases can be done on the mailing list by sending a "Tested-by:" email with any other testing information desired. The "Tested-by:" tags will be collected and added to the release commit.

Thanks for taking this on, it's been a long time since we looked at this document.

thanks,

greg k-h

#10 lore raw

Re: [PATCH 4/4] Documentation: update stable tree link

In reply to Bagas Sanjaya
Quoted 19 lines · Bagas Sanjaya

The link to stable tree is redirected to
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git. Update accordingly.

---
 Documentation/process/stable-kernel-rules.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/process/stable-kernel-rules.rst +0 -0
index 523d2d35127..c242fe1788c 100644

Documentation/process/stable-kernel-rules.rst Trees · line 184

Quoted 5 lines
Documentation/process/stable-kernel-rules.rst +1 -1
@@ -181,7 +181,7 @@ Trees
  - The finalized and tagged releases of all stable kernels can be found
    in separate branches per version at:
 
-	https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
+	https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

I should take this change right now as this should have been changed a while ago.

thanks,

greg k-h

#2 lore raw

Re: [PATCH 1/4] Documentation: make option lists subsection of "Procedure for submitting patches to the -stable tree" in stable-kernel-rules.rst

In reply to Bagas Sanjaya
Quoted 5 lines · Bagas Sanjaya

The table of contents generated for stable-kernel-rules.rst contains "For all other submissions..." section, that includes options subsections. These options subsections should have been subsections of "Procedure for submitting patches..." section. Remove the redundant section.

The subject line is really long, was that intentional?

Quoted 2 lines

Also, convert note about security patches to use .. note:: block.

When you have an "also" that's a huge hint it should be a separate commit.

thanks,

greg k-h

#8 lore raw

Re: [PATCH 3/4] Documentation: add link to stable release candidate tree

In reply to Bagas Sanjaya
Quoted 17 lines · Bagas Sanjaya

There is also stable release candidate tree. Mention it.

---
 Documentation/process/stable-kernel-rules.rst | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/process/stable-kernel-rules.rst +0 -0
index c0c87d87f7d..523d2d35127 100644

Documentation/process/stable-kernel-rules.rst Trees · line 189

Quoted 7 lines
Documentation/process/stable-kernel-rules.rst +4 -0
@@ -183,6 +183,10 @@ Trees
 
 	https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
 
+ - The release candidate of all stable kernel versions can be found at:
+
+        https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/
+

Please add something here that says this tree will be rebased often and should only be used for testing CI systems to pull from. It is a snapshot in time of the stable-queue.git tree and will change frequently.

In short, I really don't like people using this tree, but have provided it for those CI systems that don't like dealing with quilt patches only.

I also constantly forget to push the release tags to it, as I'm reminded frequently :)

thanks,

greg k-h

#6 lore raw

Re: [PATCH 2/4] Documentation: update stable review cycle documentation

In reply to Greg Kroah-Hartman
Quoted 6 lines · Greg Kroah-Hartman
Quoted 6 lines
Documentation/process/stable-kernel-rules.rst +0 -0
index d8ce4c0c775..c0c87d87f7d 100644
@@ -139,6 +139,9 @@ Following the submission:
     days, according to the developer's schedules.
Quoted 9 lines

Documentation/process/stable-kernel-rules.rst Following the submission: · line 143

Quoted 4 lines
Documentation/process/stable-kernel-rules.rst +2 -0
   - If accepted, the patch will be added to the -stable queue, for review by
     other developers and by the relevant subsystem maintainer.
+ - Some submitted patches may fail to apply to -stable tree. When this is the
+   case, the maintainer will reply to the sender requesting the backport.

This is tricky, as yes, most of the time this happens, but there are exceptions. I would just leave this out for now as I don't think it helps anyone, right?

I think wording on option 3 needs to mention backport. Something like: "Option 3 is especially useful if the upstream patch needs to be backported (e.g. needs special handling due to changed APIs)".

Quoted 4 lines
Quoted 4 lines
Documentation/process/stable-kernel-rules.rst +0 -0
@@ -147,13 +150,22 @@ Review cycle
   - When the -stable maintainers decide for a review cycle, the patches will be
     sent to the review committee, and the maintainer of the affected area of
     the patch (unless the submitter is the maintainer of the area) and CC: to
Quoted 9 lines

Documentation/process/stable-kernel-rules.rst Review cycle · line 155

Quoted 4 lines
Documentation/process/stable-kernel-rules.rst +3 -1
-   the linux-kernel mailing list.
+   the linux-kernel mailing list. Patches are prefixed with either ``[PATCH
+   AUTOSEL]`` (for automatically selected patches) or ``[PATCH MANUALSEL]``
+   for manually backported patches.

These two prefixes are different and not part of the review cycle for the normal releases. So that shouldn't go into this list. Perhaps a different section?

I think these prefixes **are** part of review cycle; in fact these patches which get ACKed will be part of -rc for stable release.

Quoted 9 lines

Documentation/process/stable-kernel-rules.rst Review cycle · line 160

Quoted 7 lines
Documentation/process/stable-kernel-rules.rst +1 -2
   - The review committee has 48 hours in which to ACK or NAK the patch.
   - If the patch is rejected by a member of the committee, or linux-kernel
     members object to the patch, bringing up issues that the maintainers and
     members did not realize, the patch will be dropped from the queue.
- - At the end of the review cycle, the ACKed patches will be added to the
-   latest -stable release, and a new -stable release will happen.
+ - The ACKed patches will be posted again as part of release candidate (-rc)

Is this the first place we call it "-rc"?

Yes.

Quoted 5 lines

Documentation/process/stable-kernel-rules.rst Review cycle · line 161

Quoted 2 lines
Documentation/process/stable-kernel-rules.rst +1 -0
+   to be tested by developers and users willing to test (testers). When

No need for "(testers)".

So we can just say "developers and testers", right?

Quoted 8 lines

Documentation/process/stable-kernel-rules.rst Review cycle · line 162

Quoted 1 line
Documentation/process/stable-kernel-rules.rst +1 -0
+   testing all went OK, they can give Tested-by: tag for the -rc. Usually

"testing all went OK" is a bit ackward. How about this wording instead:
Responses to the -rc releases can be done on the mailing list by sending a "Tested-by:" email with any other testing information desired. The "Tested-by:" tags will be collected and added to the release commit.

OK, will apply.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw

Re: [PATCH 1/4] Documentation: make option lists subsection of "Procedure for submitting patches to the -stable tree" in stable-kernel-rules.rst

In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman
Quoted 5 lines · Bagas Sanjaya

The table of contents generated for stable-kernel-rules.rst contains "For all other submissions..." section, that includes options subsections. These options subsections should have been subsections of "Procedure for submitting patches..." section. Remove the redundant section.

The subject line is really long, was that intentional?

Yes, because I have to spell the full section name the option lists I moved to.

Quoted 6 lines
Quoted 2 lines

Also, convert note about security patches to use .. note:: block.

When you have an "also" that's a huge hint it should be a separate commit.

OK, will split.

Signature · 1 line
An old man doll... just what I always wanted! - Clara