CVS commit: src/sys

2016-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Jul  9 07:25:00 UTC 2016

Modified Files:
src/sys/kern: subr_kobj.c subr_kobj_vfs.c
src/sys/sys: kobj_impl.h

Log Message:
When loading a module from VFS and from the bootloader, the kernel packs
up the module segments into one big RWX chunk. Split this chunk into two
different text and data+bss+rodata chunks. The latter is made non-
executable. This also provides some kind of ASLR, since the chunks are
not necessarily contiguous.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/kern/subr_kobj.c
cvs rdiff -u -r1.8 -r1.9 src/sys/kern/subr_kobj_vfs.c
cvs rdiff -u -r1.3 -r1.4 src/sys/sys/kobj_impl.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/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Jul  9 07:47:25 UTC 2016

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

Log Message:
KNF this function a little


To generate a diff of this commit:
cvs rdiff -u -r1.206 -r1.207 src/sys/arch/x86/x86/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/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Jul  9 08:05:47 UTC 2016

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

Log Message:
When a user pmap is created, it is populated with the higher kernel
slots, which become accessible upon kernel entry (syscall, cpu switch,
or whatever). Put the NOX bit in the user recursive slot, so the whole
tree does not appear as executable in kernel mode.

This is already what is done in the kernel pmap.


To generate a diff of this commit:
cvs rdiff -u -r1.207 -r1.208 src/sys/arch/x86/x86/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/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Jul  9 09:25:44 UTC 2016

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

Log Message:
Use pmap_bootstrap_palloc.


To generate a diff of this commit:
cvs rdiff -u -r1.208 -r1.209 src/sys/arch/x86/x86/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/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Jul  9 09:33:21 UTC 2016

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

Log Message:
Simplify pmap_get_physpage.


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/sys/arch/x86/x86/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/arm/omap

2016-07-09 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Jul  9 15:04:06 UTC 2016

Modified Files:
src/sys/arch/arm/omap: omap2_gpio.c omap_edma.c

Log Message:
Remove white-spaces.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/omap/omap2_gpio.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/omap/omap_edma.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

2016-07-09 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Jul  9 20:15:06 UTC 2016

Modified Files:
src/lib/libc: shlib_version

Log Message:
note that on libc bump obsolete signal functions should be sent to
libcompat.


To generate a diff of this commit:
cvs rdiff -u -r1.265 -r1.266 src/lib/libc/shlib_version

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



CVS commit: [nick-nhusb] src/sys

2016-07-09 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Jul  9 20:25:25 UTC 2016

