Contributed by deanna on from the errata dept.
m_dup1() copies the packet header and allocates the mbuf cluster in the wrong order. M_DUP_PKTHDR needs to be called with an empty mbuf. Allocating an mbuf cluster beforehand is not allowed as the resulting mbuf is no longer considered empty (part of the header is initialized). The correct order is to allocate an mbuf via MGETHDR(), copy the packet header and as last step allocate the cluster. Issue found by JINMEI Tatuya.
Source patches are available for OpenBSD 3.9 and 4.0.
UPDATE: this has been elevated to a security issue. Using pf(4) to "block in inet6" is an effective workaround until the patch can be installed.
(Comments are closed)
By David Alten (64.132.1.80) on
Index: sys/kern/uipc_mbuf2.c
--- sys/kern/uipc_mbuf2.c 17 Mar 2006 04:15:51 -0000 1.24
+++ sys/kern/uipc_mbuf2.c 7 Mar 2007 19:21:48 -0000 1.24.2.1
By bedazzled (143.233.245.86) on www.awmn.net
It this related with the reliability fix? At first I thought my hardware was faulty, but it works fine since summer... gotta patch now and see how it goes.
ps: The NIC is a classic $5 el-cheapo RealTek 8139, although it fills the bill nicely (94 Mbit/s on iperf bench :D)
By Olli (84.185.104.113) on
Comments
By Anonymous Coward (212.27.60.48) on
>
www.openbsd.org/faq
Comments
By Anonymous Coward (71.65.251.184) on
> >
>
> www.openbsd.org/faq
>
>
poor reply, anonymous
By Anonymous Coward (66.92.65.117) on