Re: [PATCH 1/3] uprobes: install_breakpoint() should fail ifis_swbp_insn() == T

From: Peter Zijlstra
Date: Thu May 31 2012 - 08:15:30 EST


On Wed, 2012-05-30 at 19:49 +0200, Peter Zijlstra wrote:
>
> Oh, indeed. I overlooked copy_insn() is taking the page from the
> page-cache instead of the page-tables and will thus get the original.
>

Related to this, what happens when we try to install a probe on a page
that's already been COWed by a ptrace user?

Say gdb did a code modification at or near the intended probe site.
--
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/