qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/9] linux-user: Add is_write segfault check for


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH 2/9] linux-user: Add is_write segfault check for ARM hosts
Date: Sat, 6 Jul 2013 12:28:07 +0200

On 06.07.2013, at 12:24, Peter Maydell wrote:

> On 6 July 2013 01:36, Alexander Graf <address@hidden> wrote:
>> When we get a segmentation fault we check whether the fault was a write. If
>> it was a write, it might be a fault because we tried to modify a code region.
>> 
>> This logic does not work on ARM hosts, because they don't evaluate whether a
>> segementation fault is due to a write. Instead they always declare it a read.
>> 
>> So self modifying code fails with a segmentation fault whenever it tries to
>> modify itself.
>> 
>> Add the is_write evaluation based on what the kernel tells us as fault 
>> reason.
>> 
>> Signed-off-by: Alexander Graf <address@hidden>
> 
> We've already got a patch for this on list :
> http://patchwork.ozlabs.org/patch/248590/

Ah, seems like we wrote both patches at about the same time. I prefer yours 
though - it has a nice comment going with it :).


Alex




reply via email to

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