]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Mar 2017 02:20:20 +0000 (10:20 +0800)
commit070dfed4d04ef6c18f07a2d147c1be74c8c84f5b
treee1c277718bca3df3fb4d1e2f8a1bf3ba6d8a860b
parent9cafe6bb9aa2584608b4c7e4d8b9ba13e0ff5da1
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