diff options
author | Kees Cook <keescook@chromium.org> | 2018-03-27 14:06:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-28 13:23:54 +0200 |
commit | b5b38200ebe54879a7264cb6f33821f61c586a7e (patch) | |
tree | 80880ee96abcb2a7ce8edbdca6de36d224998157 /drivers/hv/ring_buffer.c | |
parent | b24d0d5b12a678b96676348976982686fbe222b4 (diff) | |
download | linux-stable-b5b38200ebe54879a7264cb6f33821f61c586a7e.tar.gz linux-stable-b5b38200ebe54879a7264cb6f33821f61c586a7e.tar.bz2 linux-stable-b5b38200ebe54879a7264cb6f33821f61c586a7e.zip |
/dev/mem: Avoid overwriting "err" in read_mem()
Successes in probe_kernel_read() would mask failures in copy_to_user()
during read_mem().
Reported-by: Brad Spengler <spender@grsecurity.net>
Fixes: 22ec1a2aea73 ("/dev/mem: Add bounce buffer for copy-out")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions