From owner-freebsd-current@FreeBSD.ORG Mon Oct 11 21:13:59 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F2471065673 for ; Mon, 11 Oct 2010 21:13:59 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from cp-out1.libero.it (cp-out1.libero.it [212.52.84.101]) by mx1.freebsd.org (Postfix) with ESMTP id 04BC38FC22 for ; Mon, 11 Oct 2010 21:13:58 +0000 (UTC) Received: from libero.it (192.168.33.220) by cp-out1.libero.it (8.5.115) id 4AB2342316216FD5; Mon, 11 Oct 2010 23:02:01 +0200 Date: Mon, 11 Oct 2010 23:02:01 +0200 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "barbara" To: "jh" X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 82.59.51.232 Cc: freebsd-current Subject: Re:HEADS UP: device name checking on device registration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2010 21:13:59 -0000 > > Since r213526 device names are checked on device registration. That is,= > if you call a make_dev*() function with an invalid device name, a panic= > will occur by default. For make_dev_credf(9) or make_dev_p(9) you can > specify the MAKEDEV_CHECKNAME flag to get an error return instead of a > panic. > > Invalid names are as follows: > > - empty name > - names longer than SPECNAMELEN > - names containing "." or ".." path component > - names ending with '/' > - already existing device names > > So, if you see a "bad si_name" panic you may have encountered a driver > bug. > > Currently several GEOM classes (notably geom_label) allow to create > devices with invalid names. Below is a link to a patch which converts > g_dev_taste() to use make_dev_p() with MAKEDEV_CHECKNAME flag. It's not= > a complete solution and essentially changes the panic to a printf. > > http://people.freebsd.org/~jh/patches/geom_dev-checkname.diff > > -- > Jaakko Hi, I faced that kind of panic today and now I'm able to boot again into CURR= ENT after applying the patch and rebuilding kernel. The panic is caused by: g_dev_taste(): make_dev_p() failed (gp->name=3Dext2fs//, error=3D22) as I have a linux partition (I swear, it's for my mom!) on the same machi= ne. As I don't care about that partition (being ext4 I can't even mount it), = is there any solution other then applying the patch after every csup? Thanks Barbara