All of lore.kernel.org
 help / color / mirror / Atom feed
* KVM device assignment and user privileges
@ 2011-11-20 14:58 Sasha Levin
  2011-11-20 15:15 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2011-11-20 14:58 UTC (permalink / raw)
  To: kvm

Hi all,

I've been working on adding device assignment to KVM tools, and started
with the basics of just getting a device assigned using the
KVM_ASSIGN_PCI_DEVICE ioctl.

What I've figured is that unprivileged users can request any PCI device
to be assigned to him, including devices which he shouldn't be touching.

In my case, it happened with the VGA card, where an unprivileged user
simply called KVM_ASSIGN_PCI_DEVICE with the bus, seg and fn of the VGA
card and caused the display on the host to go apeshit.

Was it supposed to work this way? I couldn't find any security checks in
the code paths of KVM_ASSIGN_PCI_DEVICE and it looks like any user can
invoke it with any parameters he'd want - enabling him to kill the host.

-- 

Sasha.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-21  8:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-20 14:58 KVM device assignment and user privileges Sasha Levin
2011-11-20 15:15 ` Avi Kivity
2011-11-21  4:42   ` Chris Wright
2011-11-21  8:32     ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.