Skip to content

coredump: socket PIDFD+PIDFD_INFO_COREDUMP issues

Laura Brehm linux-fsdevel lkml 1 version Applied

Status from this message: Applied to the vfs.fixes branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2coredump: fix race condition between connect and putting pidfs dentryfs/coredump.c+2 -62 replies
2/2coredump: fix PIDFD_INFO_COREDUMP ioctl checkfs/pidfs.c+1 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] coredump: socket PIDFD+PIDFD_INFO_COREDUMP issues

Preamble: This is my first foray into the kernel mailing list, so
apologies for any blunders - I've tried my best to make sure this is addressed to the right place, and to follow the
appropriate conventions, but I'm likely to miss many.

This set of patches addresses some issues I *think* I've identified with some of the new coredump socket/PIDFD_INFO_COREDUMP ioctl functionality.

There's a reasonable chance that these aren't actual issues - I've tried my best to make sure the error wasn't on my end using these features, and checked the kernel tests for them to make sure I'm not doing anything wrong, but it's definitely still possible since I don't have a lot of experience with the kernel.

I sent these as a PATCH because it seemed the most straightforward way to illustrate the issues I'm mentioning.
They're signed off, so if these do turn out to be actual issues which the included patches address/can address with some changes, I'd like to see them merged.
However,in the likely case the issues I brought up are not real/I'm just doing something wrong, please accept my apologies for the spam.

Laura Brehm (2):
coredump: fix race condition between connect and putting pidfs dentry
coredump: fix PIDFD_INFO_COREDUMP ioctl check

 fs/coredump.c | 8 ++------
 fs/pidfs.c    | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)

base-commit: 66701750d5565c574af42bef0b789ce0203e3071

Signature · 1 line
2.39.5 (Apple Git-154)