* [PATCH] Documentation/sysctl: coredump: add %F for pidfd number @ 2025-06-12 6:02 Salvatore Bonaccorso 2025-06-12 6:52 ` Salvatore Bonaccorso ` (2 more replies) 0 siblings, 3 replies; 5+ messages in thread From: Salvatore Bonaccorso @ 2025-06-12 6:02 UTC (permalink / raw) To: Jonathan Corbet, Christian Brauner Cc: Luca Boccassi, Oleg Nesterov, linux-doc, linux-kernel, Salvatore Bonaccorso In commit b5325b2a270f ("coredump: hand a pidfd to the usermode coredump helper") a new core_pattern specifier, %F, was added to provide a pidfs to the usermode helper process referring to the crashed process. Update the documentation to include the new core_pattern specifier. Link: https://github.com/systemd/systemd/pull/37125 Link: https://lwn.net/Articles/1024160/ Signed-off-by: Salvatore Bonaccorso <carnil@debian.org> --- Documentation/admin-guide/sysctl/kernel.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index dd49a89a62d3..f1b2ab219a08 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -177,6 +177,7 @@ core_pattern %E executable path %c maximum size of core file by resource limit RLIMIT_CORE %C CPU the task ran on + %F pidfd number %<OTHER> both are dropped ======== ========================================== -- 2.49.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation/sysctl: coredump: add %F for pidfd number 2025-06-12 6:02 [PATCH] Documentation/sysctl: coredump: add %F for pidfd number Salvatore Bonaccorso @ 2025-06-12 6:52 ` Salvatore Bonaccorso 2025-06-21 20:18 ` Jonathan Corbet 2025-06-23 11:55 ` Christian Brauner 2 siblings, 0 replies; 5+ messages in thread From: Salvatore Bonaccorso @ 2025-06-12 6:52 UTC (permalink / raw) To: Jonathan Corbet Cc: Christian Brauner, Luca Boccassi, Oleg Nesterov, linux-doc, linux-kernel Hi, On Thu, Jun 12, 2025 at 08:02:04AM +0200, Salvatore Bonaccorso wrote: > In commit b5325b2a270f ("coredump: hand a pidfd to the usermode coredump > helper") a new core_pattern specifier, %F, was added to provide a pidfs > to the usermode helper process referring to the crashed process. > > Update the documentation to include the new core_pattern specifier. > > Link: https://github.com/systemd/systemd/pull/37125 > Link: https://lwn.net/Articles/1024160/ > Signed-off-by: Salvatore Bonaccorso <carnil@debian.org> > --- > Documentation/admin-guide/sysctl/kernel.rst | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst > index dd49a89a62d3..f1b2ab219a08 100644 > --- a/Documentation/admin-guide/sysctl/kernel.rst > +++ b/Documentation/admin-guide/sysctl/kernel.rst > @@ -177,6 +177,7 @@ core_pattern > %E executable path > %c maximum size of core file by resource limit RLIMIT_CORE > %C CPU the task ran on > + %F pidfd number > %<OTHER> both are dropped > ======== ========================================== FWIW, I was not sure if I should add a 'Fixes: b5325b2a270f ("coredump: hand a pidfd to the usermode coredump helper") to make sure that it get backported as well to the series where a backport of b5325b2a270f landed. Regards, Salvatore ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation/sysctl: coredump: add %F for pidfd number 2025-06-12 6:02 [PATCH] Documentation/sysctl: coredump: add %F for pidfd number Salvatore Bonaccorso 2025-06-12 6:52 ` Salvatore Bonaccorso @ 2025-06-21 20:18 ` Jonathan Corbet 2025-06-22 7:06 ` Salvatore Bonaccorso 2025-06-23 11:55 ` Christian Brauner 2 siblings, 1 reply; 5+ messages in thread From: Jonathan Corbet @ 2025-06-21 20:18 UTC (permalink / raw) To: Salvatore Bonaccorso, Christian Brauner Cc: Luca Boccassi, Oleg Nesterov, linux-doc, linux-kernel, Salvatore Bonaccorso Salvatore Bonaccorso <carnil@debian.org> writes: > In commit b5325b2a270f ("coredump: hand a pidfd to the usermode coredump > helper") a new core_pattern specifier, %F, was added to provide a pidfs > to the usermode helper process referring to the crashed process. > > Update the documentation to include the new core_pattern specifier. > > Link: https://github.com/systemd/systemd/pull/37125 > Link: https://lwn.net/Articles/1024160/ > Signed-off-by: Salvatore Bonaccorso <carnil@debian.org> > --- > Documentation/admin-guide/sysctl/kernel.rst | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. > FWIW, I was not sure if I should add a 'Fixes: b5325b2a270f > ("coredump: hand a pidfd to the usermode coredump helper") to make > sure that it get backported as well to the series where a backport of > b5325b2a270f landed. A Fixes tag is not sufficient to ensure that a patch is backported to previous kernels - you must CC stable@vger.kernel.org to be sure. In this case, it's a documentation tweak for a 6.16 change, so I don't think there is a lot of urgency here. Thanks, jon ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation/sysctl: coredump: add %F for pidfd number 2025-06-21 20:18 ` Jonathan Corbet @ 2025-06-22 7:06 ` Salvatore Bonaccorso 0 siblings, 0 replies; 5+ messages in thread From: Salvatore Bonaccorso @ 2025-06-22 7:06 UTC (permalink / raw) To: Jonathan Corbet Cc: Christian Brauner, Luca Boccassi, Oleg Nesterov, linux-doc, linux-kernel Hi Jonathan, On Sat, Jun 21, 2025 at 02:18:38PM -0600, Jonathan Corbet wrote: > Salvatore Bonaccorso <carnil@debian.org> writes: > > > In commit b5325b2a270f ("coredump: hand a pidfd to the usermode coredump > > helper") a new core_pattern specifier, %F, was added to provide a pidfs > > to the usermode helper process referring to the crashed process. > > > > Update the documentation to include the new core_pattern specifier. > > > > Link: https://github.com/systemd/systemd/pull/37125 > > Link: https://lwn.net/Articles/1024160/ > > Signed-off-by: Salvatore Bonaccorso <carnil@debian.org> > > --- > > Documentation/admin-guide/sysctl/kernel.rst | 1 + > > 1 file changed, 1 insertion(+) > > Applied, thanks. Thank you! > > FWIW, I was not sure if I should add a 'Fixes: b5325b2a270f > > ("coredump: hand a pidfd to the usermode coredump helper") to make > > sure that it get backported as well to the series where a backport of > > b5325b2a270f landed. > > A Fixes tag is not sufficient to ensure that a patch is backported to > previous kernels - you must CC stable@vger.kernel.org to be sure. In > this case, it's a documentation tweak for a 6.16 change, so I don't > think there is a lot of urgency here. Ack (apart the change did land in variou stable series, i.e. b5325b2a270f ("coredump: hand a pidfd to the usermode coredump helper") did land in 6.16-rc1 *and* the stable versions v6.15.1, v6.14.10, v6.12.32, v6.6.93, v6.1.141, v5.15.185, v5.10.238 and v5.4.294. You are right it is not urgent, would be more to have documentation consistent as well in those versions. Regards, Salvatore ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation/sysctl: coredump: add %F for pidfd number 2025-06-12 6:02 [PATCH] Documentation/sysctl: coredump: add %F for pidfd number Salvatore Bonaccorso 2025-06-12 6:52 ` Salvatore Bonaccorso 2025-06-21 20:18 ` Jonathan Corbet @ 2025-06-23 11:55 ` Christian Brauner 2 siblings, 0 replies; 5+ messages in thread From: Christian Brauner @ 2025-06-23 11:55 UTC (permalink / raw) To: Salvatore Bonaccorso Cc: Jonathan Corbet, Luca Boccassi, Oleg Nesterov, linux-doc, linux-kernel On Thu, Jun 12, 2025 at 08:02:04AM +0200, Salvatore Bonaccorso wrote: > In commit b5325b2a270f ("coredump: hand a pidfd to the usermode coredump > helper") a new core_pattern specifier, %F, was added to provide a pidfs > to the usermode helper process referring to the crashed process. > > Update the documentation to include the new core_pattern specifier. > > Link: https://github.com/systemd/systemd/pull/37125 > Link: https://lwn.net/Articles/1024160/ > Signed-off-by: Salvatore Bonaccorso <carnil@debian.org> > --- Thanks! Just throwing a random thought out there: It would be nice if we could optionally create a connection between a source code path/file and the documentation directory/file in Documentation. For example, coredump stuff is documented in Documentation/admin-guide/sysctl/kernel.rst so there could be a line to that effect in fs/coredump.c and it creates a warning if that file is removed. Maybe that's dumb but it certainly would help to not miss such updates in the future. Christian > Documentation/admin-guide/sysctl/kernel.rst | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst > index dd49a89a62d3..f1b2ab219a08 100644 > --- a/Documentation/admin-guide/sysctl/kernel.rst > +++ b/Documentation/admin-guide/sysctl/kernel.rst > @@ -177,6 +177,7 @@ core_pattern > %E executable path > %c maximum size of core file by resource limit RLIMIT_CORE > %C CPU the task ran on > + %F pidfd number > %<OTHER> both are dropped > ======== ========================================== > > -- > 2.49.0 > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-23 11:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-06-12 6:02 [PATCH] Documentation/sysctl: coredump: add %F for pidfd number Salvatore Bonaccorso 2025-06-12 6:52 ` Salvatore Bonaccorso 2025-06-21 20:18 ` Jonathan Corbet 2025-06-22 7:06 ` Salvatore Bonaccorso 2025-06-23 11:55 ` Christian Brauner
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).