From nobody@FreeBSD.org  Wed Aug  4 09:35:37 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B744E16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Aug 2004 09:35:37 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B069543D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Aug 2004 09:35:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i749Zb8X033283
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 4 Aug 2004 09:35:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i749Zaln033282;
	Wed, 4 Aug 2004 09:35:36 GMT
	(envelope-from nobody)
Message-Id: <200408040935.i749Zaln033282@www.freebsd.org>
Date: Wed, 4 Aug 2004 09:35:36 GMT
From: Maciej Cetler <airot@mud.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: killing process that uses snp + unloading module + listing /dev = page fault
X-Send-Pr-Version: www-2.3

>Number:         69989
>Category:       kern
>Synopsis:       killing process that uses snp + unloading module + listing /dev = page fault
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 04 09:40:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Maciej Cetler
>Release:        4.9-STABLE
>Organization:
Non Profit Organization
>Environment:
FreeBSD security.localnet 4.9-STABLE FreeBSD 4.9-STABLE #1: Tue Feb  3 22:04:21 CET 2004     root@:/usr/obj/usr/src/sys/jenny  i386

>Description:
When you load snp as module, create snp0 node in /dev, start
watch on some tty, kill it, unload the module and then list /dev
you get page fault.
>How-To-Repeat:
kldload snp; (cd /dev;sh MAKEDEV snp0); watch ttyv0
On second terminal: killall -9 watch; kldunload snp; ls -l /dev/snp*
Boom.
>Fix:
Not known, but probably cleaning up would be good idea.      
>Release-Note:
>Audit-Trail:
>Unformatted:
