Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756928Ab2BXAuH (ORCPT ); Thu, 23 Feb 2012 19:50:07 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:58122 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756359Ab2BXAuG (ORCPT ); Thu, 23 Feb 2012 19:50:06 -0500 MIME-Version: 1.0 In-Reply-To: References: <4F32B776.6070007@gmail.com> <1328972596-4142-1-git-send-email-siddhesh.poyarekar@gmail.com> From: KOSAKI Motohiro Date: Thu, 23 Feb 2012 19:49:45 -0500 Message-ID: Subject: Re: [PATCH] Mark thread stack correctly in proc//maps To: Siddhesh Poyarekar Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, Jamie Lokier , vapier@gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 589 Lines: 16 2012/2/23 KOSAKI Motohiro : > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/