From owner-freebsd-current@FreeBSD.ORG Tue Sep 24 10:40:22 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 46031577; Tue, 24 Sep 2013 10:40:22 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B3F822231; Tue, 24 Sep 2013 10:40:21 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id m15so3284546wgh.1 for ; Tue, 24 Sep 2013 03:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yGVtxy2tFD1dEwTU7F534/NmhSR+rewOvOjJRETL8Es=; b=A4nc6nEhJcp3DL0kCoHwmEr7Kk1mSPyK67XAPdMQXBCvo7WqKt5pMNl6EzQ0WWZELc xR4PqnkrimDaPhHPE5uigkloS7RTZPUGTJ6qao/1UZTYOVb/Tn2orPBtzpKMfY2gFdTk VFcysj0UA3kZsGuf8g+ANWYI8b4yQd9FaFpocZqT511p4m7LbCuPrIPVN/qw/Pqru5Ug U82jYVic5JmCKsD2D/3Wg24mK8qfsXXknMw0c0L+e2GNSsYhtZe1e69oX3va6bknZZu4 3U3vMQgnX8NfwBjg345bg7f8gspJNj+0tmpnI73u1Tge7JPfxEiN+SXhb9UQhdp8FKUa PEUg== MIME-Version: 1.0 X-Received: by 10.180.98.105 with SMTP id eh9mr17462207wib.56.1380019220079; Tue, 24 Sep 2013 03:40:20 -0700 (PDT) Received: by 10.216.62.5 with HTTP; Tue, 24 Sep 2013 03:40:20 -0700 (PDT) In-Reply-To: <20130924104658.46313090@laptop.minsk.domain> References: <20130924104658.46313090@laptop.minsk.domain> Date: Tue, 24 Sep 2013 14:40:20 +0400 Message-ID: Subject: Re: panic: make_dev_credv: bad si_name (error=17, si_name=iscsi) From: Sergey Kandaurov To: "Sergey V. Dyatko" Content-Type: text/plain; charset=ISO-8859-1 Cc: =?ISO-8859-2?Q?Edward_Tomasz_Napiera=B3a?= , current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 24 Sep 2013 10:40:22 -0000 On 24 September 2013 11:46, Sergey V. Dyatko wrote: > Hi, > > today I tried to play a bit with new iscsi > > r255812 isn't fully complete fix? > [...] > run `kldload iscsi_initiator` and got a panic: Something like this quick'n'dirty should work. Compile tested only. Index: sys/dev/iscsi_initiator/iscsi.c =================================================================== --- sys/dev/iscsi_initiator/iscsi.c (revision 255841) +++ sys/dev/iscsi_initiator/iscsi.c (working copy) @@ -715,7 +715,8 @@ TUNABLE_INT_FETCH("net.iscsi_initiator.max_pdus", &max_pdus); isc = malloc(sizeof(struct isc_softc), M_ISCSI, M_ZERO|M_WAITOK); - isc->dev = make_dev(&iscsi_cdevsw, max_sessions, UID_ROOT, GID_WHEEL, 0600, "iscsi"); + isc->dev = make_dev_credf(MAKEDEV_CHECKNAME, &iscsi_cdevsw, max_sessions, + NULL, UID_ROOT, GID_WHEEL, 0600, "iscsi"); isc->dev->si_drv1 = isc; mtx_init(&isc->isc_mtx, "iscsi-isc", NULL, MTX_DEF); -- wbr, pluknet