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

Re: [Xen-devel] ARM fixes for my improved privcmd patch.



On Wed, 2012-12-19 at 12:10 +0000, Mats Petersson wrote:

> >> +                  only likely to return EFAULT or some other "things are 
> >> very
> >> +                  bad" error code, which the rest of the calling code 
> >> won't
> >> +                  be able to fix up. So we just exit with the error we 
> >> got.
> > It expect it is more important to accumulate the individual errors from
> > remap_pte_fn into err_ptr.
> Yes, but since that exits on error with EFAULT, the calling code won't 
> "accept" the errors, and thus the whole house of cards fall apart at 
> this point.
> 
> There should probably be a task to fix this up properly, hence the 
> comment. But right now, any error besides ENOENT is "unacceptable" by 
> the callers of this code. If you want me to add this to the comment, I'm 
> happy to. But as long as remap_pte_fn returns EFAULT on error, nothing 
> will work after an error.

Are you sure? privcmd.c has some special casing for ENOENT but it looks
like it should just pass through other errors back to userspace.

In any case surely this needs fixing?

On the X86 side err_ptr is the result of the mmupdate hypercall which
can already be other than ENOENT, including EFAULT, ESRCH etc.

Ian.


_______________________________________________
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®.