Re: [PATCH] signal: clear JOBCTL_PENDING_MASK for caller in zap_other_threads()
From: Aleksandr Nogikh
Date: Thu May 21 2026 - 09:14:46 EST
(+Greg)
Hi Christian and Oleg,
Thanks for reviewing and accepting the patch!
However, it seems that we first need to clarify how these types of
patches should be submitted to ensure we don't violate the Linux
kernel rules regarding AI-assisted contributions.
In a discussion under another patch by syzbot [1], Greg noted that
syzbot cannot be listed as the author. The official documentation [2]
isn't very specific about how to handle this exact scenario.
Once we know what changes are needed, we'd be happy to submit a v2
that fully adheres to the rules.
[1] https://lore.kernel.org/all/2026052107-recast-opt-946d@gregkh/
[2] https://docs.kernel.org/process/coding-assistants.html
Best regards,
Aleksandr
On Thu, May 21, 2026 at 2:40 PM 'Christian Brauner' via syzkaller-bugs
<syzkaller-bugs@xxxxxxxxxxxxxxxx> wrote:
>
> On Thu, 21 May 2026 09:05:43 +0000, syzbot wrote:
> > When a multi-threaded process receives a stop signal (e.g., SIGSTOP),
> > do_signal_stop() sets JOBCTL_STOP_PENDING and JOBCTL_STOP_CONSUME on all
> > threads and sets signal->group_stop_count to the number of threads. If
> > one of the threads concurrently calls execve(), de_thread() invokes
> > zap_other_threads() to kill all other threads. zap_other_threads()
> > aborts the pending group stop by resetting signal->group_stop_count to 0
> > and clears the JOBCTL_PENDING_MASK for all other threads. However, it
> > fails to clear the job control flags for the calling thread.
> >
> > [...]
>
> Applied to the vfs.fixes branch of the vfs/vfs.git tree.
> Patches in the vfs.fixes 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.fixes
>
> [1/1] signal: clear JOBCTL_PENDING_MASK for caller in zap_other_threads()
> https://git.kernel.org/vfs/vfs/c/71556f3d55ee
>