On Wed, Aug 01, 2012 at 03:43:37PM +0200, Oleg Nesterov wrote: ...
> However, I am not sure we can trust it. We are in kernel mode, > DEBUGCTLMSR_BTF can be cleared by kprobes (Ananth, please correct me). > I think we need to check TIF_BLOCKSTEP. Kprobes resets DEBUGCTLMSR_BTF only if we have to single-step in hardware. It puts the flag back if TIF_BLOCKSTEP is set, after the single-step is complete; so yes, a better check is TIF_BLOCKSTEP. Ananth -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/