NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/53189 CVS commit: src/sys/netipsec



The following reply was made to PR kern/53189; it has been noted by GNATS.

From: "Maxime Villard" <maxv%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/53189 CVS commit: src/sys/netipsec
Date: Tue, 17 Apr 2018 06:23:30 +0000

 Module Name:	src
 Committed By:	maxv
 Date:		Tue Apr 17 06:23:30 UTC 2018
 
 Modified Files:
 	src/sys/netipsec: ipsec_mbuf.c
 
 Log Message:
 Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
 should, but it looks like there are several places that can put M_PKTHDR
 on secondary mbufs (PR/53189), so drop this assumption right now to
 prevent further bugs.
 
 The check is replaced by (m1 != m), which is equivalent to the previous
 code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
 m_adj().
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 src/sys/netipsec/ipsec_mbuf.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index