• Nick Piggin's avatar
    fs: fix dropping of rcu-walk from force_reval_path · 90dbb77b
    Nick Piggin authored
    As J. R. Okajima noted, force_reval_path passes in the same dentry to
    d_revalidate as the one in the nameidata structure (other callers pass in a
    child), so the locking breaks. This can oops with a chrooted nfs mount, for
    example. Similarly there can be other problems with revalidating a dentry
    which is already in nameidata of the path walk.
    Signed-off-by: default avatarNick Piggin <npiggin@kernel.dk>
    90dbb77b
namei.c 83.5 KB