]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r290441:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 11:24:59 +0000 (11:24 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 11:24:59 +0000 (11:24 +0000)
commit970a7f3dc45fa8659abe3f8df801a4861b646a97
treed24a60f08cae3e86dc762b5a850e182cb7ff5ca0
parent4e366a56c90fca1e9b59489115b8d85405a22c5c
MFC r290441:
Fix for unaligned IP-header.

The mbuf length fields must be set before m_adj() is called else
m_adj() will not always adjust the mbuf and an unaligned read
exception can trigger inside the network stack. This can happen on
platforms where unaligned reads are not supported. Adjust a length
check to include the 2-byte ethernet alignment while at it.

git-svn-id: svn://svn.freebsd.org/base/stable/10@290607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/net/if_cdce.c
sys/dev/usb/net/if_urndis.c