On 10.05.2018 17:25, Andrey V. Elsukov wrote:
> On 29.04.2018 21:30, Dries Michiels wrote:
>> Dear mailing list,
>>
>> After upgrading my FreeBSD server from source from:
>> FreeBSD 11.1-STABLE (VADOS) #9 r331859: Sun Apr  1 12:09:18 CEST 2018 
>> to
>> FreeBSD 11.2-PRERELEASE (VADOS) #10 r333091: Sun Apr 29 16:48:44 CEST 2018
>>
>> My /var/log/messages is getting spammed by the following notice/error:
>> Apr 29 19:51:42 vados kernel: in6_delayed_cksum: delayed m_pullup, m->len: 
>> 48 plen 68 off 56 csum_flags=400<CSUM_IP6_TCP>
>> Apr 29 19:55:34 vados last message repeated 11 times
>> Apr 29 20:11:56 vados last message repeated 10 times
>> Apr 29 20:12:42 vados last message repeated 4 times
>>
>> Does anyone have a clue what this indicates?
>> I did not have this message on my older system (r331859).
> 
> Do you use pf(4) or ipsec(4)?

Also, can you try this patch?

-- 
WBR, Andrey V. Elsukov
Index: sys/netinet6/ip6_output.c
===================================================================
--- sys/netinet6/ip6_output.c	(revision 333456)
+++ sys/netinet6/ip6_output.c	(working copy)
@@ -199,18 +199,10 @@ in6_delayed_cksum(struct mbuf *m, uint32_t plen, u
 		csum = 0xffff;
 	offset += m->m_pkthdr.csum_data;	/* checksum offset */
 
-	if (offset + sizeof(u_short) > m->m_len) {
-		printf("%s: delayed m_pullup, m->len: %d plen %u off %u "
-		    "csum_flags=%b\n", __func__, m->m_len, plen, offset,
-		    (int)m->m_pkthdr.csum_flags, CSUM_BITS);
-		/*
-		 * XXX this should not happen, but if it does, the correct
-		 * behavior may be to insert the checksum in the appropriate
-		 * next mbuf in the chain.
-		 */
-		return;
-	}
-	*(u_short *)(m->m_data + offset) = csum;
+	if (offset + sizeof(csum) > m->m_len)
+		m_copyback(m, offset, sizeof(csum), &csum);
+	else
+		*(u_short *)mtodo(m, offset) = csum;
 }
 
 int

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to