Skip to contentSkip to conversation

Documentation/sysctl: coredump: add %F for pidfd number

PATCH Applied Salvatore Bonaccorso 3 participants 5 messages Jun 12, 2025 – Jun 23, 2025 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/sysctl: coredump: add %F for pidfd number

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.

---
 Documentation/admin-guide/sysctl/kernel.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/admin-guide/sysctl/kernel.rst +1 -0
index dd49a89a62d3..f1b2ab219a08 100644
@@ -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
 	========	==========================================
 
Signature · 1 line
2.49.0
#1 lore raw

Hi,

Quoted 18 lines · 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.

---
 Documentation/admin-guide/sysctl/kernel.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index dd49a89a62d3..f1b2ab219a08 100644

Documentation/admin-guide/sysctl/kernel.rst core_pattern · line 182

Quoted 6 lines
Documentation/admin-guide/sysctl/kernel.rst +1 -0
@@ -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

maintainer Applied
#2 lore raw
In reply to Salvatore Bonaccorso
Quoted 4 lines · 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.

Quoted 8 lines

Update the documentation to include the new core_pattern specifier.

---
 Documentation/admin-guide/sysctl/kernel.rst | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Quoted 4 lines

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 [email protected] 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

#3 lore raw

Hi Jonathan,

Quoted 8 lines · Jonathan Corbet
Quoted 6 lines · 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.

Quoted 8 lines
Quoted 6 lines
---
 Documentation/admin-guide/sysctl/kernel.rst | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Thank you!

Quoted 9 lines
Quoted 4 lines

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 [email protected] 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

#4 lore raw
In reply to Salvatore Bonaccorso
Quoted 10 lines · 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.

---

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

Quoted 18 lines
 Documentation/admin-guide/sysctl/kernel.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/admin-guide/sysctl/kernel.rst +1 -0
index dd49a89a62d3..f1b2ab219a08 100644
@@ -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
 	========	==========================================
 
Signature · 1 line
2.49.0