]> Git Repo - linux.git/commit
fs/proc/kcore.c: Add bounce buffer for ktext data
authorJiri Olsa <[email protected]>
Thu, 8 Sep 2016 07:57:08 +0000 (09:57 +0200)
committerLinus Torvalds <[email protected]>
Tue, 20 Sep 2016 20:32:49 +0000 (13:32 -0700)
commitdf04abfd181acc276ba6762c8206891ae10ae00d
tree03afe92ae5ef3e51035ab871e0b29742d11eb0d1
parentf5beeb1851ea6f8cfcf2657f26cb24c0582b4945
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 <[email protected]>
Fixes: f5509cc18daa ("mm: Hardened usercopy")
Suggested-by: Kees Cook <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/proc/kcore.c
This page took 0.058161 seconds and 4 git commands to generate.