From root@router.sinuspl.net  Wed Mar  3 14:41:49 2004
Return-Path: <root@router.sinuspl.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E0D2B16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Mar 2004 14:41:49 -0800 (PST)
Received: from router.sinuspl.net (port-212-202-25-225.reverse.qsc.de [212.202.25.225])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 777BA43D2D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Mar 2004 14:41:49 -0800 (PST)
	(envelope-from root@router.sinuspl.net)
Received: by router.sinuspl.net (Postfix, from userid 0)
	id E737722ACD; Wed,  3 Mar 2004 23:42:02 +0100 (CET)
Message-Id: <20040303224202.E737722ACD@router.sinuspl.net>
Date: Wed,  3 Mar 2004 23:42:02 +0100 (CET)
From: Gregor Surmann <admin@sinuspl.net>
Reply-To: Gregor Surmann <admin@sinuspl.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Gregor Surmann <admin@sinuspl.net>
Subject: System hangs when trying to create non-existing devices with ifconfig
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63720
>Category:       kern
>Synopsis:       System hangs when trying to create non-existing devices with ifconfig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bms
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 03 14:50:12 PST 2004
>Closed-Date:    Mon Jun 14 15:47:24 GMT 2004
>Last-Modified:  Mon Jun 14 15:47:24 GMT 2004
>Originator:     Gregor Surmann
>Release:        FreeBSD 5.2.1-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD router.sinuspl.net 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #3: Wed Mar 3 22:56:59 CET 2004 root@router.sinuspl.net:/usr/src/sys/i386/compile/ROUTER i386


	Machine is a normal PC, with intel mainboard and P3 CPU. Running very stable. No other errors or so.
	Standard kernel config, only some old ISA cards removes and "device stf" appended.

>Description:
	I wanted to use 6to4, so I've created a device stf0 with command "ifconfig stf0 create". Then... as I was bored, i though "let create device staff0". So, typed "ifconfig staff0 create". The system hangs. Nothing in logs, only reset possible. Then, after reboot, i tried to create gjiogjisdjgio device with "ifconfig gjiogjisdjgio create". Again, a hang.

>How-To-Repeat:
	Type "ifconfig asshole0 create" or so...

>Fix:
	Don't know how to fix, maybe first parse the device name and check it before doing anything?



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bms 
State-Changed-When: Mon Jun 14 15:46:38 GMT 2004 
State-Changed-Why:  
Can't reproduce this on -CURRENT: 

FreeBSD kimchi.dek.spc.org 5.2-CURRENT FreeBSD 5.2-CURRENT #6: Tue Apr 20 16:02:35 BST 2004     bms@kimchi.dek.spc.org:/usr/src/sys/i386/compile/KIMCHI  i386 

kimchi# ifconfig fubar0 create 
ifconfig: SIOCIFCREATE: Invalid argument 

et al. 



Responsible-Changed-From-To: freebsd-bugs->bms 
Responsible-Changed-By: bms 
Responsible-Changed-When: Mon Jun 14 15:46:38 GMT 2004 
Responsible-Changed-Why:  
I'll take this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63720 
>Unformatted:
