From: Christian Brauner <brauner@kernel.org>
To: frederic@kernel.org, longman@redhat.com, juri.lelli@redhat.com,
peterz@infradead.org, kees+treewide@kernel.org,
Kunwu Chan <kunwu.chan@gmail.com>
Cc: Christian Brauner <brauner@kernel.org>,
linux-kernel@vger.kernel.org, paulmck@kernel.org
Subject: Re: [PATCH] kthread: Annotate lockless to_kthread() flags access
Date: Fri, 25 Sep 2026 11:34:06 +0200 [thread overview]
Message-ID: <20260925-legieren-eloquent-semester-e4a05b18baa3@brauner> (raw)
In-Reply-To: <20260920070750.2871923-1-kunwu.chan@gmail.com>
On Sun, 20 Sep 2026 15:07:50 +0800, Kunwu Chan wrote:
> do_exit() calls synchronize_group_exit(), which modifies task->flags
> under sighand->siglock:
>
> tsk->flags |= PF_POSTCOREDUMP;
>
> The sanity check in to_kthread() reads the same flags word without
> holding that lock:
>
> [...]
Applied to the vfs-7.4.coredump branch of the vfs/vfs.git tree.
Patches in the vfs-7.4.coredump branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.4.coredump
[1/1] kthread: Annotate lockless to_kthread() flags access
https://git.kernel.org/vfs/vfs/c/fd00a46e36a1
prev parent reply other threads:[~2026-09-25 9:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 7:07 Kunwu Chan
2026-09-20 13:17 ` Bradley Morgan
2026-09-25 9:34 ` Christian Brauner [this message]
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=20260925-legieren-eloquent-semester-e4a05b18baa3@brauner \
--to=brauner@kernel.org \
--cc=frederic@kernel.org \
--cc=juri.lelli@redhat.com \
--cc=kees+treewide@kernel.org \
--cc=kunwu.chan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.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
all inboxes | Powered by JetHome®