CVS commit: src/sbin/iscsid

2012-12-29 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Dec 29 08:28:20 UTC 2012

Modified Files:
src/sbin/iscsid: iscsid_driverif.c iscsid_lists.c iscsid_main.c
iscsid_targets.c

Log Message:
Handle invalid messages more gracefully, handle sessions with no valid
connections, and be more verbose about errors.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sbin/iscsid/iscsid_driverif.c
cvs rdiff -u -r1.7 -r1.8 src/sbin/iscsid/iscsid_lists.c \
src/sbin/iscsid/iscsid_main.c
cvs rdiff -u -r1.4 -r1.5 src/sbin/iscsid/iscsid_targets.c

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



CVS commit: src/sys/kern

2012-12-29 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Dec 29 10:22:40 UTC 2012

Modified Files:
src/sys/kern: uipc_syscalls.c

Log Message:
If an untraced process sleeps in recvmsg/sendmsg, the syscall does not
allocate an iov structure for ktrace. When tracing is then enabled
and the process wakes up, it crashes the kernel.

Undo the last commit which introduced this error path.

Avoid the mentioned kmem_alloc assertion by adding a sanity check analog
to similar code in sys_generic.c for I/O on file handles instead of
sockets.

This also causes the syscall to return EMSGSIZE if the msg_iovlen member
of the msg structure is less than or equal to 0, as defined in
recvmsg(2)/sendmsg(2).


To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/kern/uipc_syscalls.c

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



CVS commit: src/sys/dev/iscsi

2012-12-29 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Dec 29 11:05:30 UTC 2012

Modified Files:
src/sys/dev/iscsi: iscsi_globals.h iscsi_ioctl.c iscsi_main.c
iscsi_rcv.c iscsi_send.c iscsi_test.c iscsi_utils.c

Log Message:
- defer session cleanup to not force detachments
- use more and explicit locking
- improve connection recovery
- use larger timeouts
- handle ccb buffer underflow correctly
- simplify throttling code

Sessions can now temporarily exist without a valid
connection, you also need to update iscsid(8).


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/iscsi/iscsi_globals.h \
src/sys/dev/iscsi/iscsi_ioctl.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/iscsi/iscsi_main.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/iscsi/iscsi_rcv.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/iscsi/iscsi_send.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/iscsi/iscsi_test.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/iscsi/iscsi_utils.c

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



CVS commit: src/sys/arch/evbarm/gumstix

2012-12-29 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Dec 29 14:22:55 UTC 2012

Modified Files:
src/sys/arch/evbarm/gumstix: gumstix_start.S

Log Message:
Change order for TLB operation.
We can boot Overo EarthSTORM.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/evbarm/gumstix/gumstix_start.S

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



CVS commit: src/sys/arch/evbarm/conf

2012-12-29 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Dec 29 14:32:45 UTC 2012

Modified Files:
src/sys/arch/evbarm/conf: OVERO

Log Message:
Change size of some devices.  from DM37xx and OMAP 35xx datasheet.
Support Overo *STORM.  Tested only Overo EarthSTORM(Silverload).


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/evbarm/conf/OVERO

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



CVS commit: src/sys/arch/evbarm/conf

2012-12-29 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Dec 29 14:35:01 UTC 2012

Modified Files:
src/sys/arch/evbarm/conf: README.evbarm

Log Message:
Update for comment of OVERO.  It support Overo COMS.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/evbarm/conf/README.evbarm

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



CVS commit: src/external/historical/nawk/dist

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 29 14:51:41 UTC 2012

Modified Files:
src/external/historical/nawk/dist: lib.c

Log Message:
remove useless cast.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/historical/nawk/dist/lib.c

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



CVS commit: src/usr.bin/mkubootimage

2012-12-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Dec 29 15:11:56 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: crc32.c mkubootimage.1 mkubootimage.c uboot.h

