mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
6a45b3628c
The function uses the memory address of a struct dentry as unique id.
While the address-based directory entry is only visible to root it is IMHO
still worth fixing since the temporary name does not have to be a kernel
address. It can be any unique number. Replace it by an atomic integer
which is allowed to wrap around.
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: <stable@vger.kernel.org> # v3.18+
Fixes:
|
||
---|---|---|
.. | ||
copy_up.c | ||
dir.c | ||
inode.c | ||
Kconfig | ||
Makefile | ||
overlayfs.h | ||
readdir.c | ||
super.c |