mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
configfs: fix lockless traversals of ->s_children
[ Upstream commit9b9e8bb81c] Having the parent directory locked protects entries from removal by another thread, but it does *not* protect cursors from being moved around by lseek() - or freed, for that matter. Fixes:6f61076406("configfs: Introduce configfs_dirent_lock") Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7865a1bfd2
commit
91f289728e
1 changed files with 41 additions and 13 deletions
Loading…
Add table
Add a link
Reference in a new issue