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

2019-03-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Mar 28 08:13:40 UTC 2019

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

Log Message:
Add new ATF ptrace(2) tests bytes_transfer_alignment*

Verify bytes transfer for potentially misaligned operation.

New tests:

 - bytes_transfer_alignment_pt_read_i
 - bytes_transfer_alignment_pt_read_d
 - bytes_transfer_alignment_pt_write_i
 - bytes_transfer_alignment_pt_write_d
 - bytes_transfer_alignment_piod_read_i
 - bytes_transfer_alignment_piod_read_d
 - bytes_transfer_alignment_piod_write_i
 - bytes_transfer_alignment_piod_write_d
 - bytes_transfer_alignment_piod_read_auxv

All tests pass (at least on x86_64).


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/tests/lib/libc/sys/t_ptrace_wait.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/arc/include

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 08:28:16 UTC 2019

Modified Files:
src/sys/arch/arc/include: vmparam.h

Log Message:
Expose kernel variables only to kernel.
XXX: move this variable somewhere better?


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arc/include/vmparam.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/ews4800mips/include

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 08:31:40 UTC 2019

Modified Files:
src/sys/arch/ews4800mips/include: vmparam.h

Log Message:
protect kernel variable from userland exposure
XXX: if there a better place for this?


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ews4800mips/include/vmparam.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/hpcmips/include

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 08:33:07 UTC 2019

Modified Files:
src/sys/arch/hpcmips/include: vmparam.h

Log Message:
protect kernel variables


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hpcmips/include/vmparam.h

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



CVS commit: src/share/mk

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 08:41:50 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
disable jemalloc again until we can figure out what to do with the bloat
for installer media.


To generate a diff of this commit:
cvs rdiff -u -r1.1117 -r1.1118 src/share/mk/bsd.own.mk

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



CVS commit: src/sys/dev/pci

2019-03-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Mar 28 08:56:56 UTC 2019

Modified Files:
src/sys/dev/pci: if_bnxreg.h

Log Message:
No functional change:
- Fix DB_AND_RANDOMFALSE(). It has no real bug because the macro is not used
  from anywhere.
- Wse const.
- Whitespace change.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/pci/if_bnxreg.h

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



CVS commit: src/sys/dev

2019-03-28 Thread Frank Kardel
Module Name:src
Committed By:   kardel
Date:   Thu Mar 28 10:44:29 UTC 2019

Modified Files:
src/sys/dev/scsipi: scsi_spc.h scsiconf.c scsipi_base.c scsipiconf.c
scsipiconf.h
src/sys/dev/usb: umass_scsipi.c

Log Message:
Add reading of supported opcodes and their timeouts
at attachment time. Though this information is optional,
it allows to override our fixed timeouts with device
provided timeouts. These timeouts will override the
hardcoded values if the device provided timeouts
exceed the hardcoded values and are less than a day.

Using the device provided timeouts avoids premature
device resets and unreliable operation due to
inadequate timeouts.

Due to the limited implementations of USB
umass devices this feature is disabled for all
umass attached devices.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/scsipi/scsi_spc.h
cvs rdiff -u -r1.283 -r1.284 src/sys/dev/scsipi/scsiconf.c
cvs rdiff -u -r1.181 -r1.182 src/sys/dev/scsipi/scsipi_base.c
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/scsipi/scsipiconf.c
cvs rdiff -u -r1.129 -r1.130 src/sys/dev/scsipi/scsipiconf.h
cvs rdiff -u -r1.60 -r1.61 src/sys/dev/usb/umass_scsipi.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/jemalloc/include/jemalloc/internal

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 11:56:56 UTC 2019

Modified Files:
src/external/bsd/jemalloc/include/jemalloc/internal: size_classes.h

Log Message:
Add 2K page size tables (sun2)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/bsd/jemalloc/include/jemalloc/internal/size_classes.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/evbarm/imx7

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 12:07:30 UTC 2019

Modified Files:
src/sys/arch/evbarm/imx7: imx7_ioconfig.c

Log Message:
need arm/amr32/pte.h


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/imx7/imx7_ioconfig.c

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



CVS commit: src/doc

2019-03-28 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Mar 28 12:34:36 UTC 2019

Modified Files:
src/doc: 3RDPARTY

Log Message:
llvm-8.0.0 out.


To generate a diff of this commit:
cvs rdiff -u -r1.1605 -r1.1606 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/distrib/utils/libhack

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 15:04:42 UTC 2019

Modified Files:
src/distrib/utils/libhack: Makefile Makefile.inc

Log Message:
Dedup and add the small jemalloc implementation so our install media has
a chance to fit again.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/distrib/utils/libhack/Makefile
cvs rdiff -u -r1.27 -r1.28 src/distrib/utils/libhack/Makefile.inc

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



CVS commit: src/lib/libc/stdlib

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 15:05:03 UTC 2019

Modified Files:
src/lib/libc/stdlib: jemalloc.c

Log Message:
fix compilation for non _REENTRANT


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/stdlib/jemalloc.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/sparc/include

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 15:44:51 UTC 2019

Modified Files:
src/sys/arch/sparc/include: vmparam.h

Log Message:
make rump work again..


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/sparc/include/vmparam.h

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



