Re: [Qemu-devel] generating EFAULT in linux-user

2007-03-23 Thread Stuart Anderson
Here is an updated patch that show more of the changes that are needed to detect EFAULT situations in linux-user. The areas I focused on are the socket, semaphore, and message queue family of syscalls as they all make interesting use of pointers to structures. This patch does sit on top of the

[Qemu-devel] generating EFAULT in linux-user

2007-03-22 Thread Stuart Anderson
With a little help from Paul yesterday, I was able to come up with a scheme for detecting bad pointers passed to system calls in linux-user mode. This is used to return EFAULT as would be done on a real kernel. The attached patch is very preliminary, but shows how it can be done. I'm sending it