Re: [PATCH 1/2] signal: fix/simplify .si_signo checks in dequeue_synchronous_signal()

From: Christian Brauner

Date: Wed Dec 02 2026 - 08:35:27 EST


On Sun, 29 Nov 2026 15:34:35 +0100, Oleg Nesterov wrote:
> - Use SI_FROMKERNEL() instead of the open-coded check.
>
> - Pre-calculate the unblocked synchronous signal "mask" to avoid
> checking .si_signo twice.
>
> - Use siginmask() instead of sigmask() to avoid shift UB if
> .si_signo >= SIGRTMIN (on 32-bit, or on MIPS where _NSIG is 128).
>
> [...]

Applied to the master branch of the vfs/vfs.git tree.
Patches in the master 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: master

[1/2] signal: fix/simplify .si_signo checks in dequeue_synchronous_signal()
https://git.kernel.org/vfs/vfs/c/3d9b28bf402b
[2/2] signal: explain the still_pending check in dequeue_synchronous_signal()
https://git.kernel.org/vfs/vfs/c/b6801d3e012c