]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:22:42 +0000 (09:22 +0100)
commite446442788b2175b638c36ff202d224663d18721
tree12bdf1db79b7d48b2b2fe0cfc39a2b92a9e8b24e
parent53a05ba770de9361a309c75577256755862a259a
drivers: hv: Turn off write permission on the hypercall page

BugLink: http://bugs.launchpad.net/bugs/1673541
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/hv/hv.c