The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Laura Brehm <laurajfbrehm@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Laura Brehm <laurabrehm@hey.com>
Subject: [PATCH 0/2] coredump: socket PIDFD+PIDFD_INFO_COREDUMP issues
Date: Thu,  3 Jul 2025 14:02:42 +0200	[thread overview]
Message-ID: <20250703120244.96908-1-laurabrehm@hey.com> (raw)

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
-- 
2.39.5 (Apple Git-154)


             reply	other threads:[~2025-07-03 12:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-03 12:02 Laura Brehm [this message]
2025-07-03 12:02 ` [PATCH 1/2] coredump: fix race condition between connect and putting pidfs dentry Laura Brehm
2025-07-04  8:51   ` Christian Brauner
2025-07-04 10:40     ` [PATCH 1/2] coredump: fix race condition between connect and Laura Brehm
2025-07-03 12:02 ` [PATCH 2/2] coredump: fix PIDFD_INFO_COREDUMP ioctl check Laura Brehm
2025-07-04  8:57   ` (subset) " Christian Brauner
2025-07-04  8:57   ` Christian Brauner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250703120244.96908-1-laurabrehm@hey.com \
    --to=laurajfbrehm@gmail.com \
    --cc=laurabrehm@hey.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox