[Bug 275616] bwn driver causes kernel panic after connect

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 Dec 2023 16:20:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275616

--- Comment #15 from Mark Johnston <markj@FreeBSD.org> ---
(In reply to Mark Johnston from comment #14)
Oops, my comment about the assertion is wrong.  I don't really understand the
frame layout.  But the problem is clear: ieee80211_mbuf_adjust() may return an
mbuf with just MHLEN - 150 == 10 bytes left in its buffer, and
ieee80211_encap() then calls m_adj(m, 6), leaving 4 bytes of space, but
sizeof(struct llc) is 8 bytes.

And, in stable/13 sizeof(struct pkthdr) is 8 bytes smaller, so there was enough
space then, but now it's not enough.

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