From nobody@FreeBSD.org  Thu Feb 21 21:42:58 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 7B81CC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Feb 2013 21:42:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 694D5E1D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Feb 2013 21:42:58 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1LLgvEj055599
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Feb 2013 21:42:57 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r1LLgvCh055598;
	Thu, 21 Feb 2013 21:42:57 GMT
	(envelope-from nobody)
Message-Id: <201302212142.r1LLgvCh055598@red.freebsd.org>
Date: Thu, 21 Feb 2013 21:42:57 GMT
From: Rolf Grossmann <rg@progtech.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ses driver (scsi_enc) conflicts with enc device in module name (enc)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176335
>Category:       kern
>Synopsis:       [ses] ses driver (scsi_enc) conflicts with enc device in module name (enc)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mjacob
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 21 21:50:00 UTC 2013
>Closed-Date:    Sun Mar 03 21:14:54 UTC 2013
>Last-Modified:  Sun Mar 03 21:14:54 UTC 2013
>Originator:     Rolf Grossmann
>Release:        9.1-CURRENT
>Organization:
PROGTECH GmbH
>Environment:
FreeBSD vdev-test.progtech.net 9.1-STABLE FreeBSD 9.1-STABLE #0 r246991M: Thu Feb 21 22:37:40 CET 2013     grossman@vdev-test.progtech.net:/sys/amd64/compile/IPSEC  amd64

>Description:
I'm building a kernel (based on GENERIC, adding device enc) using this config file:

include GENERIC

ident           IPSEC

options         IPSEC
device          crypto
device          enc

After booting the resulting kernel I'm missing the enc device:

% ifconfig enc0
ifconfig: interface enc0 does not exist

dmesg shows this error message:

module_register: module enc already exists!
Module enc failed to register: 17

What's worse, if I'm actually setting up a tunnel, the kernel panics from trying to record stats on the missing enc device (null pointer dereference).

>How-To-Repeat:
see above.
>Fix:
Not a fix, but a workaround (since I don't need ses):

Add the following to the config file:

nodevice    ses


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Feb 24 22:56:18 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s), although this seems to be a generic build problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176335 
State-Changed-From-To: open->closed 
State-Changed-By: mjacob 
State-Changed-When: Sun Feb 24 23:01:57 UTC 2013 
State-Changed-Why:  
Not a bug. Previous usage has scsi_ses as enc. Change the 
enc device (which is not part of stock freebsd) to use 
a different name. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176335 
State-Changed-From-To: closed->open 
State-Changed-By: mjacob 
State-Changed-When: Mon Feb 25 10:32:06 UTC 2013 
State-Changed-Why:  
Reopening to fix correctly (my mistake in closing prematurely). 


Responsible-Changed-From-To: freebsd-scsi->mjacob 
Responsible-Changed-By: mjacob 
Responsible-Changed-When: Mon Feb 25 10:32:06 UTC 2013 
Responsible-Changed-Why:  
taking responsibility 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176335 
State-Changed-From-To: open->closed 
State-Changed-By: mjacob 
State-Changed-When: Sun Mar 3 21:14:20 UTC 2013 
State-Changed-Why:  
Pushed to RELENG_9 branch in change 247424 by jhb@. 

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