On Fri, Feb 3, 2012 at 1:31 PM, KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxx> 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>