On Wed, Sep 28, 2005 at 01:59:48PM +0200, Blaisorblade wrote:
> That wasn't the original reason - this is fine too, but as I explained in the 
> other mail, cat /dev/kmem will cause a copy_to_user() with invalid kernel 
> ("from") address. I remember because I discussed this with you at length.

Oh yeah.  I was thinking there was a different (and better) reason, but I
couldn't remember what it was.

Also, my reason isn't that good anyway.  I had a different fix a while ago,
but it got lost somewhere.  I added an arch hook to get_free_pages which
touched each allocated page under the cover of a setjmp.  If a page couldn't
be allocated on the host, then it is put on a "bad pages" list, and another
page is allocated instead.

                                Jeff


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to