Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755710Ab2BCJtq (ORCPT ); Fri, 3 Feb 2012 04:49:46 -0500 Received: from mail-gy0-f174.google.com ([209.85.160.174]:61775 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755601Ab2BCJtn (ORCPT ); Fri, 3 Feb 2012 04:49:43 -0500 MIME-Version: 1.0 In-Reply-To: References: <20120116163106.GC7180@jl-vm1.vm.bytemark.co.uk> <1326776095-2629-1-git-send-email-siddhesh.poyarekar@gmail.com> <4F2B02BC.8010308@gmail.com> Date: Fri, 3 Feb 2012 15:19:42 +0530 Message-ID: Subject: Re: [RESEND][PATCH] Mark thread stack correctly in proc//maps From: Siddhesh Poyarekar To: KOSAKI Motohiro Cc: Jamie Lokier , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, Michael Kerrisk , linux-man@vger.kernel.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: 1222 Lines: 27 On Fri, Feb 3, 2012 at 1:31 PM, KOSAKI Motohiro wrote: > The fact is, now process stack and pthread stack clearly behave > different dance. libc don't expect pthread stack grow automatically. > So, your patch will break userland. Just only change display thing. Thanks for your feedback. This attempt was to unify this behaviours, but I guess you're right; I need to check if glibc really has a problem with this than assuming that it should not. I will check with glibc maintainers on this and update here. Since this flag is specifically for glibc, it should not affect other applications or libraries. The proc changes won't make sense without the change to mark thread stacks unless we create yet another vm flag to reflect MAP_STACK in the vma and then use that for both process and its threads. I'll submit a patch with this (if acceptable of course) if glibc strictly requires fixed sized stacks. -- Siddhesh Poyarekar http://siddhesh.in -- 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/