Summary: | [panic] panic when destroying vlan interface with traffic | ||
---|---|---|---|
Product: | Base System | Reporter: | Kun Xie <kxie> |
Component: | kern | Assignee: | Matt Joras <mjoras> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | bugzilla.freebsd, dv, emaste, mjoras |
Priority: | --- | Keywords: | crash, needs-qa |
Version: | 11.0-RELEASE | Flags: | koobs:
mfc-stable11?
mjoras: mfc-stable10- |
Hardware: | amd64 | ||
OS: | Any | ||
URL: | https://reviews.freebsd.org/D11370 |
Description
Kun Xie
2017-07-24 20:28:03 UTC
This should be fixed by https://reviews.freebsd.org/D11370 Feel free to test the diff if you'd like. I should note, the fix is not committed yet. (In reply to Matt Joras from comment #2) Great! I'll try it. Thanks! (In reply to Matt Joras from comment #1) Just wanted too drop a note that I've been using it for a month in a semi-productive machine. It's working fine, haven't found any regression, but wasn't suffering from the former locking deficiencies also. So not much weight this note, but worth posting I hope ;-) -harry Thanks Harry! I appreciate the note and your running the patch :). *** Bug 198580 has been marked as a duplicate of this bug. *** A commit references this bug: Author: mjoras Date: Tue Aug 15 17:52:37 UTC 2017 New revision: 322548 URL: https://svnweb.freebsd.org/changeset/base/322548 Log: Rework vlan(4) locking. Previously the locking of vlan(4) interfaces was not very comprehensive. Particularly there was very little protection against the destruction of active vlan(4) interfaces or concurrent modification of a vlan(4) interface. The former readily produced several different panics. The changes can be summarized as using two global vlan locks (an rmlock(9) and an sx(9)) to protect accesses to the if_vlantrunk field of struct ifnet, in addition to other places where global exclusive access is required. vlan(4) should now be much more resilient to the destruction of active interfaces and concurrent calls into the configuration path. PR: 220980 Reviewed by: ae, markj, mav, rstone Approved by: rstone (mentor) MFC after: 4 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D11370 Changes: head/sys/net/if_vlan.c I will MFC this to 11 since it is a trivial merge. I am not going to MFC to 10 or 9 because I would have to MFC it with some other changes to the vlan locking that were never MFC. |