Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2002 16:49:17 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        freebsd-arch@freebsd.org
Subject:   Kernel stack overflow detection?
Message-ID:  <200205282349.g4SNnHu88712@arch20m.dellroad.org>

next in thread | raw e-mail | index | archive | help
Hi,

Got a question and a proposal... I'm trying to track down a mysterious
bug and one possible theory is a kernel stack overflow (I've bloated
the kernel with a bunch of custom code). This is in FreeBSD-stable.

The question is: does INVARIANTS do anything to detect this? If not,
what would be the "expected" behavior of such a bug?

If INVARIANTS doesn't do so already, I'd like to propose to write
up an INVARIANTS check that would validate that the kernel stack
has not overflowed. However I'm curious if anyone has done this
already and/or what the right way to go about it would be. E.g, add
an extra stack page with read-only protection? Any hints appreciated.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205282349.g4SNnHu88712>