CVS commit: src/tests/lib/libc/sys

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 22 06:31:37 UTC 2018

Modified Files:
src/tests/lib/libc/sys: t_sendrecv.c

Log Message:
Den't set SA_RESTART in the signal handler allowing the process to get
interrupted durning recv and exit (pointed out by kre@)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_sendrecv.c

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



CVS commit: src/lib/libc/net

2018-08-21 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Aug 22 03:12:31 UTC 2018

Modified Files:
src/lib/libc/net: if_nametoindex.c

Log Message:
- SIOCGIFINDEX was added in 2013, but if_freenameindex(3) have not used it
  for years. Use it to improve performance. Same as FreeBSD.
- KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/net/if_nametoindex.c

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



CVS commit: src

2018-08-21 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Aug 22 01:05:24 UTC 2018

Modified Files:
src/distrib/sets/lists/comp: ad.m68k
src/sys/arch/alpha/include: cpu.h
src/sys/arch/amiga/include: cpu.h
src/sys/arch/arm/include: cpu.h
src/sys/arch/atari/include: cpu.h
src/sys/arch/cesfic/include: cpu.h
src/sys/arch/evbcf/include: cpu.h
src/sys/arch/hp300/include: cpu.h
src/sys/arch/hppa/include: cpu.h
src/sys/arch/luna68k/include: cpu.h
src/sys/arch/m68k/include: Makefile cpu.h
src/sys/arch/mac68k/include: cpu.h
src/sys/arch/mips/include: cpu.h
src/sys/arch/mvme68k/include: cpu.h
src/sys/arch/news68k/include: cpu.h
src/sys/arch/powerpc/include: cpu.h
src/sys/arch/sh3/include: cpu.h
src/sys/arch/sparc/include: cpu.h
src/sys/arch/sparc64/include: cpu.h
src/sys/arch/vax/include: cpu.h
src/sys/arch/x68k/include: cpu.h
src/sys/arch/x86/include: cpu.h
src/sys/compat/linux/common: linux_exec.h
src/sys/compat/linux32/common: linux32_sysctl.h
src/sys/fs/cd9660: cd9660_extern.h
src/sys/kern: init_sysctl.c
src/sys/net: if.h
src/sys/netinet: dccp_var.h icmp6.h icmp_var.h in.h ip_carp.h pim_var.h
sctp_var.h tcp_var.h udp_var.h
src/sys/netinet6: in6.h pim6_var.h raw_ip6.h udp6_var.h
src/sys/netipsec: ipsec_var.h
src/sys/nfs: nfs.h
src/sys/sys: mbuf.h mount.h pipe.h socket.h sysctl.h
src/sys/ufs/ffs: ffs_extern.h
src/sys/ufs/lfs: lfs_extern.h
src/sys/uvm: uvm_param.h
Removed Files:
src/sys/arch/m68k/include: sysctl.h

Log Message:
- Cleanup for dynamic sysctl:
  - Remove unused *_NAMES macros for sysctl.
  - Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
  use them on all m68k machines.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/distrib/sets/lists/comp/ad.m68k
cvs rdiff -u -r1.83 -r1.84 src/sys/arch/alpha/include/cpu.h
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/amiga/include/cpu.h
cvs rdiff -u -r1.96 -r1.97 src/sys/arch/arm/include/cpu.h
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/atari/include/cpu.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/cesfic/include/cpu.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbcf/include/cpu.h
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/hp300/include/cpu.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hppa/include/cpu.h
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/luna68k/include/cpu.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/m68k/include/Makefile
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/m68k/include/cpu.h
cvs rdiff -u -r1.2 -r0 src/sys/arch/m68k/include/sysctl.h
cvs rdiff -u -r1.99 -r1.100 src/sys/arch/mac68k/include/cpu.h
cvs rdiff -u -r1.124 -r1.125 src/sys/arch/mips/include/cpu.h
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/mvme68k/include/cpu.h
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/news68k/include/cpu.h
cvs rdiff -u -r1.107 -r1.108 src/sys/arch/powerpc/include/cpu.h
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/sh3/include/cpu.h
cvs rdiff -u -r1.100 -r1.101 src/sys/arch/sparc/include/cpu.h
cvs rdiff -u -r1.124 -r1.125 src/sys/arch/sparc64/include/cpu.h
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/vax/include/cpu.h
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/x68k/include/cpu.h
cvs rdiff -u -r1.96 -r1.97 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.52 -r1.53 src/sys/compat/linux/common/linux_exec.h
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux32/common/linux32_sysctl.h
cvs rdiff -u -r1.26 -r1.27 src/sys/fs/cd9660/cd9660_extern.h
cvs rdiff -u -r1.214 -r1.215 src/sys/kern/init_sysctl.c
cvs rdiff -u -r1.264 -r1.265 src/sys/net/if.h
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet/dccp_var.h
cvs rdiff -u -r1.51 -r1.52 src/sys/netinet/icmp6.h
cvs rdiff -u -r1.30 -r1.31 src/sys/netinet/icmp_var.h
cvs rdiff -u -r1.106 -r1.107 src/sys/netinet/in.h
cvs rdiff -u -r1.8 -r1.9 src/sys/netinet/ip_carp.h
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/pim_var.h
cvs rdiff -u -r1.1 -r1.2 src/sys/netinet/sctp_var.h
cvs rdiff -u -r1.186 -r1.187 src/sys/netinet/tcp_var.h
cvs rdiff -u -r1.43 -r1.44 src/sys/netinet/udp_var.h
cvs rdiff -u -r1.92 -r1.93 src/sys/netinet6/in6.h
cvs rdiff -u -r1.14 -r1.15 src/sys/netinet6/pim6_var.h
cvs rdiff -u -r1.4 -r1.5 src/sys/netinet6/raw_ip6.h
cvs rdiff -u -r1.28 -r1.29 src/sys/netinet6/udp6_var.h
cvs rdiff -u -r1.7 -r1.8 src/sys/netipsec/ipsec_var.h
cvs rdiff -u -r1.77 -r1.78 src/sys/nfs/nfs.h
cvs rdiff -u -r1.209 -r1.210 src/sys/sys/mbuf.h
cvs rdiff -u -r1.230 -r1.231 src/sys/sys/mount.h
cvs rdiff -u -r1.35 -r1.36 src/sys/sys/pipe.h
cvs rdiff -u -r1.126 -r1.127 src/sys/sys/socket.h
cvs rdiff -u -r1.227 -r1.228 src/sys/sys/sysctl.h
cvs rdiff -u -r1.84 -r1.85 src/sys/ufs/ffs/ffs_extern.h
cvs rdiff -u -r1.113 -r1.114 src/sys/ufs/lfs/lfs_extern.h
cvs rdiff -u -r1.37 -r1.38 src/sys/uvm/uvm_param.h

