From owner-cvs-all Sat Jul 27 20:52:59 2002
Delivered-To: cvs-all@freebsd.org
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP
id 27FCD37B409; Sat, 27 Jul 2002 20:52:45 -0700 (PDT)
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
by mx1.FreeBSD.org (Postfix) with ESMTP
id C583943E42; Sat, 27 Jul 2002 20:52:44 -0700 (PDT)
(envelope-from dd@FreeBSD.org)
Received: from freefall.freebsd.org (dd@localhost [127.0.0.1])
by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6S3qiJU012942;
Sat, 27 Jul 2002 20:52:44 -0700 (PDT)
(envelope-from dd@freefall.freebsd.org)
Received: (from dd@localhost)
by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6S3qiBY012941;
Sat, 27 Jul 2002 20:52:44 -0700 (PDT)
Message-Id: <200207280352.g6S3qiBY012941@freefall.freebsd.org>
From: Dima Dorfman
Date: Sat, 27 Jul 2002 20:52:44 -0700 (PDT)
To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject: cvs commit: src/sys/fs/devfs devfs_rule.c
X-FreeBSD-CVS-Branch: HEAD
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID:
List-Archive: (Web Archive)
List-Help: (List Instructions)
List-Subscribe:
List-Unsubscribe:
X-Loop: FreeBSD.ORG
dd 2002/07/27 20:52:44 PDT
Modified files:
sys/fs/devfs devfs_rule.c
Log:
Unimplement panic(8) by making sure that we don't recurse into a
ruleset. If we do, that means there's a ruleset loop (10 includes 20
include 30 includes 10), which will quickly cause a double fault due
to stack overflow (since "include" is implemented by recursion).
(Previously, we only checked that X didn't include X.)
Revision Changes Path
1.2 +11 -5 src/sys/fs/devfs/devfs_rule.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message