-
Notifications
You must be signed in to change notification settings - Fork 11
stable-patch-format: stricter rule for subject line + minor cosmetic changes #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,46 +27,49 @@ Every patch submitted to a stable kernel **must** have have its subject line | |
| starting with "[SRU]" followed by the release name against which the | ||
| patch is targeted. | ||
|
|
||
| The release name **must** be enclosed in "[ ]" brackets and can be | ||
| abbreviated using the first letter of the release name (e.g. "B" for | ||
| "Bionic"). For example: | ||
| The release name **must** be enclosed in "[ ]" brackets and **should** be | ||
| abbreviated using the first letter of the release name (e.g. "N" for | ||
| "Noble") in upper case. For example: | ||
|
|
||
| .. code-block:: none | ||
|
|
||
| [SRU][Focal][PULL] Focal update: v5.4.56 upstream stable release | ||
| [SRU][N][PATCH 0/1] Fix error of resume on rtl8168fp | ||
|
|
||
| * If a patch is to be applied to multiple releases, a list of release names | ||
| must be provided. For example: | ||
| must be provided, with "/" separating the uppercase letter representing | ||
| each release. For example, when it targets Bionic and Focal: | ||
|
|
||
| .. code-block:: none | ||
|
|
||
| [SRU][B][F][PATCH 1/1] KVM: fix overflow of zero page refcount with ksm running | ||
| [SRU][B/F][PATCH 1/1] KVM: fix overflow of zero page refcount with ksm running | ||
|
|
||
| * If the patch has to be applied to multiple releases, you can drop some of | ||
| the square brackets and use the comma "," or forward slash "/" character | ||
| to separate the releases. | ||
| .. note:: | ||
|
|
||
| For example, if the patch has to be applied to the "Bionic, "Focal", and | ||
| "Jammy" release, change from this: | ||
| Historically, the rule has been somewhat flexible, and various styles | ||
| have been permitted. You may find examples of various styles (such as the | ||
| ones below) in the `mailing list archive | ||
| <https://lists.ubuntu.com/archives/kernel-team/>`_: | ||
|
|
||
| .. code-block:: none | ||
|
|
||
| [SRU][B][F][J][PATCH 0/1] UBUNTU: [Config]: Add support for modifying LDT | ||
|
|
||
| To a comma- or forward slash-separated list: | ||
| .. code-block:: none | ||
| :linenos: | ||
|
|
||
| .. code-block:: none | ||
| [SRU][B,F][PATCH 1/1] KVM: fix overflow of zero page refcount with ksm running | ||
| [SRU][B][F][PATCH 1/1] KVM: fix overflow of zero page refcount with ksm running | ||
| [SRU][Bionic,Focal][PATCH 1/1] KVM: fix overflow of zero page refcount with ksm running | ||
| [SRU][Bionic/Focal][PATCH 1/1] KVM: fix overflow of zero page refcount with ksm running | ||
| [SRU][Bionic][Focal][PATCH 1/1] KVM: fix overflow of zero page refcount with ksm running | ||
|
|
||
| [SRU][B,F,J][PATCH 0/1] UBUNTU: [Config]: Add support for modifying LDT | ||
| Please adhere to the ``[B/F]`` style. | ||
|
|
||
| [SRU][B/F/J][PATCH 0/1] UBUNTU: [Config]: Add support for modifying LDT | ||
| * Use initial letter(s) in upper case | ||
| * Separate each series with "/" | ||
|
|
||
| * If the patch has to be applied to a specific derivative for multiple | ||
| releases, indicate the derivative after the release. For example: | ||
|
|
||
| .. code-block:: none | ||
|
|
||
| [SRU][B:linux-kvm,F:linux-kvm] [PATCH 0/1] UBUNTU: [Config] kvm: Add support for modifying LDT | ||
| [SRU][B:linux-kvm/F:linux-kvm][PATCH 0/1] UBUNTU: [Config] kvm: Add support for modifying LDT | ||
|
|
||
| Subject line for non-upstream patches | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
@@ -119,7 +122,7 @@ For example, for a patch that falls under the "UBUNTU: SAUCE:" category: | |
|
|
||
| .. code-block:: none | ||
|
|
||
| [SRU][FOCAL][PATCH 2/2] UBUNTU: SAUCE: shiftfs: prevent ESTALE for LOOKUP_JUMP lookups | ||
| [SRU][F][PATCH 2/2] UBUNTU: SAUCE: shiftfs: prevent ESTALE for LOOKUP_JUMP lookups | ||
|
|
||
|
|
||
| Comment body | ||
|
|
@@ -145,12 +148,11 @@ Comment body | |
| Example: | ||
|
|
||
| .. code-block:: none | ||
| :emphasize-lines: 2-5 | ||
| :emphasize-lines: 2-4 | ||
|
|
||
| Subject: [PATCH 1/1][SRU][B] UBUNTU: SAUCE: platform/x86: dell-uart-backlight: add get_display_mode command | ||
lkpdn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Subject: [SRU][F][PATCH 1/1] UBUNTU: SAUCE: netfilter: nf_tables: Fix EBUSY on deleting unreferenced chain | ||
|
|
||
| BugLink: https://bugs.launchpad.net/bugs/1865402 | ||
| BugLink: https://bugs.launchpad.net/bugs/1234567 | ||
| BugLink: https://bugs.launchpad.net/bugs/2089699 | ||
|
|
||
| [...] | ||
|
|
||
|
|
@@ -168,25 +170,6 @@ Comment body | |
| (backported from commit 5620ae29f1eabe655f44335231b580a78c8364ea) | ||
| Signed-off-by: Manoj Iyer <[email protected]> | ||
|
|
||
| #. Where Acks are needed they should be placed in the provenance block. | ||
| Every patch against development releases following kernel freeze, and | ||
| **all** patches against released kernels **must** have two "Acked-by" | ||
| replies by members of the Ubuntu Kernel Team. | ||
|
|
||
| Example: | ||
|
|
||
| .. code-block:: none | ||
| :emphasize-lines: 6-8 | ||
|
|
||
| Signed-off-by: Adam Jackson <[email protected]> | ||
| Signed-off-by: Eric Anholt <[email protected]> | ||
| Signed-off-by: Greg Kroah-Hartman <[email protected]> | ||
| (cherry picked from commit d4e0018e3e4dd685af25d300fd26a0d5a984482e 2.6.34.y) | ||
| Signed-off-by: Manoj Iyer <[email protected]> | ||
| Acked-by: Tim Gardner <[email protected]> | ||
| Acked-by: Brad Figg <[email protected]> | ||
| Acked-by: Steve Conklin <[email protected]> | ||
|
|
||
| #. Every patch **must** display the provenance of the patch. We want to | ||
| preserve where the patch came from, who signed off on it, who ack'd it, | ||
| whether it was cherry-picked from upstream and applied cleanly or not and | ||
|
|
@@ -219,7 +202,7 @@ Comment body | |
| .. code-block:: none | ||
|
|
||
| (cherry picked from commit <sha1> <upstream repo name>) | ||
|
|
||
| .. note:: | ||
|
|
||
| Omit the "<upstream repo name>" if the patch comes from the mainline tree. | ||
|
|
@@ -232,11 +215,8 @@ Comment body | |
| Signed-off-by: Adam Jackson <[email protected]> | ||
| Signed-off-by: Eric Anholt <[email protected]> | ||
| Signed-off-by: Greg Kroah-Hartman <[email protected]> | ||
| (cherry picked from commit d4e0018e3e4dd685af25d300fd26a0d5a984482e 2.6.34.y) | ||
| (cherry picked from commit d4e0018e3e4dd685af25d300fd26a0d5a984482e linux-2.6.34.y) | ||
| Signed-off-by: Manoj Iyer <[email protected]> | ||
| Acked-by: Tim Gardner <[email protected]> | ||
| Acked-by: Brad Figg <[email protected]> | ||
| Acked-by: Steve Conklin <[email protected]> | ||
|
|
||
| .. _comment-body-cve: | ||
| #. Every **CVE** patch **must** contain a line at the beginning of the commit | ||
|
|
@@ -294,7 +274,7 @@ Sending as a patch series | |
| .. tip:: | ||
|
|
||
| When sending patches with git-send-email, use the option | ||
| "\-\-suppress-cc=all" in order to prevent adding the original author of | ||
| "\-\-suppress-cc=all" in order to prevent adding the original author of | ||
| the patch and other people from the provenance block as CC. | ||
|
|
||
| Sending as a pull request | ||
|
|
@@ -308,7 +288,7 @@ Sending as a pull request | |
| #. The cover letter **must** contain the SRU justification from the launchpad | ||
| bug or the CVE fix. | ||
| See `KernelTeam/KernelUpdates`_ wiki for more information about the SRU | ||
| justification format to be added to a bug. | ||
| justification format to be added to a bug. | ||
|
|
||
| #. The subject line of the cover letter **must** contain the "[PULL]" tag, | ||
| instead of "[PATCH X/N]". | ||
|
|
@@ -327,6 +307,9 @@ Submitting the patch | |
|
|
||
| Stable patches must be sent to [email protected]. | ||
|
|
||
| Once the patch receives two "Acked-by" replies from members of the Ubuntu | ||
| Kernel Team, it will be merged. | ||
|
|
||
| Patch series example | ||
| -------------------- | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.