[Top][All Lists]

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

Re: [Qemu-devel] [PATCH] linux-user EFAULT implementation

From: Fabrice Bellard
Subject: Re: [Qemu-devel] [PATCH] linux-user EFAULT implementation
Date: Fri, 06 Jul 2007 18:08:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1

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.



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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]