[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-cvs
Subject: CVS: cvs.openbsd.org: src
From: Claudio Jeker <claudio () cvs ! openbsd ! org>
Date: 2007-02-26 20:15:33
Message-ID: 200702262015.l1QKFXHm013244 () cvs ! openbsd ! org
[Download RAW message or body]
CVSROOT: /cvs
Module name: src
Changes by: claudio@cvs.openbsd.org 2007/02/26 13:15:33
Modified files:
sys/kern : uipc_mbuf2.c
Log message:
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.
OK canacar@ deraadt@ mglocker@ additional input itojun@
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic