]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lguest: fix spurious BUG_ON() on invalid guest stack.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 01:55:04 +0000 (01:55 +0000)
committerChris Wright <chrisw@sous-sol.org>
Thu, 2 Apr 2009 20:55:19 +0000 (13:55 -0700)
commit4d25e3d0370354092b04aa338df14fb0b4c63331
tree27166114a01c481b4132e45f10f4c7dbf05155ab
parentab624168973480d92c844cc6c46f97d85bedd91c
lguest: fix spurious BUG_ON() on invalid guest stack.

upstream commit: 6afbdd059c27330eccbd85943354f94c2b83a7fe

Impact: fix crash on misbehaving guest

gpte_addr() contains a BUG_ON(), insisting that the present flag is
set.  We need to return before we call it if that isn't the case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/lguest/page_tables.c