diff options
| author | Richard Weinberger <[email protected]> | 2016-09-16 09:45:24 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2016-09-21 14:37:07 +0000 |
| commit | 6a45b3628ce4dcf7498b39c87d475bab6e2a9b24 (patch) | |
| tree | fb203edbc99e09b1c34be42f203704a651530ddf /lib/debugobjects.c | |
| parent | ovl: during copy up, switch to mounter's creds early (diff) | |
| download | kernel-6a45b3628ce4dcf7498b39c87d475bab6e2a9b24.tar.gz kernel-6a45b3628ce4dcf7498b39c87d475bab6e2a9b24.zip | |
ovl: Fix info leak in ovl_lookup_temp()
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 <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: <[email protected]> # v3.18+
Fixes: e9be9d5e76e3 ("overlay filesystem")
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
