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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Mar 2017 02:02:52 +0000 (10:02 +0800)
commit182ff0ebbdab926578728784299cc9d9c195d515
treef944c534d5705f4b31f0193d695d2356e2625557
parent63e873679ba99649bf22cc7b964315591cedf4c5
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv.c