Modified Files:
src/sys/altq [nick-nhusb]: altq_cbq.c altq_cdnr.c altq_subr.c
src/sys/arch/acorn26/ioc [nick-nhusb]: if_eca.c
src/sys/arch/acorn26/stand/boot26 [nick-nhusb]: boot26.c
src/sys/arch/acorn32/podulebus [nick-nhusb]: if_ie.c
src/sys/arch/acorn32/stand/boot32 [nick-nhusb]: boot32.c
src/sys/arch/algor/dev [nick-nhusb]: bonito_mainbus.c
src/sys/arch/alpha/stand/common [nick-nhusb]: boot.c
src/sys/arch/alpha/stand/standtest [nick-nhusb]: test.c
src/sys/arch/amd64/amd64 [nick-nhusb]: locore.S machdep.c mainbus.c
src/sys/arch/amd64/conf [nick-nhusb]: GENERIC
src/sys/arch/amiga/dev [nick-nhusb]: grf_cv3d.c grf_cv3dreg.h if_es.c
if_qn.c
src/sys/arch/amiga/stand/binpatch [nick-nhusb]: binpatch.c
src/sys/arch/amiga/stand/bootblock/boot [nick-nhusb]: main.c
src/sys/arch/arm/allwinner [nick-nhusb]: awin_eth.c awin_otgreg.h
src/sys/arch/arm/arm [nick-nhusb]: cpufunc.c
src/sys/arch/arm/at91 [nick-nhusb]: at91emac.c
src/sys/arch/arm/broadcom [nick-nhusb]: bcm53xx_eth.c
src/sys/arch/arm/ep93xx [nick-nhusb]: epe.c
src/sys/arch/arm/gemini [nick-nhusb]: gemini_gmac.c if_gpn.c
src/sys/arch/arm/imx [nick-nhusb]: if_enet.c
src/sys/arch/arm/omap [nick-nhusb]: files.omap2 if_cpsw.c obio_com.c
omap2430_intr.c omap2_obiovar.h omap2_reg.h omap3_scm.c
omap3_sdhc.c omap3_sdmmcreg.h omap_edma.c omapl1x_emac.c tiotg.c
src/sys/arch/arm/rockchip [nick-nhusb]: rockchip_emac.c
src/sys/arch/arm/samsung [nick-nhusb]: exynos_dwcmmc.c
src/sys/arch/arm/xscale [nick-nhusb]: ixp425_if_npe.c
src/sys/arch/atari/stand/bootxx [nick-nhusb]: bootxx.c
src/sys/arch/bebox/stand/boot [nick-nhusb]: monitor.c
src/sys/arch/emips/ebus [nick-nhusb]: if_le_ebus.c
src/sys/arch/evbarm/beagle [nick-nhusb]: beagle_machdep.c
src/sys/arch/evbarm/conf [nick-nhusb]: BEAGLEBOARDXM BEAGLEBONE
TISDP2420
src/sys/arch/evbarm/imx7 [nick-nhusb]: imx7_machdep.c
src/sys/arch/evbppc/virtex/dev [nick-nhusb]: if_temac.c
src/sys/arch/ews4800mips/stand/common [nick-nhusb]: cmd.c
src/sys/arch/hp300/stand/common [nick-nhusb]: netio.c samachdep.h
tgets.c
src/sys/arch/hp300/stand/inst [nick-nhusb]: inst.c
src/sys/arch/hp300/stand/uboot [nick-nhusb]: uboot.c
src/sys/arch/hpc/stand/hpcboot/arm [nick-nhusb]: arm_console.cpp
src/sys/arch/hpcmips/dev [nick-nhusb]: plumpcmcia.c
src/sys/arch/hpcmips/stand/lcboot [nick-nhusb]: main.c
src/sys/arch/hpcmips/tx [nick-nhusb]: tx3912video.c
src/sys/arch/i386/conf [nick-nhusb]: GENERIC
src/sys/arch/i386/i386 [nick-nhusb]: cpu_in_cksum.S locore.S mainbus.c
multiboot.c
src/sys/arch/i386/stand/lib [nick-nhusb]: biosdisk.c bootinfo.c
bootinfo.h bootmenu.c exec.c menuutils.c
src/sys/arch/ia64/ia64 [nick-nhusb]: mainbus.c
src/sys/arch/ia64/include [nick-nhusb]: mcontext.h
src/sys/arch/ia64/stand/common [nick-nhusb]: boot.c
src/sys/arch/landisk/stand/boot [nick-nhusb]: boot2.c monitor.c
src/sys/arch/mac68k/dev [nick-nhusb]: if_mc.c
src/sys/arch/mac68k/nubus [nick-nhusb]: if_netdock_nubus.c
src/sys/arch/macppc/conf [nick-nhusb]: GENERIC_601 files.macppc
src/sys/arch/macppc/dev [nick-nhusb]: am79c950.c if_bm.c if_gm.c pmu.c
pmuvar.h valkyriefb.c
src/sys/arch/macppc/macppc [nick-nhusb]: pic_ohare.c
src/sys/arch/macppc/pci [nick-nhusb]: bandit.c
src/sys/arch/macppc/stand/ofwboot [nick-nhusb]: boot.c
src/sys/arch/mips/adm5120/dev [nick-nhusb]: if_admsw.c
src/sys/arch/mips/alchemy/dev [nick-nhusb]: if_aumac.c
src/sys/arch/mips/atheros/dev [nick-nhusb]: if_ae.c
src/sys/arch/mips/cavium/dev [nick-nhusb]: if_cnmac.c
src/sys/arch/mips/include [nick-nhusb]: Makefile.inc
src/sys/arch/mips/mips [nick-nhusb]: locore.S locore_mips1.S
mipsX_subr.S pmap.c
src/sys/arch/mips/ralink [nick-nhusb]: ralink_eth.c
src/sys/arch/mips/sibyte/dev [nick-nhusb]: sbmac.c
src/sys/arch/mvme68k/mvme68k [nick-nhusb]: machdep.c
src/sys/arch/mvme68k/stand/bootst [nick-nhusb]: boot.c
src/sys/arch/mvme68k/stand/netboot [nick-nhusb]: boot.c
src/sys/arch/mvmeppc/stand/boot [nick-nhusb]: boot.c
src/sys/arch/newsmips/apbus [nick-nhusb]: if_sn.c
src/sys/arch/next68k/dev [nick-nhusb]: if_xe.c mb8795.c
src/sys/arch/next68k/stand/boot [nick-nhusb]: boot.c
src/sys/arch/ofppc/stand/ofwboot [nick-nhusb]: boot.c
src/sys/arch/playstation2/dev [nick-nhusb]: if_smap.c
src/sys/arch/pmax/ibus [nick-nhusb]: sii.c
src/sys/arch/pmax/include [nick-nhus

CVS commit: src/lib/libc/gen

2016-07-09 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Jul  9 21:15:01 UTC 2016

Modified Files:
src/lib/libc/gen: siglist.c

Log Message:
Fix three of these strings (ones that are rarely seen)


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/gen/siglist.c

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



CVS commit: xsrc/external/mit

2016-07-09 Thread Jared D. McNeill
Module Name:xsrc
Committed By:   jmcneill
Date:   Sat Jul  9 22:19:34 UTC 2016

Modified Files:
xsrc/external/mit/xf86-video-siliconmotion/dist/src: smi_driver.c
xsrc/external/mit/xorg-server.old/dist/hw/xfree86/vgahw: vgaHW.h
xsrc/external/mit/xorg-server/dist/hw/xfree86/vgahw: vgaHW.h

Log Message:
Avoid legacy VGA I/O port access on MIPS. Xorg converts the I/O port
address to a pointer and dereferences it, and then seg faults.

This fixes Xorg on my Lemote YeeLoong netbook.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
xsrc/external/mit/xf86-video-siliconmotion/dist/src/smi_driver.c
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/xorg-server.old/dist/hw/xfree86/vgahw/vgaHW.h
cvs rdiff -u -r1.1.1.3 -r1.2 \
xsrc/external/mit/xorg-server/dist/hw/xfree86/vgahw/vgaHW.h

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



CVS commit: src/lib/libc/sys

2016-07-09 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Jul  9 23:08:32 UTC 2016

Modified Files:
src/lib/libc/sys: sigaction.2

Log Message:
Dump the list of async-signal-safe functions here. It belongs in
programmer-facing docs, not user-facing docs, so shouldn't be in
signal(7).


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/sys/sigaction.2

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



CVS commit: src/lib/libc/sys

2016-07-09 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Jul  9 23:10:05 UTC 2016

Modified Files:
src/lib/libc/sys: fork.2

Log Message:
Drop in a reference to the list of async-signal-safe functions.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/sys/fork.2

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



CVS commit: src/share/man/man7

2016-07-09 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Jul  9 23:12:27 UTC 2016

Modified Files:
src/share/man/man7: signal.7

Log Message:
Document all the signals properly. Please review.

Kick out the list of async-signal-safe functions (it is now in
sigaction(2)) because this is not a programmer-facing document.

XXX: if anyone knows definitively whether SIGEMT is actually used by
XXX: anything, please update the weasel words I put in.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man7/signal.7

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



CVS commit: src/share/man/man7

2016-07-09 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Jul  9 23:13:47 UTC 2016

Modified Files:
src/share/man/man7: signal.7

Log Message:
bump up the copyright date since I practically rewrote the file


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/share/man/man7/signal.7

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

2016-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jul 10 00:14:37 UTC 2016

Modified Files:
src/sys/arch/evbmips/loongson: yeeloong_machdep.c

Log Message:
The version of PMON on my 8089B (LM8089-1.4.9a) configures OHCI but doesn't
enable memory space access. Enable it before the ohci driver attaches to
allow low- and full-speed devices to work.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbmips/loongson/yeeloong_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/external/bsd/drm2/dist/drm/radeon

2016-07-09 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jul 10 01:35:27 UTC 2016

Modified Files:
src/sys/external/bsd/drm2/dist/drm/radeon: radeon_ttm.c

Log Message:
Don't assign value to rdev unless we're going to use the value.

Therefore, don't declare the variable unless we're going to assign it a
value.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c

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



CVS commit: src

2016-07-09 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jul 10 04:44:47 UTC 2016

Modified Files:
src/share/man/man4: piixpm.4
src/sys/dev/pci: piixpm.c

Log Message:
The piixpm(4) driver also supports AMD's HUDSON chipset's SMBus function.

>From OpenBSD, verified.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man4/piixpm.4
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/pci/piixpm.c

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