lguest: fix BUG_ON() in invalid guest page table.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Sep 2013 08:15:39 +0000 (17:45 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Sep 2013 22:39:26 +0000 (08:09 +0930)
commit4623c28e222d82f87537ef66db61ebcfbd8306db
tree7a117043008ff4bd15b5cf8b7baf7e074c1dccba
parent3b868a4073cdedf395f26d843874414e0e0e9cfd
lguest: fix BUG_ON() in invalid guest page table.

If we discover the entry is invalid, we kill the guest, but we must
avoid calling gpte_addr() on the invalid pmd, otherwise:

kernel BUG at drivers/lguest/page_tables.c:157!

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