Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763010AbZCaVUO (ORCPT ); Tue, 31 Mar 2009 17:20:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752319AbZCaVT7 (ORCPT ); Tue, 31 Mar 2009 17:19:59 -0400 Received: from www84.your-server.de ([213.133.104.84]:36395 "EHLO www84.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbZCaVT6 (ORCPT ); Tue, 31 Mar 2009 17:19:58 -0400 Subject: Re: Detailed Stack Information Patch [0/3] From: Stefani Seibold To: Andi Kleen Cc: linux-kernel , linux-mm , Peter Zijlstra , Ingo Molnar , Joerg Engel In-Reply-To: <20090331203014.GR11935@one.firstfloor.org> References: <1238511498.364.60.camel@matrix> <87eiwdn15a.fsf@basil.nowhere.org> <1238523735.3692.30.camel@matrix> <20090331203014.GR11935@one.firstfloor.org> Content-Type: text/plain Date: Tue, 31 Mar 2009 23:25:09 +0200 Message-Id: <1238534709.11837.43.camel@matrix> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: stefani@seibold.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1962 Lines: 61 Hi Andi, stop complaining about the monitor. This is only an additional functionality. The main purpose are part 1 and 2. > > Well some implementation of it. There are certainly runtimes that > switch stacks. For example what happens when someone uses sigaltstack()? > What should happen with sigaltstack? This is complete independent from the process and thread stack. So it works. > That's the alloca() case, but you can disable both with the right options. > There's still the "recursive function" case. > And no idea ;-) > > > > The Monitor is part 3/3. And you are right it is not a complete rock > > solid solution. But it works in many cases and thats is what counts. > > For stack overflow one would think a rock solid solution > is needed? After all you'll crash if you miss a case. > Again, the monitor is the only a part of the patch and i know that this is a issue. The first two patches will also work without the monitor and if you don't like the monitor, no problem. It is a CONFIG_... parameter. > To be honest it seems too much like a special case hack to me > to include by default. It could be probably done with a systemtap > script in the same way, but I would really recommend to just > build with gcc's stack overflow checker while testing together > with static checking. > Thanks for the hack - I am not sure if you really had a look at my first posting nor had a look into my code. We discus about complete different things. You have from user land no possibility to figure out where is the thread stack locate nor what was the highest used thread stack address. That is a simple debug information which can provide very easily which the first two patches. Stefani -- 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/