Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2008 23:54:38 +0100 (CET)
From:      Jille Timmermans <jille@quis.cx>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Ed Schouten <ed@fxq.nl>
Subject:   kern/119423: Kernel panic (page fault) with devfs rules
Message-ID:  <200801062254.m06Msclv000975@blackbox.quis.cx>
Resent-Message-ID: <200801071550.m07Fo1pc060666@freefall.freebsd.org>

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

>Number:         119423
>Category:       kern
>Synopsis:       Kernel panic (page fault) with devfs rules
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 07 15:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jille Timmermans
>Release:        FreeBSD 6.3-PRERELEASE i386 / FreeBSD 6.2-RELEASE-p4 i386
>Organization:
None
>Environment:
FreeBSD 6.3-PRERELEASE i386 / FreeBSD 6.2-RELEASE-p4 i386
System: FreeBSD blackbox.quis.cx 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Sun Jan 6 23:24:15 CET 2008 root@blackbox.quis.cx:/usr/obj/usr/src/sys/BLACKBOX i386 and FreeBSD istud.quis.cx 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE #0: Sat May 12 16:41:58 CEST 2007 root@istud.quis.cx:/usr/obj/usr/src/sys/ISTUD i386


	
>Description:
	A kernel panic (page fault) occurs when trying to add rules to a devfs mount.

	I can give you kernel dumps and backtraces if needed.
>How-To-Repeat:
	mkdir dev
	mount -t devfs devfs dev
	devfs -m dev ruleset 50
	devfs -m dev rule add type disk hide
	devfs -m dev rule applyset
>Fix:
	In /usr/src/sys/fs/devfs/devfs_rule.c:546
	if (dev == NULL || 
	Changed into:
	if (dev == NULL || dev->si_devsw == NULL || 
>Release-Note:
>Audit-Trail:
>Unformatted:



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