🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
4 messages
4 total messages Started by Willy Tarreau Sat, 14 Nov 2026 19:00
[PATCH v2 05/14] docs: security-bugs: explain how to send a fix that can be applied
#16417
Author: Willy Tarreau
Date: Sat, 14 Nov 2026 19:00
88 lines
12709 bytes
Most fixes accompanying security reports cannot be applied with git am,
either because they were damaged by the mailer, or because they just
lack a commit message, and the vast majority of our responses to
reporters are about the patch format. The doc only said to format the
fix "in a way that can be immediately merged", but by now it has
become clear that for many reporters it doesn't have the same meaning
as for maintainers.

Let's give concrete methods: preferably the report as the cover letter
of the series produced by git format-patch, then the fix sent as a reply
to the report, and as a last resort the patch attached, with a warning
that some maintainers won't look at it. Let's also explain how to deal
with public patches and private reports.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
---
 Documentation/process/security-bugs.rst | 46 +++++++++++++++++++++++--
 1 file changed, 44 insertions(+), 2 deletions(-)

diff --git a/Documentation/process/security-bugs.rst b/Documentation/process/security-bugs.rst
index 2744259267170..42b7926f3021c 100644
--- a/Documentation/process/security-bugs.rst
+++ b/Documentation/process/security-bugs.rst
@@ -307,8 +307,9 @@ Please send **plain text** emails without attachments where possible.
 It is much harder to have a context-quoted discussion about a complex
 issue if all the details are hidden away in attachments.  Think of it like a
 :doc:`regular patch submission <../process/submitting-patches>`
