Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b5b38200 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman
Browse files

/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: default avatarBrad Spengler <spender@grsecurity.net>
Fixes: 22ec1a2a ("/dev/mem: Add bounce buffer for copy-out")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b24d0d5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment