diff options
| author | Maxim Patlasov <[email protected]> | 2016-07-22 01:24:26 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2016-07-22 08:54:20 +0000 |
| commit | cfc9fde0b07c3b44b570057c5f93dda59dca1c94 (patch) | |
| tree | 7f36d4f2a49719673c436767707d25ef5f5e9041 /net/tipc/node.c | |
| parent | ovl: Copy up underlying inode's ->i_mode to overlay inode (diff) | |
| download | kernel-cfc9fde0b07c3b44b570057c5f93dda59dca1c94.tar.gz kernel-cfc9fde0b07c3b44b570057c5f93dda59dca1c94.zip | |
ovl: verify upper dentry in ovl_remove_and_whiteout()
The upper dentry may become stale before we call ovl_lock_rename_workdir.
For example, someone could (mistakenly or maliciously) manually unlink(2)
it directly from upperdir.
To ensure it is not stale, let's lookup it after ovl_lock_rename_workdir
and and check if it matches the upper dentry.
Essentially, it is the same problem and similar solution as in
commit 11f3710417d0 ("ovl: verify upper dentry before unlink and rename").
Signed-off-by: Maxim Patlasov <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
