Files
linux/fs
chenying 1bc41e47e0 ovl: fix BUG_ON() in may_delete() when called from ovl_cleanup()
commit 52d5a0c6bd upstream.

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: 01b39dcc95 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-22 11:48:09 +02:00
..
2020-11-05 11:08:53 +01:00
2021-06-30 08:48:14 -04:00
2019-08-06 19:06:51 +02:00
2021-07-20 16:15:46 +02:00
2021-09-22 11:48:02 +02:00
2021-07-20 16:16:03 +02:00
2018-08-17 16:20:28 -07:00
2021-08-04 12:23:45 +02:00
2018-05-22 14:27:52 -04:00
2020-06-22 09:05:01 +02:00
2018-07-03 16:44:45 -04:00
2018-06-05 19:23:26 +02:00
2020-03-05 16:42:12 +01:00
2021-01-30 13:32:11 +01:00
2020-03-25 08:06:14 +01:00
2021-05-22 10:59:50 +02:00
2018-06-11 08:22:34 -07:00