CVS commit: src/sys/netinet

2011-05-06 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Fri May  6 12:52:43 UTC 2011

Modified Files:
src/sys/netinet: tcp_vtw.c

Log Message:
remove an empty function


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/netinet/tcp_vtw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/perfused

2011-05-06 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Fri May  6 13:45:35 UTC 2011

Modified Files:
src/usr.sbin/perfused: msg.c

Log Message:
Display actual error from FUSE on failures


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/perfused/msg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/bind/dist/bin/named

2011-05-06 Thread Takahiro Kambe
Module Name:src
Committed By:   taca
Date:   Fri May  6 15:28:20 UTC 2011

Modified Files:
src/external/bsd/bind/dist/bin/named: query.c

Log Message:
Apply fix by BIND 9.8.0-P1: https://www.isc.org/CVE-2011-1907.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/bind/dist/bin/named/query.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2011-05-06 Thread Takahiro Kambe
Module Name:src
Committed By:   taca
Date:   Fri May  6 15:29:06 UTC 2011

Modified Files:
src/doc: 3RDPARTY

Log Message:
BIND 9.8.0-P1 has released.


To generate a diff of this commit:
cvs rdiff -u -r1.833 -r1.834 src/doc/3RDPARTY

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libpam/modules/pam_ssh

2011-05-06 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Fri May  6 17:22:09 UTC 2011

Modified Files:
src/lib/libpam/modules/pam_ssh: pam_ssh.c

Log Message:
remove excess newlines in debug output


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libpam/modules/pam_ssh/pam_ssh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/zaurus/ramdisk

2011-05-06 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Fri May  6 18:33:00 UTC 2011

Modified Files:
src/distrib/zaurus/ramdisk: dot.profile list

Log Message:
Use /sbin/dmesg directly rather than kernfs and /kern/msgbuf as other ports.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/distrib/zaurus/ramdisk/dot.profile
cvs rdiff -u -r1.15 -r1.16 src/distrib/zaurus/ramdisk/list

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/zaurus/ramdisk

2011-05-06 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Fri May  6 18:33:59 UTC 2011

Modified Files:
src/distrib/zaurus/ramdisk: Makefile

Log Message:
Specify DGB=-Os to make libhack a bit smaller.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/distrib/zaurus/ramdisk/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2011-05-06 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Fri May  6 21:48:46 UTC 2011

Modified Files:
src/sys/netipsec: xform_ah.c xform_esp.c xform_ipcomp.c
src/sys/opencrypto: crypto.c cryptodev.c

Log Message:
As a first step towards more fine-grained locking, don't require
crypto_{new.free}session() to be called with the "crypto_mtx"
spinlock held.
This doesn't change much for now because these functions acquire
the said mutex first on entry now, but at least it keeps the nasty
locks local to the opencrypto core.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/netipsec/xform_ah.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netipsec/xform_esp.c
cvs rdiff -u -r1.27 -r1.28 src/sys/netipsec/xform_ipcomp.c
cvs rdiff -u -r1.38 -r1.39 src/sys/opencrypto/crypto.c
cvs rdiff -u -r1.55 -r1.56 src/sys/opencrypto/cryptodev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/syscall

2011-05-06 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri May  6 21:51:19 UTC 2011

Modified Files:
src/tests/syscall: t_mprotect.c

Log Message:
write-only mapping is not portable, change it to read/write. Unbreaks
mprotect_write testcase on alpha.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/syscall/t_mprotect.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/syscall

2011-05-06 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri May  6 22:24:41 UTC 2011

Modified Files:
src/tests/syscall: t_mprotect.c

Log Message:
Do not return for early failures; otherwise the testcase will be
reported as passed, even if not really run.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/syscall/t_mprotect.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: othersrc/external/bsd/circa

2011-05-06 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Sat May  7 02:31:24 UTC 2011

Update of /cvsroot/othersrc/external/bsd/circa
In directory ivanova.netbsd.org:/tmp/cvs-serv4077

Log Message:
Initial import of libcirca(3) and circa(1) into othersrc.

The circa(3) library encodes data, protecting against damage in
transit or at rest.  The data size expands by 4/3 to provide
protection.  The library is based loosely on the protection scheme
used by CD-ROMs, and employs two Reed-Solomon erasure codings (one
inner and one outer), and a number of dispersal, delay lines and
scattering of bytes.

