Re: [PATCH] Mark thread stack correctly in proc/<pid>/maps

From: KOSAKI Motohiro
Date: Thu Feb 23 2012 - 19:50:06 EST


2012/2/23 KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxx>:
> Hi
>
> This version makes sense to me. and I verified this change don't break
> procps tools.

Sigh. No, I missed one thing. If application use
makecontext()/swapcontext() pair,
ESP is not reliable way to detect pthread stack. At that time the
stack is still marked
as anonymous memory.
--
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/