Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 1995 12:25:49 -0700
From:      David Greenman <davidg@Root.COM>
To:        Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: cat /proc/0/regs crashes FreeBSD 
Message-ID:  <199505121925.MAA00168@corbin.Root.COM>
In-Reply-To: Your message of "Fri, 12 May 95 13:45:56 %2B0200." <9505121145.AA25665@sirius.physik.fu-berlin.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
>you may definitely crash FreeBSD (2.0 and 950412-SNAP) using
>
>	cat /proc/0/regs
>
>maybe in other ways too via the proc-fs

RCS file: /home/ncvs/src/sys/kern/init_main.c,v
...
revision 1.23
date: 1995/05/04 08:21:24;  author: davidg;  state: Exp;  lines: +9 -1
Kludged around a problem with "cat /proc/0/regs" causing a panic by
initializing proc0's frame base, too, using cpu_set_init_frame(). It's
a kludge because that macro is intended to be used only for init, but
does what we want nonetheless.


-DG



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