Re: svn commit: r222015 - head/sys/kern

2011-08-18 Thread Poul-Henning Kamp
In message , Robert Wats on writes: >On Tue, 17 May 2011, Poul-Henning Kamp wrote: > >> +if ((s->s_flags & SBUF_AUTOEXTEND) == 0) { >> +KASSERT(s->s_size > 1, >> +("attempt to create a too small sbuf")); >> +} > >This change turns out to cause a kernel panic duri

Re: svn commit: r222015 - head/sys/kern

2011-08-17 Thread Robert Watson
On Tue, 17 May 2011, Poul-Henning Kamp wrote: + if ((s->s_flags & SBUF_AUTOEXTEND) == 0) { + KASSERT(s->s_size > 1, + ("attempt to create a too small sbuf")); + } This change turns out to cause a kernel panic during fuzzing of mac_proc_get(2). Prev

svn commit: r222015 - head/sys/kern

2011-05-17 Thread Poul-Henning Kamp
Author: phk Date: Tue May 17 11:04:50 2011 New Revision: 222015 URL: http://svn.freebsd.org/changeset/base/222015 Log: Use memset() instead of bzero() and memcpy() instead of bcopy(), there is no relevant difference for sbufs, and it increases portability of the source code. Split the a