From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 13 16:40:06 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 379F316A41F for ; Fri, 13 Jan 2006 16:40:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E1D443D46 for ; Fri, 13 Jan 2006 16:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0DGe5Hk095759 for ; Fri, 13 Jan 2006 16:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0DGe5Mw095758; Fri, 13 Jan 2006 16:40:05 GMT (envelope-from gnats) Resent-Date: Fri, 13 Jan 2006 16:40:05 GMT Resent-Message-Id: <200601131640.k0DGe5Mw095758@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Helge Oldach Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0692516A41F for ; Fri, 13 Jan 2006 16:33:37 +0000 (GMT) (envelope-from freebsdntpd@oldach.net) Received: from sep.oldach.net (sep.oldach.net [194.180.25.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD3EE43D5C for ; Fri, 13 Jan 2006 16:33:27 +0000 (GMT) (envelope-from freebsdntpd@oldach.net) Received: from sep.oldach.net (localhost [127.0.0.1]) by sep.oldach.net (8.13.4/8.13.4/hmo26jun05) with ESMTP id k0DGXPIg046412 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 13 Jan 2006 17:33:25 +0100 (CET) (envelope-from freebsdntpd@oldach.net) Received: (from hmo@localhost) by sep.oldach.net (8.13.4/8.13.4/Submit/hmo26jun05) id k0DGXPZa046411 for FreeBSD-gnats-submit@freebsd.org; Fri, 13 Jan 2006 17:33:25 +0100 (CET) (envelope-from freebsdntpd@oldach.net) Received: from sep.oldach.net (localhost [127.0.0.1]) by sep.oldach.net (8.13.4/8.13.4/hmo26jun05) with ESMTP id k0DGT0vg046048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Jan 2006 17:29:00 +0100 (CET) (envelope-from hmo@sep.oldach.net) Received: (from hmo@localhost) by sep.oldach.net (8.13.4/8.13.4/Submit/hmo26jun05) id k0DGSt3r046036; Fri, 13 Jan 2006 17:28:55 +0100 (CET) (envelope-from hmo) Message-Id: <200601131628.k0DGSt3r046036@sep.oldach.net> Date: Fri, 13 Jan 2006 17:28:55 +0100 (CET) From: Helge Oldach To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: conf/91759: rc.d/ntpd should REQUIRE devfs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Helge Oldach List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2006 16:40:06 -0000 >Number: 91759 >Category: conf >Synopsis: rc.d/ntpd should REQUIRE devfs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 13 16:40:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Helge Oldach >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD localhost 5.4-STABLE FreeBSD 5.4-STABLE #593: Fri Jan 13 10:51:44 CET 2006 toor@localhost:/usr/obj/usr/src/sys/HMO i386 >Description: rc.d/ntpd should REQUIRE devfs for supporting device entries for reference clocks. ntpd(8) has the ability to directly parse the protocols of external clocks attached to the system. For instance, I am using a dumb DCF-77 receiver which is physically attached to /dev/cuaa1. Unfortunately the appropriate device names are hardcoded into ntpd; in my case it is /dev/refclock-0. Hence I need a symlink from refclock-0 to cuaa1 which is achieved most conveniently through a line in /etc/devfs.conf: # ntpd link cuaa1 refclock-0 Hence rc.d/devfs must be run before rc.d/ntpd. Otherwise there is a race between rc.d/devfs and rc.d/ntpd which may cause ntpd to coredump. The trivial patch below achieves this. This also applies to 6-STABLE and CURRENT. >How-To-Repeat: >Fix: --- etc/rc.d/ntpd~ Sun Oct 10 15:40:13 2004 +++ etc/rc.d/ntpd Fri Jan 13 10:13:00 2006 @@ -5,7 +5,7 @@ # # PROVIDE: ntpd -# REQUIRE: DAEMON +# REQUIRE: DAEMON devfs # BEFORE: LOGIN # KEYWORD: nojail >Release-Note: >Audit-Trail: >Unformatted: