thompsa
c61e775527
Fix a panic in softclock() if the interface is destroyed with a bpf consumer
...
attached.
This is caused by bpf_detachd clearing IFF_PROMISC on the interface which does
a SIOCSIFFLAGS ioctl. The problem here is that while the interface has been
stopped, IFF_UP has not been cleared so IFF_UP != IFF_DRV_RUNNING, this causes
the ioctl function to init() the interface which resets the callouts.
The destroy then completes and frees the softc but softclock will panic on a
dead callout pointer.
Ensure ifp->if_flags matches reality by clearing IFF_UP when we destroy.
Silence from: rwatson
Approved by: mlaier (mentor)
MFC after: 3 days
2005-08-27 01:17:42 +00:00
..
2004-04-07 20:46:16 +00:00
2005-01-07 01:45:51 +00:00
2005-08-22 19:35:48 +00:00
2005-08-22 19:35:48 +00:00
2005-08-22 19:35:48 +00:00
2005-08-09 10:20:02 +00:00
2005-06-10 16:49:24 +00:00
2005-08-18 20:17:00 +00:00
2005-07-05 23:39:51 +00:00
2004-10-05 19:28:52 +00:00
2005-01-07 01:45:51 +00:00
2005-06-10 16:49:24 +00:00
2005-06-10 16:49:24 +00:00
2005-08-09 10:20:02 +00:00
2005-06-10 16:49:24 +00:00
2005-08-09 10:20:02 +00:00
2005-08-11 08:14:53 +00:00
2005-08-27 01:17:42 +00:00
2005-07-06 01:24:45 +00:00
2005-02-24 13:14:41 +00:00
2005-01-07 01:45:51 +00:00
2005-06-26 18:11:11 +00:00
2005-01-07 01:45:51 +00:00
2005-08-09 10:20:02 +00:00
2005-08-23 14:13:17 +00:00
2005-08-09 10:20:02 +00:00
2005-08-09 10:20:02 +00:00
2005-08-11 08:14:53 +00:00
2005-08-09 10:20:02 +00:00
2005-06-10 16:49:24 +00:00
2005-08-09 10:20:02 +00:00
2005-06-10 16:49:24 +00:00
2005-08-11 08:14:53 +00:00
2005-06-05 03:13:13 +00:00
2005-08-09 10:20:02 +00:00
2005-01-07 01:45:51 +00:00
2005-02-22 13:04:05 +00:00
2005-05-06 02:50:00 +00:00
2005-01-07 01:45:51 +00:00
2005-08-12 08:27:15 +00:00
2005-01-07 01:45:51 +00:00
2005-08-12 08:27:15 +00:00
2005-06-10 16:49:24 +00:00
2005-06-10 16:49:24 +00:00
2005-06-10 16:49:24 +00:00
2005-06-10 16:49:24 +00:00
2005-08-09 10:20:02 +00:00
2005-06-26 18:11:11 +00:00
2005-01-07 01:45:51 +00:00
2005-08-09 10:20:02 +00:00
2005-01-07 01:45:51 +00:00
2005-06-10 16:49:24 +00:00
2005-08-09 10:20:02 +00:00
2005-01-07 01:45:51 +00:00
2005-06-10 16:49:24 +00:00
2005-08-09 10:16:17 +00:00
2005-02-18 22:31:19 +00:00
2005-08-15 20:27:34 +00:00
2005-08-18 18:36:40 +00:00
2005-08-09 12:56:20 +00:00
2005-04-13 08:14:14 +00:00
2005-01-11 07:08:15 +00:00
2004-10-11 20:01:43 +00:00
2005-01-07 01:45:51 +00:00
2005-05-23 17:07:16 +00:00
2005-01-07 01:45:51 +00:00
2005-01-07 01:45:51 +00:00
2005-01-07 01:45:51 +00:00
2005-01-07 01:45:51 +00:00
2005-01-07 01:45:51 +00:00
2005-08-12 08:27:15 +00:00
2005-01-07 01:45:51 +00:00
2005-01-07 01:45:51 +00:00
2005-01-24 22:56:09 +00:00
2005-01-07 01:45:51 +00:00
2005-01-07 01:45:51 +00:00
2005-08-11 08:14:53 +00:00
2005-01-07 01:45:51 +00:00
2005-08-25 13:30:04 +00:00
2004-04-07 20:46:16 +00:00
2005-01-07 01:45:51 +00:00
2004-04-07 20:46:16 +00:00
2005-01-07 01:45:51 +00:00
2005-01-07 01:45:51 +00:00