[Bug 213015] openvswitch and vnet jails - panic when bridge is destroyed and recreated

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 28 08:24:44 UTC 2017


--- Comment #9 from akoshibe at gmail.com ---
I finally had the chance to dig around more, myself.

Open vSwitch seems to try to write something when a new switch is being created
with ports. It would sometimes do so while the tap device is in the process of
being renamed, and ifp->if_bpf is null.

Preventing the departure handler from setting if_bpf to null during renames
stopped the panic:

Index: net/bpf.c
--- net/bpf.c   (revision 313973)
+++ net/bpf.c   (working copy)
@@ -2678,6 +2678,9 @@
        struct bpf_if *bp, *bp_temp;
        int nmatched = 0;

+       if (ifp->if_flags & IFF_RENAMING)
+               return;
         * Find matching entries in free list.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-net mailing list