Bug 82881 - [netgraph] [panic] ng_fec(4) causes kernel panic after interface detach
Summary: [netgraph] [panic] ng_fec(4) causes kernel panic after interface detach
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 5.4-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2005-07-02 01:40 UTC by Wojciech A. Koszek
Modified: 2022-10-17 12:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech A. Koszek 2005-07-02 01:40:23 UTC
ng_fec(4) brings Cisco Fast-Ethernet Trunking to Netgraph subsystem. It
creates virtual network interface, which is based on logical interfaces
providing access to physical media. Structures responsible for 'fec'
interface contain information about underlying interfaces. Thus,
modification on logical interfaces (e.g: detaching) modifies 'fec'
interface behaviour. Currently there is no handling of described situation -
after detaching underlying interface and touching existing fec interface,
kernel panics. This is due to delivery of requests (ioctl) to non-existent
interface.

Fix: 

Probably EVENTHANDLER(9) in current design.
How-To-Repeat: ngctl
(..)
+ mkpeer . fec a b
+ list
There are 2 total nodes:
  Name: fec0            Type: fec           ID: 00000002 Num hooks: 1
  Name: ngctl728        Type: socket        ID: 00000001  Num hooks: 1
+ msg [2]: add_iface "sk0"
+ quit

$ ifconfig fec0
fec0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
	ether 00:11:d8:a8:10:ab
	media: Ethernet none
	status: active
# kldunload if_sk
# ifconfig fec0 10.0.0.1
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-03-18 04:25:10 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:24 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:19:26 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>