From: Keir Fraser Subject: Re: possible pciback security issue Date: Thu, 4 May 2006 15:13:00 +0100 Message-ID: <81b7846467867b60e73c3b1153a33dcd@cl.cam.ac.uk> References: <445A165E.76E4.0078.0@novell.com> <0331731c2398612565af27030b0638f9@cl.cam.ac.uk> <445A26FA.76E4.0078.0@novell.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <445A26FA.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 4 May 2006, at 15:08, Jan Beulich wrote: >>> Having looked more closely into what would be needed to enable MSI >>> support I stumbled across a simple question: If a >>> domU is granted access to an MSI-capable device, it could maliciously >>> or erroneously enable MSI on that device and >>> program an arbitrary vector to be delivered, or even force the >>> message >>> address and/or value to something that might make >>> the system misbehave/crash. >>> It would seem to me that filtering only a few header fields is >>> insufficient from a security point of view, not only >>> from the perspective of MSI. While this may severely limit >>> functionality, I think by default only read access must be >>> granted to any fields/bits of unknown meaning (namely everything >>> outside the header). >> >> That *is* the default. > > Oh, sorry, I missed the permissive flag. Ryan's putting together a story on device-specific PCI config-space access filtering, to avoid needing to set the permissive flag for as many common devices as possible. As for the particular example of MSI -- I think pciback will set up that field as part of device handoff when booting a driver domain. Then it should not be necessary for the driver domain to touch the MSI PCI config field at all. We should probably explicitly disable access to that field, even when permissive mode is enabled. -- Keir