Messages in this thread | | | Subject | Re: ptrace and pfn mappings | From | Benjamin Herrenschmidt <> | Date | Tue, 10 Oct 2006 13:42:55 +1000 |
| |
> Hold your per-object lock? I'm not talking about using mmap_sem for > migration, but the per-object lock in access_process_vm. I thought > this prevented migration?
As I said in my previous mail. access_process_vm() is a generic function called by ptrace, it has 0 knowledge of the internal locking scheme of a driver providing a nopage/nopfn for a vma.
> OK, just do one pfn at a time. For ptrace that is fine. access_process_vm > already copies from source into kernel buffer, then kernel buffer into > target.
Even one pfn at a time ... the only way would be if we also took the PTE lock during the copy in fact. That's the only lock that would provide that same guarantees as an access I think.
Ben.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |