Re: [PATCH v2 1/2] fcntl: recheck signal permissions before falling back to SIGIO
From: Christian Brauner
Date: Tue Dec 01 2026 - 08:01:35 EST
On Mon, 23 Nov 2026 20:13:38 +0800, Shi Lecun wrote:
> F_SETSIG allows a file owner to request a signal other than SIGIO.
> send_sigio_to_task() checks permission for the configured signal, but
> if queuing fails, it falls back to SIGIO without checking permission
> for the fallback. An LSM can grant different permissions for the two
> signals.
>
> Recheck permission before falling back from a different signal to
> SIGIO. Keep the existing behavior when SIGIO itself has already been
> checked.
>
> [...]
Applied to the vfs-7.5.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.5.misc 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.5.misc
[1/2] fcntl: recheck signal permissions before falling back to SIGIO
https://git.kernel.org/vfs/vfs/c/4e330af637fa
[2/2] apparmor: mediate file-generated signals
https://git.kernel.org/vfs/vfs/c/3b7dbbe4a564