Mike Belopuhov wrote:
> > So there is something in the tree that doesn't like the mbuf packet
> > header growth and decides to color outside the lines.
> > 
> 
> After looking into this with Mark, he has found out that the size of
> an mbuf structure on armv7 and hppa has exceeded MSIZE (256 bytes).

woah, there's no assert to check that? here's a quickie compile time diff.


Index: uipc_mbuf.c
===================================================================
RCS file: /cvs/src/sys/kern/uipc_mbuf.c,v
retrieving revision 1.245
diff -u -p -r1.245 uipc_mbuf.c
--- uipc_mbuf.c 7 Feb 2017 07:00:21 -0000       1.245
+++ uipc_mbuf.c 7 May 2017 21:17:36 -0000
@@ -152,6 +152,10 @@ static u_int num_extfree_fns;
 const char *mclpool_warnmsg =
     "WARNING: mclpools limit reached; increase kern.maxclusters";
 
+struct mbuf_size_check {
+       char test[2 * (MSIZE >= sizeof(struct mbuf)) - 1];
+};
+
 /*
  * Initialize the mbuf allocator.
  */

Reply via email to