Files
linux/fs
Jiri Olsa c7642969a5 UPSTREAM: fs/proc/kcore.c: Add bounce buffer for ktext data
We hit hardened usercopy feature check for kernel text access by reading
kcore file:

  usercopy: kernel memory exposure attempt detected from ffffffff8179a01f (<kernel text>) (4065 bytes)
  kernel BUG at mm/usercopy.c:75!

Bypassing this check for kcore by adding bounce buffer for ktext data.

Reported-by: Steve Best <sbest@redhat.com>
Fixes: f5509cc18d ("mm: Hardened usercopy")
Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Bug: 31374226
Change-Id: Ic93e6041b67d804a994518bf4950811f828b406e
(cherry picked from commit df04abfd18)
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2016-10-05 08:09:43 -07:00
..
2015-06-30 19:44:57 -07:00
2015-06-23 18:02:01 -04:00
2015-06-25 17:00:42 -07:00
2015-04-11 22:29:40 -04:00
2015-11-13 20:34:33 -05:00
2015-11-23 21:11:08 -05:00
2014-11-19 13:01:20 -05:00
2015-11-16 23:54:45 -08:00
2016-03-24 10:32:35 -07:00
2015-11-11 02:18:27 -05:00
2015-08-12 15:28:45 -05:00
2014-08-26 09:35:56 +02:00
2015-11-13 20:34:33 -05:00