Re: [PATCH v4 0/2] kernfs, sysfs: refuse splice on /sys/power/resume

From: Christian Brauner

Date: Wed Nov 18 2026 - 08:30:58 EST


On Mon, 16 Nov 2026 14:39:01 +0100, Krystian Kaniewski wrote:
> This series refuses splice on /sys/power/resume and gives writable
> opens of that file separate lockdep classes, as Tejun suggested in the
> v1 discussion.
>
> The reported cycle is assembled from two operations. Splice into an
> ordinary writable kernfs file records pipe->mutex before of->mutex. A
> normal write to /sys/power/resume records of->mutex before the autofs
> pipe locks when resume_store() resolves a relative path.
>
> [...]

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

[1/2] kernfs, sysfs: add SYSFS_NO_SPLICE to refuse splice
https://git.kernel.org/vfs/vfs/c/0df09178ae40
[2/2] PM: hibernate: refuse splice on /sys/power/resume
https://git.kernel.org/vfs/vfs/c/af5f879f9d4e