[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Possible bug in xenbus __xenbus_switch_state



On 04/12/14 09:40, Andrew Reimers wrote:
> HI,
> 
> Looking at the function __xenbus_switch_state in file 
> source/drivers/xen/xenbus/xenbus_client.c,
> 
> The comment says:
> 
> "We check whether the state is currently set to the given value, and
>          if not, then the state is set."
> 
> The code loads the old state value, but never does anything with it.

It does:

        if (state == dev->state)
                return 0;

The read of the state key is to check it still exists.

   "Furthermore, if the node has gone, we don't write
    to it, as the device will be tearing down, and we don't want to
    resurrect that directory."

David

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.