-(even if you don't have a patch yet): describe the problem and impact, list
-reproduction steps, and follow it with a proposed fix, all in plain text.
+(even if you don't have a patch yet): describe the problem and impact, and
+list reproduction steps, all in plain text, then provide a proposed fix as
+described below.
 Markdown, HTML and RST formatted reports are particularly frowned upon since
 they're quite hard to read for humans and encourage to use dedicated viewers,
 sometimes online, which by definition is not acceptable for a confidential
@@ -316,6 +317,47 @@ security report. Note that some mailers tend to mangle formatting of plain
 text by default, please consult Documentation/process/email-clients.rst for
 more info.
 
+Sending a fix
+~~~~~~~~~~~~~
+
+Most fixes sent along with reports cannot be applied as-is because they were
+damaged by the mailer or lacking a commit message, forcing maintainers to ask
+for a resend. A fix must be applicable using ``git am``, which is most easily
+achieved by letting git produce and send the messages (see
+Documentation/process/submitting-patches.rst).
+
+When the fix is meant to only be sent privately, the preferred method is to
+send the report as a cover letter of a series, followed by the fix::
+
+  $ git format-patch --cover-letter -1
+  (edit 0000-cover-letter.patch and replace the subject and text with the
+   report's subject and text)
+  $ git send-email --suppress-cc=all --to=<maintainers> 000*.patch
+
+The recipients are those determined above (add ``--cc=`` for the security team
+when needed). The ``--suppress-cc=all`` option is important: without it,
+``git send-email`` also sends the messages to addresses found in the patch's
+tags (e.g. ``Cc: stable@vger.kernel.org``), which would leak the report to a
+public list.
+
+If the report was already sent, the fix may be sent as a reply to it, to the
+same recipients, for example using ``git send-email --suppress-cc=all
+--in-reply-to=<report's Message-ID>``. As a last resort, when none of these
+methods is possible, the file produced by ``git format-patch`` may be attached
+as-is to the report, but be aware that some maintainers will not look at
+attachments. However, never attach more than one patch per message without
+being explicitly invited to so, as this would significantly complicate reviews.
+
+When the fix is meant to be public (e.g. for bugs found using AI-based tools,
+see above), send it using ``git send-email`` to the maintainers and lists
+reported by get_maintainer.pl (i.e. without the ``--no-l`` option), with a
+commit message that does not detail how to exploit the bug. Then send the
+report and the reproducer privately to the maintainers (and to the security
+team when needed), mentioning the patch's Message-ID or its link on
+https://lore.kernel.org/ so that they can be matched. The report may also be
+sent as a reply to the public message, after carefully removing all public
+addresses from the To: and Cc: fields.
+
 After sending the report
 ------------------------
 
-- 
2.52.0
Re: [PATCH v2 05/14] docs: security-bugs: explain how to send a fix that can be applied
#22796
Author: Bagas Sanjaya
Date: Wed, 25 Nov 2026 23:08
47 lines
12759 bytes
--/uqKRyynA7J8RM0T
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 14, 2026 at 08:00:05PM +0100, Willy Tarreau wrote:
> +Most fixes sent along with reports cannot be applied as-is because they =
were
> +damaged by the mailer or lacking a commit message, forcing maintainers t=
o ask
> +for a resend. A fix must be applicable using ``git am``, which is most e=
asily
> +achieved by letting git produce and send the messages (see
> +Documentation/process/submitting-patches.rst).
> +
> +When the fix is meant to only be sent privately, the preferred method is=
 to
> +send the report as a cover letter of a series, followed by the fix::

Documentation/process/submitting-patches.rst guidelines also applies to
privately-sent fixes, no?

> +
> +  $ git format-patch --cover-letter -1
> +  (edit 0000-cover-letter.patch and replace the subject and text with the
> +   report's subject and text)
replace the subject and message body placeholder as appropriate for the rep=
ort

Thanks.

--=20
An old man doll... just what I always wanted! - Clara

--/uqKRyynA7J8RM0T
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCawdqgAAKCRD2uYlJVVFO
o8cvAP0UI4UPI69NykSfDcgis1xBWe2etCvfNQGcwSBb/jIkFAEAk4tq4aFkzzMk
UKJQhOV/RP0fTwz7if/m457ISve37wU=
=72sa
-----END PGP SIGNATURE-----

--/uqKRyynA7J8RM0T--
Re: [PATCH v2 05/14] docs: security-bugs: explain how to send a fix that can be applied
#22798
Author: Willy Tarreau
Date: Wed, 25 Nov 2026 23:11
27 lines
9254 bytes
On Thu, Nov 26, 2026 at 06:08:54AM +0700, Bagas Sanjaya wrote:
> On Sat, Nov 14, 2026 at 08:00:05PM +0100, Willy Tarreau wrote:
> > +Most fixes sent along with reports cannot be applied as-is because they were
> > +damaged by the mailer or lacking a commit message, forcing maintainers to ask
> > +for a resend. A fix must be applicable using ``git am``, which is most easily
> > +achieved by letting git produce and send the messages (see
> > +Documentation/process/submitting-patches.rst).
> > +
> > +When the fix is meant to only be sent privately, the preferred method is to
> > +send the report as a cover letter of a series, followed by the fix::
> 
> Documentation/process/submitting-patches.rst guidelines also applies to
> privately-sent fixes, no?

Yes, why this question ?

> > +
> > +  $ git format-patch --cover-letter -1
> > +  (edit 0000-cover-letter.patch and replace the subject and text with the
> > +   report's subject and text)
> replace the subject and message body placeholder as appropriate for the report

That's a wording detail / preference, not going to respin a series for that!

Thanks,
Willy
Re: [PATCH v2 05/14] docs: security-bugs: explain how to send a fix that can be applied
#22802
Author: Bagas Sanjaya
Date: Wed, 25 Nov 2026 23:36
55 lines
12816 bytes
--Kjo8vLeaeTg8pZ2D
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 26, 2026 at 12:11:58AM +0100, Willy Tarreau wrote:
> On Thu, Nov 26, 2026 at 06:08:54AM +0700, Bagas Sanjaya wrote:
> > On Sat, Nov 14, 2026 at 08:00:05PM +0100, Willy Tarreau wrote:
> > > +Most fixes sent along with reports cannot be applied as-is because t=
hey were
> > > +damaged by the mailer or lacking a commit message, forcing maintaine=
rs to ask
> > > +for a resend. A fix must be applicable using ``git am``, which is mo=
st easily
> > > +achieved by letting git produce and send the messages (see
> > > +Documentation/process/submitting-patches.rst).
> > > +
> > > +When the fix is meant to only be sent privately, the preferred metho=
d is to
> > > +send the report as a cover letter of a series, followed by the fix::
> >=20
> > Documentation/process/submitting-patches.rst guidelines also applies to
> > privately-sent fixes, no?
>=20
> Yes, why this question ?
>=20
> > > +
> > > +  $ git format-patch --cover-letter -1
> > > +  (edit 0000-cover-letter.patch and replace the subject and text wit=
h the
> > > +   report's subject and text)
> > replace the subject and message body placeholder as appropriate for the=
 report
>=20
> That's a wording detail / preference, not going to respin a series for th=
at!

OK, thanks!

--=20
An old man doll... just what I always wanted! - Clara

--Kjo8vLeaeTg8pZ2D
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCawdw7AAKCRD2uYlJVVFO
oy3qAQC4EPhrAXmftWcO+Qjt6IRMGr42yV+tdJa0t7L7OWolnwEAxVxjaT6iGwY7
vDe54HMMZEorAqWYR7Jt1hlwu+PDuA4=
=BL++
-----END PGP SIGNATURE-----

--Kjo8vLeaeTg8pZ2D--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads