Re: [PATCH v9] vfs, security: Fix automount superblock LSM init problem, preventing NFS sb sharing

From: Christian Brauner
Date: Thu Aug 10 2023 - 06:04:14 EST


On Tue, 08 Aug 2023 07:34:20 -0400, Jeff Layton wrote:
> When NFS superblocks are created by automounting, their LSM parameters
> aren't set in the fs_context struct prior to sget_fc() being called,
> leading to failure to match existing superblocks.
>
> This bug leads to messages like the following appearing in dmesg when
> fscache is enabled:
>
> [...]

I'm stuffing this on vfs.misc because this should be in -next for some
time. If there's objections let me know.

---

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

[1/1] vfs, security: Fix automount superblock LSM init problem, preventing NFS sb sharing
https://git.kernel.org/vfs/vfs/c/4b4fb74b1aa1