Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2012 12:04:41 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        FreeBSD Net <freebsd-net@freebsd.org>, freebsd-hackers@freebsd.org
Subject:   VIMAGE crashes on 9.x with hotplug net80211 devices
Message-ID:  <CAJ-VmomchJZ7GUKrAjmmyBXDw-6H6O5fAxT_tfAFfhU=HknG1g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I have some crashes in the VIMAGE code on releng_9. Specifically, when
I enable VIMAGE and then hotplug some cardbus ath(4) NICs.

The panics are dereferencing the V_ ifindex and related fields.

If I start adding CURVNET_SET(vnet0) and CURVNET_RESTORE() around the
ifnet calls (attach, detach) then things stop panicing - however,
things are slightly more complicated than that.

Since it's possible that the cloned interfaces (and maybe the parent
interface?) are placed into other VNETs, I have to make sure that the
right vnet context is switched to before I free interfaces.

So, may I please have some help by some VIMAGE-cluey people to sort
out how to _properly_ get VIMAGE up on net80211? I'd like to fix this
in -HEAD and -9 so people are able to use VIMAGEs for hostapd
interfaces (and so I can abuse it for lots of local testing on a
single laptop.)

Thanks!



Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomchJZ7GUKrAjmmyBXDw-6H6O5fAxT_tfAFfhU=HknG1g>