From: Keir Fraser Subject: Re: [PATCH] xenstored: allow guests to reintroduce themselves Date: Tue, 09 Aug 2011 12:00:07 +0100 Message-ID: References: <4E411107.20103@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4E411107.20103@eu.citrix.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: Vincent Hanquez Cc: Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 09/08/2011 11:50, "Vincent Hanquez" wrote: > On 08/09/2011 11:14 AM, Keir Fraser wrote: >> On 09/08/2011 11:08, "Vincent Hanquez" >> wrote: >> >>>> xenstored: allow guests to reintroduce themselves >>>> >>>> During kexec all old watches have to be removed, otherwise the new >>>> kernel will receive unexpected events. Allow a guest to introduce itself >>>> and cleanup all of its watches. >>> >>> What about security wise ? >>> >>> Guest userspace suddenly becomes able to do this operation (and DoS >>> themself) >>> where they used to be limited to normal read/write/.. operations. >> >> Guest userspace can already DoS the guest if it has access to xenstore, by >> messing with xenbus I/O connections, for example. > > How so ? > It seems we validate userspace packets (at least on linux) before actually > putting them on the ring. I don't believe we filter which nodes can be written by userspace. So can just mess with things like the frontend connection state node for block/network connections, or whatever. Be imaginative -- there's no doubt lots of scope for screwing up xenbus connections by fooling around with the frontend state. If userspace connections to xenbus were not trusted, we'd need a lot more filtering than we have. -- Keir