Please note that diffs are not public domain; they

CVS commit: src/doc

2018-08-21 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Aug 21 23:34:56 UTC 2018

Modified Files:
src/doc: TODO.sanitizers

Log Message:
Mark kernel-asan as done (by maxv)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/doc/TODO.sanitizers

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

2018-08-21 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Aug 21 20:13:13 UTC 2018

Modified Files:
src/sys/arch/evbarm/include: loadfile_machdep.h

Log Message:
Define BOOT_ELF64 for aarch64


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbarm/include/loadfile_machdep.h

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



CVS commit: src/sys/arch/xen/xen

2018-08-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Aug 21 18:55:09 UTC 2018

Modified Files:
src/sys/arch/xen/xen: xbd_xenbus.c

Log Message:
(only commit message for rev 1.85, no actual change)

shuffle code in xbd_handler() response loop so that req_bp is never
touched for non I/O responses; unknown commands are now just skipped, also
without touching neither xbdreq, nor req_bp

add some KASSERTS() for xbdreq->req_nr_segments and xbdreq->req_bp,
and reset req_bp after it's processed to ensure the buf can never
be processed twice

intended to simplify debugging in cases like PR port-xen/53506


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/arch/xen/xen/xbd_xenbus.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/xen/xen

2018-08-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Aug 21 18:45:16 UTC 2018

Modified Files:
src/sys/arch/xen/xen: xbd_xenbus.c


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/xen/xen/xbd_xenbus.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/xen/xen

2018-08-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Aug 21 18:31:55 UTC 2018

Modified Files:
src/sys/arch/xen/xen: xbd_xenbus.c

Log Message:
remove code handling buffers not aligned to 512-byte boundary, simply return
EINVAL straight away

the condition doesn't seem to be actually hit for normal boots and
tools like fsck, which is good thing since it allocated memory
separately for each such I/O


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/arch/xen/xen/xbd_xenbus.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/xen/xen

2018-08-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Aug 21 18:11:10 UTC 2018

Modified Files:
src/sys/arch/xen/xen: xbd_xenbus.c

Log Message:
avoid race condition between I/O submission in xbd_diskstart() and
interrupt handling in xbd_handler() - need to protect it with splbio()

fixes PR port-xen/53506 by Emmanuel Dreyfus, and likely also port-xen/53074
by Brad Spencer


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/arch/xen/xen/xbd_xenbus.c

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



CVS commit: src/external/gpl2/xcvs/dist/src

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 15:37:34 UTC 2018

Modified Files:
src/external/gpl2/xcvs/dist/src: main.c run.c

Log Message:
support SIGINFO


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl2/xcvs/dist/src/main.c
cvs rdiff -u -r1.3 -r1.4 src/external/gpl2/xcvs/dist/src/run.c

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



CVS commit: src/sys/netbt

2018-08-21 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Aug 21 14:59:13 UTC 2018

Modified Files:
src/sys/netbt: hci_event.c l2cap_signal.c

Log Message:
Result of audit to check that mbuf length is checked before m_copydata()
and that any data supposedly copied out is valid before use.

prompted by maxv@, I have checked every usage of m_copydata() and made
the following corrections