There are numerous areas in which single bit errors can cause
re-transmission of large amounts of data, or cause file system
data errors - encoding with libcirca(3) can protect against this.

To illustrate its use:

% wc dist/circa.h
  81 4252898 dist/circa.h
% circa -o h2 dist/circa.h
% hd h2 | grep n | wc -l
 101
% sed -e 's|n|o|g' h2 > h2e
% hd h2e | grep n | wc -l
   0
% hd h2e | grep o | wc -l 
 157
% circa -d -o h3 h2e
% diff dist/circa.h h3
%

i.e. circa(1) can recover completely from all 101 instances of the 'n'
character being transformed into 'o', in a file of 2898 characters.

(hd is a shell alias for the "codecs hexdump" transformation described
elsewhere).

Taken from the libcirca(3) man page:


DESCRIPTION
 The libcirca library implements a number of functions designed to protect
 data against errors and erasures.  It uses a number of methods of doing
 this, and is loosely based on Cross-Interleaved Reed-Solomon Coding, as
 found in CDs.  The libcirca draws heavily on the librs(3) library inter-
 nally.

 The aim of this library is to encode data in preparation for transmission
 or storage.  Various erasure codes and checksums are added to the origi-
 nal data, in an effort to recover the original data in the face of errors
 in individual bits and bytes in the encoded data.  This is the same idea
 as implemented in CD CIRC encoding.

 Internally, two Reed-Solomon erasure codes are employed, a 28,24 erasure
 code acting on the original data, and a 32,28 erasure code acting on the
 output from that.  The net effect of these two erasure codes is that the
 size of the encoded data increases by (32 / 24) or (4 / 3)

 The circa_init() function should be called prior to using the encoding
 and decoding functions.  circa_encode() is used to encode data so that it
 is protected against data corruption.  It returns the number of bytes
 produced in the out array.  To decode the original data, circa_decode()
 is called.

 When creating output files, the two functions circa_get_header() and
 circa_put_header() are used.

INTERNALS
 The libcirca library performs a number of transformations, when encoding
 data.  These transformations are modelled on the Cross Interleaved
 Reed-Solomon Coding as used in CDs.  Delay lines can straddle sectors in
 CIRC encoding for CDs, whilst libcirca strictly keeps all sector data
 within the same sector.  This has implications about integrity of data
 cross-sector, although other means, such as libthreshold(3) and
 lib(3) can be used to replicate data at a sector level, to say noth-
 ing of protection by other means such as RAID raid(4).

 A default sector is 3136 bytes in length, although this can be changed at
 circa_init() time with the sectorsize argument.

 Each 24 bytes of input data is transformed into 32 bytes of encoded data.
 The 24 bytes of input data is known as a C3 frame, and the 32 bytes of
 encoded data is known as a C1 frame.

 The transformations are, in encoding order:

 delay1Every other 4 bytes in the input stream are put into a delay
   slot of 1 frame.

 scramble  Within a C3 frame, the bytes are changed to occupy different
   positions.  This is done to mitigate the problem where a number
   of bytes next to each other are the subject of errors.

 Q-Parity  A Reed Solomon 28,24 erasure code is calculated over the 24
   bytes of the C3 frame.  This erasure code is inserted at the
   half-way point of the C3 frame.  This creates a C2 frame of 28
   bytes.

 Dispersal
   Each bytes is striped across the sector, according to the byte
   offset from the start of the C2 frame.  Byte b in C2 frame f
   will end up in frame (f + b) and byte b in the output sector.

 P-Parity  A Reed Solomon 32,28 erasure code is calculated on the C2
   frame, to create a 32-byte C1 frame.

 delay2Even bytes are delayed 1 frame in the output.

 At decoding time, the transformations to the bytes occur in the opposite
 order.

The circa(1) utility is also pr

CVS commit: othersrc/external/bsd/circa/libcirca

2011-05-06 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Sat May  7 02:33:58 UTC 2011

Modified Files:
othersrc/external/bsd/circa/libcirca: Makefile

Log Message:
Fixup pre-req lib path now that this is in-tree.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/circa/libcirca/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: othersrc/external/bsd/circa/circa

2011-05-06 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Sat May  7 02:35:28 UTC 2011

Modified Files:
othersrc/external/bsd/circa/circa: Makefile

Log Message:
Fixup pre-req lib path now that this is in-tree.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/circa/circa/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.