From: patchwork-bot+netdevbpf@kernel.org
To: Sechang Lim <rhkrqnwk98@gmail.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com,
martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev,
jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev,
yatsenko@meta.com
Subject: Re: [PATCH bpf] bpf: Reject kernel threads in bpf_task_work_schedule()
Date: Thu, 26 Nov 2026 20:50:06 +0000 [thread overview]
Message-ID: <179572620625.612301.17016453928319997896.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261126053016.1145482-1-rhkrqnwk98@gmail.com>
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Thu, 26 Nov 2026 05:30:06 +0000 you wrote:
> bpf_task_work_schedule_signal() on a kernel thread sets
> TIF_NOTIFY_SIGNAL, but the thread never returns to user space, so
> nothing clears it and signal_pending() stays true. Interruptible sleeps
> in the thread return immediately.
>
> For kthreadd this means spinning at 100% CPU. io_ring_exit_work() waits
> on ctx->ref_comp interruptibly, assuming a kworker gets no signals. If a
> prog running in that kworker schedules task work on current, the wait
> returns -ERESTARTSYS and the ctx is freed while ctx->refs is still
> switching to atomic:
>
> [...]
Here is the summary with links:
- [bpf] bpf: Reject kernel threads in bpf_task_work_schedule()
https://git.kernel.org/bpf/bpf/c/3c625090b46b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-11-26 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 5:30 [PATCH bpf] bpf: Reject kernel threads in bpf_task_work_schedule() Sechang Lim
2026-11-26 5:40 ` sashiko-bot
2026-11-26 20:50 ` patchwork-bot+netdevbpf [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=179572620625.612301.17016453928319997896.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=ihor.solodrai@linux.dev \
--cc=jolsa@kernel.org \
--cc=martin.lau@linux.dev \
--cc=memxor@gmail.com \
--cc=rhkrqnwk98@gmail.com \
--cc=song@kernel.org \
--cc=yatsenko@meta.com \
--cc=yonghong.song@linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.