Skip to content
Commit cdb67279 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: lookup whiteouts outside iterate_dir()



If jffs2 can deadlock on overlayfs readdir because it takes the same lock
on ->iterate() as in ->lookup().

Fix by moving whiteout checking outside iterate_dir().  Optimized by
collecting potential whiteouts (DT_CHR) in a temporary list and if
non-empty iterating throug these and checking for a 0/0 chardev.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Fixes: 49c21e1c ("ovl: check whiteout while reading directory")
Reported-by: default avatarRoman Yeryomin <leroi.lists@gmail.com>
parent 7c03b5d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment