diff options
| author | NeilBrown <[email protected]> | 2025-11-28 01:22:35 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-11-28 09:42:32 +0000 |
| commit | e9c70084a64e51b65bb68f810692a03dc8bedffa (patch) | |
| tree | c60df6e8d321623c713abde42894ee7ebf8e701b /net/unix/af_unix.c | |
| parent | fs/namespace: fix reference leak in grab_requested_mnt_ns (diff) | |
| download | kernel-e9c70084a64e51b65bb68f810692a03dc8bedffa.tar.gz kernel-e9c70084a64e51b65bb68f810692a03dc8bedffa.zip | |
ovl: fail ovl_lock_rename_workdir() if either target is unhashed
As well as checking that the parent hasn't changed after getting the
lock we need to check that the dentry hasn't been unhashed.
Otherwise we might try to rename something that has been removed.
Reported-by: [email protected]
Fixes: d2c995581c7c ("ovl: Call ovl_create_temp() without lock held.")
Signed-off-by: NeilBrown <[email protected]>
Link: https://patch.msgid.link/[email protected]
Tested-by: [email protected]
Reviewed-by: Amir Goldstein <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
