[Bug 263505] vlan on wlan kernel panic

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 24 Apr 2022 15:17:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263505

Robert Wing <rew@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rew@FreeBSD.org

--- Comment #1 from Robert Wing <rew@FreeBSD.org> ---
Created attachment 233451
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233451&action=edit
ifconfig vlan fix

The vlan driver is calling ieee80211_output() with the wrong ifnet context and
dereferencing a bad pointer.

It looks like the passed in if_softc is pointing to a struct ifvlan instead of
the expected struct ieee80211_vap

Looking at vlan_output(), I wonder if the parents ifnet context should be used
when calling if_output()?

I've attached a patch to show what I mean.

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