Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2006 11:45:19 GMT
From:      Justin Unwin<junwin@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/106444: Kernel Panic on Binding to an ip to a virtual atm interface(ng_atmpif)
Message-ID:  <200612071145.kB7BjJEg061173@www.freebsd.org>
Resent-Message-ID: <200612071150.kB7Bo4JN037395@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106444
>Category:       i386
>Synopsis:       Kernel Panic on Binding to an ip to a virtual atm interface(ng_atmpif)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 07 11:50:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Justin Unwin
>Release:        6.2-RC1
>Organization:
>Environment:
FreeBSD routeb.cybertek.co.za 6.2-RC1 FreeBSD 6.2-RC1 #4: Wed Dec  6 18:35:45 SA
ST 2006     root@tst.cybertek.co.za:/usr/obj/usr/src/sys/GEODE_RB  i386
>Description:
I am attempting to play around with ATM virtual interfaces but I am unable to get the interface to bind to an ip address without causing a kernel panic. I have tried to find documentation on this error but have failed. I am beginning to think it is a bug.

Here is an excerpt of what happens after configuring the atm intefrace("See How to repeat the problem for more specifics")
<<<
routeb# ifconfig atm0 10.1.1.1 netmask 255.255.255.0 up
panic: ipatm_nifstat: setaddr missing ip_nif
>How-To-Repeat:
Just run the following and make sure you have all the necessary netgraph + atm modules. Try the above kernel config.

ngctl -f - <<EOF
  mkpeer atmpif dummy link
  name .:dummy vatmpif1
EOF
ngctl -d mkpeer vatmpif1: ksocket link inet/dgram/udp
ngctl msg vatmpif1: setconfig \{ debug=1 pcr=353207 macaddr=00:09:c0:00:00:ce \}
atm set netif hva1 atm 5
atm attach hva1 sigpvc

#Bind to an ip on atm0 - 5 and you get a panic
ifconfig atm0 10.1.1.1 netmask 255.255.255.0 up

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 >>>
 
 Kernel Config
 >>>
 include GENERIC
 
 ident           GEODE_RB
 #----Start Firewall Kernel Settings----#
 options         MROUTING
 options         IPFIREWALL
 options         IPFIREWALL_VERBOSE
 options         IPFIREWALL_DEFAULT_TO_ACCEPT
 options         IPFIREWALL_FORWARD
 options         IPDIVERT
 options         IPSTEALTH
 options         TCP_DROP_SYNFIN
 options         DUMMYNET
 options         BRIDGE
 
 options         ALTQ
 options         ALTQ_CBQ
 options         ALTQ_RED
 options         ALTQ_RIO
 options         ALTQ_HFSC
 options         ALTQ_CDNR
 options         ALTQ_PRIQ
 
 #----End of Firewall Kernel Setting----#
 
 #----IPSEC----#
 options   IPSEC        #IP security
 options   IPSEC_ESP    #IP security (crypto; define w/ IPSEC)
 #----IPSEC----#
 
 #----ATM TEST----#
 options         ATM_CORE
 options         ATM_IP
 options         ATM_SIGPVC
 options         ATM_SPANS
 options         ATM_UNI
 device          hfa
 device          harp
 options         NATM
 options         NETGRAPH_ATMLLC
 options         NETGRAPH_ATM_ATMPIF
 options         NGATM_ATM
 options         NGATM_ATMBASE
 options         NGATM_SSCOP
 options         NGATM_SSCFU
 options         NGATM_UNI
 options         NGATM_CCATM
 options         LIBMBPOOL
 device          atm
 device          utopia
 device          fatm
 device          hatm
 device          patm
 #----ATM TEST----#
 
 options         NETGRAPH
 options         NETGRAPH_DEBUG
 options         NETGRAPH_ASYNC
 options         NETGRAPH_ATMLLC
 options         NETGRAPH_ATM_ATMPIF
 options         NETGRAPH_BLUETOOTH
 options         NETGRAPH_BLUETOOTH_BT3C
 options         NETGRAPH_BLUETOOTH_H4
 options         NETGRAPH_BLUETOOTH_HCI
 options         NETGRAPH_BLUETOOTH_L2CAP
 options         NETGRAPH_BLUETOOTH_SOCKET
 options         NETGRAPH_BLUETOOTH_UBT
 options         NETGRAPH_BLUETOOTH_UBTBCMFW
 options         NETGRAPH_BPF
 options         NETGRAPH_BRIDGE
 options         NETGRAPH_CISCO
 options         NETGRAPH_DEVICE
 options         NETGRAPH_ECHO
 options         NETGRAPH_EIFACE
 options         NETGRAPH_ETHER
 options         NETGRAPH_FEC
 options         NETGRAPH_FRAME_RELAY
 options         NETGRAPH_GIF
 options         NETGRAPH_GIF_DEMUX
 options         NETGRAPH_HOLE
 options         NETGRAPH_IFACE
 options         NETGRAPH_IP_INPUT
 options         NETGRAPH_IPFW
 options         NETGRAPH_KSOCKET
 options         NETGRAPH_L2TP
 options         NETGRAPH_LMI
 options         NETGRAPH_MPPC_ENCRYPTION
 options         NETGRAPH_NETFLOW
 options         NETGRAPH_ONE2MANY
 options         NETGRAPH_PPP
 options         NETGRAPH_PPPOE
 options         NETGRAPH_PPTPGRE
 options         NETGRAPH_RFC1490
 options         NETGRAPH_SOCKET
 options         NETGRAPH_SPLIT
 options         NETGRAPH_TAG
 options         NETGRAPH_TCPMSS
 options         NETGRAPH_TEE
 options         NETGRAPH_TTY
 options         NETGRAPH_UI
 options         NETGRAPH_VJC
 
 #GEODE Config
 options         CPU_GEODE
 options         CPU_SOEKRIS
 
 # Multicast routing
 options         MROUTING
 options         PIM
 <<<
 
 Contact me if you need any more information.
 
 Thanks,
 
 - J
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612071145.kB7BjJEg061173>