[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251128-vfs-coredump-v619-c8892d7188f7@brauner>
Date: Fri, 28 Nov 2025 17:48:17 +0100
From: Christian Brauner <brauner@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Christian Brauner <brauner@...nel.org>,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [GIT PULL 06/17 for v6.19] vfs coredump
Hey Linus,
/* Summary */
This contains the pidfd changes for this cycle.
Features
- Expose Coredump Signal via pidfd
Expose the signal that caused the coredump through the pidfd interface.
The recent changes to rework coredump handling to rely on unix sockets
are in the process of being used in systemd. The previous systemd
coredump container interface requires the coredump file descriptor and
basic information including the signal number to be sent to the container.
This means the signal number needs to be available before sending the
coredump to the container.
- Add supported_mask Field to pidfd
Add a new supported_mask field to struct pidfd_info that indicates which
information fields are supported by the running kernel. This allows
userspace to detect feature availability without relying on error codes
or kernel version checks.
Cleanups
- Drop struct pidfs_exit_info and prepare to drop exit_info pointer,
simplifying the internal publication mechanism for exit and coredump
information retrievable via the pidfd ioctl.
- Use guard() for task_lock in pidfs.
- Reduce wait_pidfd lock scope.
- Add missing PIDFD_INFO_SIZE_VER1 constant.
- Add missing BUILD_BUG_ON() assert on struct pidfd_info.
Fixes
- Fix PIDFD_INFO_COREDUMP handling.
Selftests
- Split out coredump socket tests and common helpers into separate files
for better organization.
- Fix userspace coredump client detection issues.
- Handle edge-triggered epoll correctly.
- Ignore ENOSPC errors in tests.
- Add debug logging to coredump socket tests, socket protocol tests,
and test helpers.
- Add tests for PIDFD_INFO_COREDUMP_SIGNAL.
- Add tests for supported_mask field.
- Update pidfd header for selftests.
/* Testing */
gcc (Debian 14.2.0-19) 14.2.0
Debian clang version 19.1.7 (3+b1)
No build failures or warnings were observed.
/* Conflicts */
Merge conflicts with mainline
=============================
No known conflicts.
Merge conflicts with other trees
================================
The following changes since commit 3a8660878839faadb4f1a6dd72c3179c1df56787:
Linux 6.18-rc1 (2025-10-12 13:42:36 -0700)
are available in the Git repository at:
git@...olite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.19-rc1.coredump
for you to fetch changes up to 390d967653e17205f0e519f691b7d6be0a05ff45:
pidfs: reduce wait_pidfd lock scope (2025-11-05 00:09:06 +0100)
Please consider pulling these changes from the signed vfs-6.19-rc1.coredump tag.
Thanks!
Christian
----------------------------------------------------------------
vfs-6.19-rc1.coredump
----------------------------------------------------------------
Christian Brauner (24):
pidfs: use guard() for task_lock
pidfs: fix PIDFD_INFO_COREDUMP handling
pidfs: add missing PIDFD_INFO_SIZE_VER1
pidfs: add missing BUILD_BUG_ON() assert on struct pidfd_info
pidfd: add a new supported_mask field
pidfs: prepare to drop exit_info pointer
pidfs: drop struct pidfs_exit_info
pidfs: expose coredump signal
selftests/pidfd: update pidfd header
selftests/pidfd: add first supported_mask test
selftests/pidfd: add second supported_mask test
selftests/coredump: split out common helpers
selftests/coredump: split out coredump socket tests
selftests/coredump: fix userspace client detection
selftests/coredump: fix userspace coredump client detection
selftests/coredump: handle edge-triggered epoll correctly
selftests/coredump: add debug logging to test helpers
selftests/coredump: add debug logging to coredump socket tests
selftests/coredump: add debug logging to coredump socket protocol tests
selftests/coredump: ignore ENOSPC errors
selftests/coredump: add first PIDFD_INFO_COREDUMP_SIGNAL test
selftests/coredump: add second PIDFD_INFO_COREDUMP_SIGNAL test
Merge patch series "coredump: cleanups & pidfd extension"
pidfs: reduce wait_pidfd lock scope
fs/pidfs.c | 113 +-
include/uapi/linux/pidfd.h | 11 +-
tools/testing/selftests/coredump/.gitignore | 4 +
tools/testing/selftests/coredump/Makefile | 8 +-
.../coredump/coredump_socket_protocol_test.c | 1568 ++++++++++++++++++
.../selftests/coredump/coredump_socket_test.c | 742 +++++++++
tools/testing/selftests/coredump/coredump_test.h | 59 +
.../selftests/coredump/coredump_test_helpers.c | 383 +++++
tools/testing/selftests/coredump/stackdump_test.c | 1662 +-------------------
tools/testing/selftests/pidfd/pidfd.h | 15 +-
tools/testing/selftests/pidfd/pidfd_info_test.c | 73 +
11 files changed, 2927 insertions(+), 1711 deletions(-)
create mode 100644 tools/testing/selftests/coredump/.gitignore
create mode 100644 tools/testing/selftests/coredump/coredump_socket_protocol_test.c
create mode 100644 tools/testing/selftests/coredump/coredump_socket_test.c
create mode 100644 tools/testing/selftests/coredump/coredump_test.h
create mode 100644 tools/testing/selftests/coredump/coredump_test_helpers.c
Powered by blists - more mailing lists