Log Message:
add support for generating boot.scr scripts with -T script


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/mkubootimage/crc32.c
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/mkubootimage/mkubootimage.1 \
src/usr.bin/mkubootimage/uboot.h
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/mkubootimage/mkubootimage.c

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



CVS commit: src/usr.bin/mkubootimage

2012-12-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Dec 29 16:18:08 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: crc32.c

Log Message:
add missing prototype for crc32v


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/mkubootimage/crc32.c

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



CVS commit: src/sys/kern

2012-12-29 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Dec 29 18:51:40 UTC 2012

Modified Files:
src/sys/kern: uipc_syscalls.c

Log Message:
The sanity check prevented messages that carry only ancillary data.


To generate a diff of this commit:
cvs rdiff -u -r1.157 -r1.158 src/sys/kern/uipc_syscalls.c

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



CVS commit: src/common/lib/libppath

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 29 20:08:23 UTC 2012

Modified Files:
src/common/lib/libppath: ppath.3 ppath.c ppath_bool.3 ppath_extant.c
ppath_kmem_alloc.c ppath_malloc.c ppath_number.3 ppath_object.3

Log Message:
kill Id RCS keyword.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libppath/ppath.3 \
src/common/lib/libppath/ppath_object.3
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libppath/ppath.c \
src/common/lib/libppath/ppath_number.3
cvs rdiff -u -r1.5 -r1.6 src/common/lib/libppath/ppath_bool.3
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libppath/ppath_extant.c \
src/common/lib/libppath/ppath_kmem_alloc.c \
src/common/lib/libppath/ppath_malloc.c

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



CVS commit: src/sys/kern

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 29 21:56:04 UTC 2012

Modified Files:
src/sys/kern: vfs_bio.c

Log Message:
Always call brelse() on error. Otherwise a possible error from bread() will
cause the buffer to stay lock and we end up blocking forever in
VOP_CLOSE->spec_close->vinvalbuf->bbysy since the buffer is marked busy
but there is no I/O pending.
This caused my laptop to hang on boot_findwedge because:
findroot: unable to read block 358331527 of dev dk0 (22)


To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/kern/vfs_bio.c

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



CVS commit: src/sys/arch/x86/x86

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 29 21:57:13 UTC 2012

Modified Files:
src/sys/arch/x86/x86: x86_autoconf.c

Log Message:
don't leak a vnode on error


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/x86/x86/x86_autoconf.c

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



CVS commit: src/etc/rc.d

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 29 22:15:07 UTC 2012

Modified Files:
src/etc/rc.d: random_seed

Log Message:
better messages, more quoting.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/etc/rc.d/random_seed

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



CVS commit: src/usr.bin/talk

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 29 23:44:23 UTC 2012

Modified Files:
src/usr.bin/talk: get_addrs.c get_names.c invite.c

Log Message:
- use warn/err
- if both users are on the same machine, use the loopback address. This
  allows us to use talkd from inetd listening only to the loopback.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/talk/get_addrs.c
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/talk/get_names.c
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/talk/invite.c

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



CVS commit: src/sbin/ping

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 30 02:41:11 UTC 2012

Modified Files:
src/sbin/ping: ping.c

Log Message:
1. Allocate the max packet size before accounting for phdrlen, harmless.
2. In the clear-route-cache sendto, don't send 0 bytes (if -s was specified
   with < 8, phdrlen would be 0).
3. Always send ICMP_MINLEN packets; this is what everyone else does. Makes
   ping -s n where n < 8 work.
4. The condition for checking the data bytes was completely wrong. only check
   the data bytes if we got all of them.
5. The condition for printing a newline was wrong; before it would not print
   a newline before printing the data bytes, and it would append to the previous
   error message.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sbin/ping/ping.c

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



CVS commit: src/sbin/ping

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 30 03:19:24 UTC 2012

Modified Files:
src/sbin/ping: ping.c

Log Message:
deduct phdrlen after computing max size.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/sbin/ping/ping.c

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