Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Dec 2023 15:56:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        wireless@FreeBSD.org
Subject:   [Bug 275616] bwn driver causes kernel panic after connect
Message-ID:  <bug-275616-21060-sjrXZYA1pa@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275616-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-275616-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275616

--- Comment #14 from Mark Johnston <markj@FreeBSD.org> ---
Hmm, for bwn vap->iv_ic->ic_headroom is pretty big, it's equal to sizeof(st=
ruct
bwn_txhdr), which is 118 bytes.

So, ieee80211_mbuf_adjust() is going to set needed_space =3D 118 + 24 + 8 f=
or
CCMP. If ieee80211_mbuf_adjust() needs to allocate a new mbuf header, the
header will have MHLEN - 150 =3D 10 bytes of space.

The assertion "needed_space <=3D MHLEN" should actually be "needed_space +
sizeof(struct ether_header) <=3D MHLEN", and I suspect that that assertion =
would
fail for bwn.  I'm not sure what changed in 14.0 to break - maybe struct mb=
uf
layout changes that made MHLEN smaller?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275616-21060-sjrXZYA1pa>