Subject: Re: kernel stack overflow detection
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 06/26/2002 18:34:46
In article <20020626171416.11518.qmail@mail.netbsd.org>,
 <eeh@netbsd.org> wrote:
>
>So, does KSTACK_CHECK_MAGIC work without any MD changes?

Yes, it does.

>If not, what MD changes are needed?

none.

>Why do you also need KSTACK_CHECK_DR0 if KSTACK_CHECK_MAGIC
>should do the job in a MI manner?

Because KSTACK_CHECK_MAGIC is *very* inefficient.

>Or, if you need MD code and it can all be done in MD code,
>why is there a need for an MI version, which you have admitted
>does have noticeable performance impact?  Do you expect anyone
>to actually use the MI code?

Yes, platforms that don't have MD code.

>From a very quick code perusal:
>
>sparc already has kernel stack redzone code.
>sparc64 already has kernel stack redzone code.
>vax already has kernel stack redzone code.
>hppa already has stack redzine code.

Let's see, this is 4/56?

>Do we really need a MI version?

I think so

christos