]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lguest: fix out-by-one error in address checking.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 27 May 2015 01:29:26 +0000 (10:59 +0930)
committerZefan Li <lizefan@huawei.com>
Fri, 18 Sep 2015 01:20:43 +0000 (09:20 +0800)
commit99672cc322169dc20ed97adf14a9a66a1ed053e8
tree22eb657dea1f49e355081c6e81481831c9570a9a
parent67ba9818b3e9f2900c14c7d62456acfcca3b0ae1
lguest: fix out-by-one error in address checking.

commit 83a35114d0e4583e6b0ca39502e68b6a92e2910c upstream.

This bug has been there since day 1; addresses in the top guest physical
page weren't considered valid.  You could map that page (the check in
check_gpte() is correct), but if a guest tried to put a pagetable there
we'd check that address manually when walking it, and kill the guest.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/lguest/core.c