From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263268AbTJQAYq (ORCPT ); Thu, 16 Oct 2003 20:24:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263269AbTJQAYq (ORCPT ); Thu, 16 Oct 2003 20:24:46 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:60273 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S263268AbTJQAYp (ORCPT ); Thu, 16 Oct 2003 20:24:45 -0400 To: Chris Lattner Cc: linux-kernel@vger.kernel.org Subject: Re: [x86] Access off the bottom of stack causes a segfault? References: From: ebiederm@xmission.com (Eric W. Biederman) Date: 16 Oct 2003 18:23:26 -0600 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Chris Lattner writes: > My compiler is generating accesses off the bottom of the stack (address > below %esp). Is there some funny kernel interaction that I should be > aware of with this? I'm periodically getting segfaults. Beyond the signal thing. You are using a demand grown vma for the stack, and using it past where it has grown. If you grow the vma deliberately you can use more of it. But using more area than you have allocated for the stack is most certainly a bug. Eric