]> git.hungrycats.org Git - linux/commit
drivers: hv: Turn off write permission on the hypercall page
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 9 Feb 2017 01:30:56 +0000 (18:30 -0700)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Mar 2017 20:40:52 +0000 (21:40 +0100)
commit8722bc8f8d7f1ca60b4d8515d717cd780f5d1685
tree253e54d465d9f1009206471c73c0d800ab7353f7
parentb944de66dbd13f80fdb3aa9e8c2d6ea486a10c68
drivers: hv: Turn off write permission on the hypercall page

commit 372b1e91343e657a7cc5e2e2bcecd5140ac28119 upstream.

The hypercall page only needs to be executable but currently it is setup to
be writable as well. Fix the issue.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Acked-by: Kees Cook <keescook@chromium.org>
Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Tested-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/hv/hv.c