]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: be paranoid about guest playing with device descriptors.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 13 Jun 2009 04:26:58 +0000 (22:26 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 12:56:59 +0000 (22:26 +0930)
commitb8476d3afdb3826151306038b56d14ccbd0bdd16
tree9b6a01f00bf4aee60548d8b8cf38458863888564
parent64e0744da44d0169f5f7393466a487140846550f
lguest: be paranoid about guest playing with device descriptors.

We can't trust the values in the device descriptor table once the
guest has booted, so keep local copies.  They could set them to
strange values then cause us to segv (they're 8 bit values, so they
can't make our pointers go too wild).

This becomes more important with the following patches which read them.

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