hci_event.c:
hci_event_command_compl()
check that the packet does contain enough data for there to
be a status code before noting possible failures.

hci_event_num_compl_pkts()
check that the packet does contain data to cover the
stated number of handle/num pairs

l2cap_signal.c:
l2cap_recv_signal()
just ignore packets with not enough data rather than
trying to reject them (may not have cmd.ident)

l2cap_recv_command_rej()
check we have a valid reason and/or data before use


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/netbt/hci_event.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netbt/l2cap_signal.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/arm/sunxi

2018-08-21 Thread Benny Siegert
Module Name:src
Committed By:   bsiegert
Date:   Tue Aug 21 14:09:41 UTC 2018

Modified Files:
src/sys/arch/arm/sunxi: sunxi_thermal.c

Log Message:
Fix two typos in the Sunxi thermal driver.

Noticed by rudolf in PR port-arm/53537.

ok jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/sunxi/sunxi_thermal.c

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



CVS commit: src/distrib/sets/lists/comp

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 13:00:17 UTC 2018

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add missing lint library, sort


To generate a diff of this commit:
cvs rdiff -u -r1.2221 -r1. src/distrib/sets/lists/comp/mi

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



CVS commit: src/sys/rump/include/rump

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 11:47:37 UTC 2018

Modified Files:
src/sys/rump/include/rump: rumpdefs.h rumperr.h rumperrno2host.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/rump/include/rump/rumpdefs.h
cvs rdiff -u -r1.7 -r1.8 src/sys/rump/include/rump/rumperr.h
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/include/rump/rumperrno2host.h

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



CVS commit: src/sys/rump/include/rump

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 11:45:23 UTC 2018

Modified Files:
src/sys/rump/include/rump: makerumpdefs.sh

Log Message:
Unlike gnu sed our sed does not recognize inline labels (separated by
semi-colons) so split the lines, and make sure that command lists end
with a semi-colon.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/rump/include/rump/makerumpdefs.sh

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



CVS commit: src/distrib/sets/lists/debug

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 11:09:18 UTC 2018

Modified Files:
src/distrib/sets/lists/debug: mi

Log Message:
add new tests, sort


To generate a diff of this commit:
cvs rdiff -u -r1.262 -r1.263 src/distrib/sets/lists/debug/mi

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



CVS commit: src/distrib/sets/lists/tests

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 11:07:40 UTC 2018

Modified Files:
src/distrib/sets/lists/tests: mi

Log Message:
add new tests, sort


To generate a diff of this commit:
cvs rdiff -u -r1.792 -r1.793 src/distrib/sets/lists/tests/mi

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



CVS commit: src/tests/lib/libc/sys

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 11:04:49 UTC 2018

Modified Files:
src/tests/lib/libc/sys: t_sendrecv.c

Log Message:
mark failed


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_sendrecv.c

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



CVS commit: src/tests/lib/libc/sys

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 11:03:27 UTC 2018

Modified Files:
src/tests/lib/libc/sys: t_sendrecv.c

Log Message:
should terminate and does with ktrace, but it does not normally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_sendrecv.c

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



CVS commit: src/tests/lib/libc/sys

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 10:41:00 UTC 2018

Added Files:
src/tests/lib/libc/sys: t_sendrecv.c

Log Message:
Now add the file I really meant to add.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/sys/t_sendrecv.c

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



CVS commit: src/tests/lib/libc/sys

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 10:39:21 UTC 2018

Modified Files:
src/tests/lib/libc/sys: t_recvmmsg.c

Log Message:
revert copyright change.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_recvmmsg.c

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



CVS commit: src/tests/lib/libc/sys

2018-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 21 10:38:09 UTC 2018

Modified Files:
src/tests/lib/libc/sys: Makefile t_recvmmsg.c
Added Files:
src/tests/lib/libc/sys: t_sendmmsg.c

Log Message:
more tests


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/tests/lib/libc/sys/Makefile
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_recvmmsg.c
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/sys/t_sendmmsg.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/arm/broadcom

2018-08-21 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Aug 21 08:45:17 UTC 2018

Modified Files:
src/sys/arch/arm/broadcom: bcm283x_platform.c

Log Message:
Correctly report memory size, not clock rate when VERBOSE_INIT_ARM.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arm/broadcom/bcm283x_platform.c

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



CVS commit: src/sys/rump/include/rump

2018-08-21 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Aug 21 08:22:33 UTC 2018

Modified Files:
src/sys/rump/include/rump: makerumpdefs.sh

Log Message:
rumpdefs.h, rumperr.h and rumperrno2host.h are generated from makerumpdefs.sh.
Don't edit those files directly. Use __inline instead of inline in the
script file. OK'd by christos.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/rump/include/rump/makerumpdefs.sh

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



CVS commit: src/sys/kern

2018-08-21 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Aug 21 07:56:53 UTC 2018

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

Log Message:
Need to keep track of the requested size, when realloc is used under kASan.
Maybe we could use mh_rqsz by default.


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/sys/kern/kern_malloc.c

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