Hugh Dickins wrote: > On Tue, 2 Aug 2005, Martin Schwidefsky wrote: >>With the additional !pte_write(pte) check (and if I haven't overlooked >>something which is not unlikely) s390 should work fine even without the >>software-dirty bit hack. > > > I agree the pte_write check ought to go back in next to the pte_dirty > check, and that will leave s390 handling most uses of get_user_pages > correctly, but still failing to handle the peculiar case of strace > modifying a page to which the user does not currently have write access > (e.g. setting a breakpoint in readonly text). > Oh, here is the patch I sent Linus and forgot to CC everyone else. -- SUSE Labs, Novell Inc.