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
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
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