Re: [PATCH v10 2/4] uprobe: use original page when all uprobes are removed

2019-07-30 Thread Oleg Nesterov
On 07/29, Song Liu wrote: > > This patch allows uprobe to use original page when possible (all uprobes > on the page are already removed). Again, the changelog is not 100% accurate. all uprobes removed _and_ the original page is in page cache and uptodate. Otherwise looks correct... Oleg.

[PATCH v10 2/4] uprobe: use original page when all uprobes are removed

2019-07-29 Thread Song Liu
Currently, uprobe swaps the target page with a anonymous page in both install_breakpoint() and remove_breakpoint(). When all uprobes on a page are removed, the given mm is still using an anonymous page (not the original page). This patch allows uprobe to use original page when possible (all uprobe