Re: [PATCH v3 2.6.39-rc1-tip 12/26] 12: uprobes: slot allocationfor uprobes

From: Roland McGrath
Date: Thu Apr 21 2011 - 12:28:19 EST


> Unrelated note: I'd prefer to see that page be READ+EXEC only once it
> has been mapped into the victim task. Obviously the portion of the code
> that creates this page and sets up the instructions to run is going to
> need write. Maybe this isn't feasible. Maybe this magic pages gets
> written a lot even after it's been mapped in. But I'd rather, if
> possible, know that my victim tasks didn't have a WRITE+EXEC page
> available......

AIUI the page never really needs to be writable in the page tables. It's
never written from user mode. It's only written by kernel code, and that
can use a separate momentary kmap to do its writing.


Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/