lguest: check vaddr not pgd for Switcher protection.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Apr 2013 04:40:37 +0000 (14:10 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Apr 2013 06:01:34 +0000 (15:31 +0930)
commit68a644d734e61f38b686cb755bd2a3f43d9372f4
treeea2e4f575463a080cbd426338f3666852ea8919d
parent406a590ba105bfb7b67952f0a5f948e0d374e03e
lguest: check vaddr not pgd for Switcher protection.

We currently assume that the Switcher the top pgd; we want to remove
this assumption, so check that vaddr is OK, rather then checking pgd
index.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/page_tables.c