diff options
author | chenying <chenying.kernel@bytedance.com> | 2021-08-16 12:02:56 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2021-08-17 17:37:53 +0200 |
commit | 52d5a0c6bd8a89f460243ed937856354f8f253a3 (patch) | |
tree | 3768f7f260041199ccabbab03f0fc6a37dfbadd2 /fs/bad_inode.c | |
parent | ovl: use kvalloc in xattr copy-up (diff) | |
download | linux-52d5a0c6bd8a89f460243ed937856354f8f253a3.tar.xz linux-52d5a0c6bd8a89f460243ed937856354f8f253a3.zip |
ovl: fix BUG_ON() in may_delete() when called from ovl_cleanup()
If function ovl_instantiate() returns an error, ovl_cleanup will be called
and try to remove newdentry from wdir, but the newdentry has been moved to
udir at this time. This will causes BUG_ON(victim->d_parent->d_inode !=
dir) in fs/namei.c:may_delete.
Signed-off-by: chenying <chenying.kernel@bytedance.com>
Fixes: 01b39dcc9568 ("ovl: use inode_insert5() to hash a newly created inode")
Link: https://lore.kernel.org/linux-unionfs/e6496a94-a161-dc04-c38a-d2544633acb4@bytedance.com/
Cc: <stable@vger.kernel.org> # v4.18
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions