From: Eldar Abusalimov Date: Tue, 04 Aug 2009 13:36:31 +0000 Subject: Re: Is it a bug in etrap.S srmmu stack check routine? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org 2009/8/4 David Miller : > From: Eldar Abusalimov > Date: Tue, 4 Aug 2009 17:09:42 +0400 > >> 2009/8/4 David Miller : >>> From: Eldar Abusalimov >>> Date: Tue, 4 Aug 2009 17:07:32 +0400 >>> >>>> 2009/8/4 David Miller : >>>>> No, a bad user stack would be if %sp >= PAGE_OFFSET, the user stack >>>>> must be below the lowest kernel address which is PAGE_OFFSET. >>>> >>>> Yes, I agree, but you've just written that >>>> >>>>>>> We want to fall through to line 288 if PAGE_OFFSET > %sp and that's >>>>>>> what we do. >>>> >>>> and line 288 is trap_setup_user_stack_is_bolixed branch. >>> >>> Sorry, logic reversed. >>> >> >> So, is it a bug in etrap.S? > > Seems that way, and it's harmless because the real fault handler will > find that things are actually fine and it all works out, albeit > slowly. > > Feel free to test the obvious fix :) > Ok, thanks. =) -- Best regards, Eldar Sh. Abusalimov