Please update page_check_range() (and other related functions) to return -EFAULT instead of EFAULT in case of error.

Moreover, I believe using similar functions as Linux for memory access (copyfromuser, copytouser, get_user, put_user) would be cleaner.

Regards,

Fabrice.

Stuart Anderson wrote:

Here is a refresh of the linux-user EFAULT patch vs todays cvs. This
patch has now received a lot more runtime, and a couple of bug have been
fixed that affected some of the socket APIs.

The purpose of this patch is to detect bad pointers and return EFAULT
instead of just crashing when the bad pointers are used by qemu.


                                Stuart


Reply via email to