Skip to contentSkip to conversation

vfs fix

GIT PULL Al Viro 1 participant 1 message May 31, 2015 VFS

lore
Share & tools
lore

Al Viro

author maintainer
#0 lore raw

Off-by-one in d_walk()/__dentry_kill() race fix. It's very hard to hit; possible in the same conditions as the original bug, except that you need the skipped branch to contain all the remaining evictables, so that the d_walk()-calling loop in d_invalidate() decides there's nothing more to do and doesn't go for another pass - otherwise that next pass will sweep the sucker. So it's not too urgent, but seeing that the fix is obvious and the original commit has spread into all -stable branches... Please, pull from

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-linus

Shortlog:
Al Viro (1):
d_walk() might skip too much

Diffstat:

 fs/dcache.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)