keys: Remove outdated __user annotations
authorJann Horn <jannh@google.com>
Mon, 23 Nov 2020 23:54:00 +0000 (00:54 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 21 Jan 2021 16:16:08 +0000 (16:16 +0000)
commit796e46f9e2cb2d823578044598ee8fe77f86e3f7
tree02fceb3b8718767bf4a4b5c2e40e102fb5b5c514
parent634c21bb9867e06221ee1527c5e157e01cd7712c
keys: Remove outdated __user annotations

When the semantics of the ->read() handlers were changed such that "buffer"
is a kernel pointer, some __user annotations survived.
Since they're wrong now, get rid of them.

Fixes: d3ec10aa9581 ("KEYS: Don't write out to userspace while holding key semaphore")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Ben Boeckel <mathstuf@gmail.com>
security/keys/keyring.c