From owner-freebsd-smp Wed Jul 16 17:40:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA21201 for smp-outgoing; Wed, 16 Jul 1997 17:40:34 -0700 (PDT) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA21181; Wed, 16 Jul 1997 17:40:29 -0700 (PDT) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id RAA04953; Wed, 16 Jul 1997 17:40:42 -0700 (PDT) Message-Id: <199707170040.RAA04953@implode.root.com> To: Steve Passe cc: smp@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: self modifying kernel code In-reply-to: Your message of "Wed, 16 Jul 1997 18:33:22 MDT." <199707170033.SAA10984@Ilsa.StevesCafe.com> From: David Greenman Reply-To: dg@root.com Date: Wed, 16 Jul 1997 17:40:42 -0700 Sender: owner-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> Basically, we don't allow self-modifying code. There are many reasons, for >> instance the kernel text is protect read-only to catch certain types of bad >> pointer references, but the main reason is that it's considered bad programming >> style, obscuring the operation of the code - usually with little or no gain. > >I expected this, how about during boot as oppossed to while running? I'd say that you'd get less resistence to it, but then at boot time there are probably other cleaner, slower, ways of accomplishing the same thing. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project