mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-26 19:14:18 +00:00
ovl: do not encode lower fh with upper sb_writers held
[ Upstream commit5b02bfc1e7] When lower fs is a nested overlayfs, calling encode_fh() on a lower directory dentry may trigger copy up and take sb_writers on the upper fs of the lower nested overlayfs. The lower nested overlayfs may have the same upper fs as this overlayfs, so nested sb_writers lock is illegal. Move all the callers that encode lower fh to before ovl_want_write(). Signed-off-by: Amir Goldstein <amir73il@gmail.com> Stable-dep-of:c45beebfde("ovl: support encoding fid from inode with no alias") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1e92afe801
commit
26423e18cd
5 changed files with 104 additions and 42 deletions
Loading…
Add table
Add a link
Reference in a new issue