CVS commit: src/share/mk

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 15:45:24 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
re-enable jemalloc.


To generate a diff of this commit:
cvs rdiff -u -r1.1118 -r1.1119 src/share/mk/bsd.own.mk

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



CVS commit: src/sys/kern

2019-03-28 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Mar 28 18:12:24 UTC 2019

Modified Files:
src/sys/kern: subr_pool.c vfs_init.c

Log Message:
Move pnbuf_cache into vfs_init.c, where it belongs.


To generate a diff of this commit:
cvs rdiff -u -r1.245 -r1.246 src/sys/kern/subr_pool.c
cvs rdiff -u -r1.48 -r1.49 src/sys/kern/vfs_init.c

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



CVS commit: src

2019-03-28 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Mar 28 19:00:41 UTC 2019

Modified Files:
src/share/man/man4: nvmm.4
src/sys/arch/amd64/conf: GENERIC
src/sys/dev/nvmm: files.nvmm nvmm.c

Log Message:
Move NVMM in the "any" class, so that it can be enabled in GENERIC. Add
missing files in files.nvmm, and add NVMM (commented out) in the amd64
GENERIC. Remove the "caveats" section in the man page.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/nvmm.4
cvs rdiff -u -r1.520 -r1.521 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/nvmm/files.nvmm
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/nvmm/nvmm.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/mdocml/dist

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 28 20:26:49 UTC 2019

Modified Files:
src/external/bsd/mdocml/dist: out.c

Log Message:
PR/54069: Jason Thorpe: Prevent memory overrun. Can be easily reproduced
with groff_ms.7 and -fsanitize=address.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/mdocml/dist/out.c

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



CVS commit: src/lib/libcurses

2019-03-28 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Mar 28 23:24:22 UTC 2019

Modified Files:
src/lib/libcurses: printw.c

Log Message:
winwrite - using addch() on individual bytes of e.g. UTF-8 encoding
doesn't work that well.  addstr() the whole buffer instead.  This is
still not enirely correct b/c printf can run out of stdio buffer
mid-character for very long output, but deal with it later.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/printw.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/sparc/stand/bootblk

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar 29 00:07:39 UTC 2019

Modified Files:
src/sys/arch/sparc/stand/bootblk: Makefile

Log Message:
no more _LKM -> _MODULE


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/sparc/stand/bootblk/Makefile

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



CVS commit: src/sys/arch/sparc/include

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar 29 00:08:14 UTC 2019

Modified Files:
src/sys/arch/sparc/include: vmparam.h

Log Message:
add more exceptions for standalone and modules


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/sparc/include/vmparam.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/evbarm/nitrogen6

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar 29 00:13:26 UTC 2019

Modified Files:
src/sys/arch/evbarm/nitrogen6: platform.h

Log Message:
include pte.h


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/nitrogen6/platform.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/evbmips/sbmips

2019-03-28 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Fri Mar 29 00:24:56 UTC 2019

Modified Files:
src/sys/arch/evbmips/sbmips: machdep.c

Log Message:
Don't need an 'X' printf specifier if using PRIx64.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbmips/sbmips/machdep.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/librump/rumpkern

2019-03-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar 29 02:09:14 UTC 2019

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
fix the build (pnbuf_cache move to vfs_init.c)


To generate a diff of this commit:
cvs rdiff -u -r1.332 -r1.333 src/sys/rump/librump/rumpkern/rump.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/alpha/alpha

2019-03-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Fri Mar 29 03:11:32 UTC 2019

Modified Files:
src/sys/arch/alpha/alpha: pmap.c

Log Message:
Fix a couple of latent MP issues in the Alpha pmap:
- In pmap_activate(), even though we manipulate the active mask
  with atomic ops, the lev1map pointer needs to stay consistent,
  so we do, in fact, have to take the pmap lock there.
- In pmap_emulate_reference(), some of the DEBUG checks done here
  are race-prone, so don't do them.  (Leave them #if 0'd out for
  documentary purposes.)


To generate a diff of this commit:
cvs rdiff -u -r1.263 -r1.264 src/sys/arch/alpha/alpha/pmap.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/mips/mips

2019-03-28 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Fri Mar 29 05:23:12 UTC 2019

Modified Files:
src/sys/arch/mips/mips: mips_machdep.c

Log Message:
Add entry for MIPS 25Kf.


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 src/sys/arch/mips/mips/mips_machdep.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/pci

2019-03-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Fri Mar 29 06:31:54 UTC 2019

Modified Files:
src/sys/dev/pci: if_bnx.c if_bnxvar.h

Log Message:
Sync with OpenBSD:
- Don't need to clear if_timer during attach. (OpenBSD rev. 1.23)
- Do the minimal initialization of the firmware so that ASF always works.
  From ambrisko@FreeBSD (OpenBSD rev. 1.32)
- Move the interrupt establishment till after everything in the softc is set up
  (OpenBSD rev. 1.40)
- Let mii_attach() know where the PHY is located instead of scanning for it
  since we know where it will be anyway and remove the code from the MII bus
  read/write functions to force reading/writing from the predetermined
  location. Copied from bge(4) and this is what the upstream FreeBSD bce(4)
  driver has done once FreBSD gained a mii_attach().


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/dev/pci/if_bnx.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/if_bnxvar.h

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