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

2017-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Mar 24 08:18:27 UTC 2017

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

Log Message:
Do not toggle global security.pax.mprotect state in an attempt to
activate it for the current process. It does not work and tests should
not change global system state anyway.
Instead: skip the test is pax.mprotect is not globally enabled. We could
use a better check for this (querying the current processes pax flags),
but unfortunately we don't have one.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sys/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/sys/arch/i386/stand/lib

2017-03-24 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Fri Mar 24 08:50:17 UTC 2017

Modified Files:
src/sys/arch/i386/stand/lib: exec.c

Log Message:
efiboot: fix calculation of the kernel size when loading modules.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/i386/stand/lib/exec.c

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



CVS commit: src/sys/net

2017-03-24 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Mar 24 09:22:46 UTC 2017

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Remove KERNEL_LOCK for arpresolve in ether_output

Because arpresolve should be already MP-safe.


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/sys/net/if_ethersubr.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

2017-03-24 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Fri Mar 24 09:59:05 UTC 2017

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
add prototype.

I have forgotten the fix by wm_softint_establish(). Thank you christos@n.o!


To generate a diff of this commit:
cvs rdiff -u -r1.500 -r1.501 src/sys/dev/pci/if_wm.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

2017-03-24 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Fri Mar 24 10:01:55 UTC 2017

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
make self-describing function the code reading sc->sc_nintrs or sc->sc_nqueues 
directly.


To generate a diff of this commit:
cvs rdiff -u -r1.501 -r1.502 src/sys/dev/pci/if_wm.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

2017-03-24 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Fri Mar 24 10:02:35 UTC 2017

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
add comments about the situation wm(4) use MSI-X but does not use multiqueue.


To generate a diff of this commit:
cvs rdiff -u -r1.502 -r1.503 src/sys/dev/pci/if_wm.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

2017-03-24 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Fri Mar 24 10:18:55 UTC 2017

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
remove extra "+"


To generate a diff of this commit:
cvs rdiff -u -r1.503 -r1.504 src/sys/dev/pci/if_wm.c

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



CVS commit: src/share/dict

2017-03-24 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Fri Mar 24 10:22:23 UTC 2017

Modified Files:
src/share/dict: web2

Log Message:
Fix spelling of `administered'.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/share/dict/web2

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

2017-03-24 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Fri Mar 24 10:39:10 UTC 2017

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
fix typo

pointed out by ozaki-r@n.o.


To generate a diff of this commit:
cvs rdiff -u -r1.504 -r1.505 src/sys/dev/pci/if_wm.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

2017-03-24 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Mar 24 10:58:06 UTC 2017

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

Log Message:
Don't forget to flush the xpq queue, otherwise shit may happen.


To generate a diff of this commit:
cvs rdiff -u -r1.244 -r1.245 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/net

2017-03-24 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Mar 24 11:15:25 UTC 2017

Modified Files:
src/sys/net: if.c

Log Message:
Remove extra semicolon


To generate a diff of this commit:
cvs rdiff -u -r1.387 -r1.388 src/sys/net/if.c

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



CVS commit: src

2017-03-24 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Fri Mar 24 11:46:52 UTC 2017

Modified Files:
src/distrib/sets/lists/base: shl.mi
src/lib/libossaudio: shlib_version

Log Message:
ABI of libossaudio did not change, so there was no need to bump the version
number.

Pointed out by mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.805 -r1.806 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.8 -r1.9 src/lib/libossaudio/shlib_version

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



CVS commit: src/share/misc

2017-03-24 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Fri Mar 24 12:49:43 UTC 2017

Modified Files:
src/share/misc: acronyms.comp

Log Message:
Add the more prevalent media access control (MAC) in addition to
medium access control


To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 src/share/misc/acronyms.comp

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



CVS commit: src/sys/compat/ossaudio

2017-03-24 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Fri Mar 24 14:32:29 UTC 2017

Modified Files:
src/sys/compat/ossaudio: ossaudio.c

Log Message:
Update compat/ossaudio with GETISPACE/GETOSPACE corrections from
libossaudio.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/ossaudio/ossaudio.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

2017-03-24 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Mar 24 17:09:37 UTC 2017

Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/i386/i386: machdep.c
src/sys/arch/x86/x86: x86_machdep.c
src/sys/arch/xen/conf: files.xen

Log Message:
Don't compile PMCs on Xen.


To generate a diff of this commit:
cvs rdiff -u -r1.254 -r1.255 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.781 -r1.782 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.89 -r1.90 src/sys/arch/x86/x86/x86_machdep.c
cvs rdiff -u -r1.145 -r1.146 src/sys/arch/xen/conf/files.xen

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



CVS commit: src/sys

2017-03-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar 24 17:40:44 UTC 2017

Modified Files:
src/sys/kern: kern_sig.c kern_syscall.c sys_process.c
src/sys/sys: proc.h ptrace.h

Log Message:
Instead of copying parts of sigswitch to process_stoptrace, use it directly.
Rename process_stoptrace -> proc_stoptrace and put it in kern_sig.c so we
don't need to expose any more functions from it.


To generate a diff of this commit:
cvs rdiff -u -r1.333 -r1.334 src/sys/kern/kern_sig.c
cvs rdiff -u -r1.15 -r1.16 src/sys/kern/kern_syscall.c
cvs rdiff -u -r1.177 -r1.178 src/sys/kern/sys_process.c
cvs rdiff -u -r1.338 -r1.339 src/sys/sys/proc.h
cvs rdiff -u -r1.59 -r1.60 src/sys/sys/ptrace.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/amd64/amd64

2017-03-24 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Mar 24 18:03:32 UTC 2017

Modified Files:
src/sys/arch/amd64/amd64: amd64_trap.S

Log Message:
Unconditionnally save the segment registers - because we could have a
kernel %gs and a userland %es/%ds -, and explain why T_NMI is a special
case.

Note that checking %gs directly is not a good idea: recent CPUs have the
FSGSBASE instruction set, which allows userland to directly modify %gs
without going through the kernel. If we ever enable this set, we will have
to change this function, since we won't be able to test %gs against
VM_MIN_KERNEL_ADDRESS anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/amd64/amd64/amd64_trap.S

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



CVS commit: src

2017-03-24 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Mar 24 18:30:44 UTC 2017

Modified Files:
src/sys/arch/x86/x86: pmc.c
src/usr.bin/pmc: pmc.c

Log Message:
Drop support for 586 PMCs; the detection is broken, and I'm not sure the
code even works. No one has ever cared about this anyway, and we won't
maintain it.

While here, fix the mask on the counter - K7 and F10H have 48bit counters.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/x86/pmc.c
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/pmc/pmc.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

2017-03-24 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Mar 24 19:21:07 UTC 2017

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

Log Message:
Handle counter overflows, and sample with 50 events per interrupt.
It's a pre-requisite for real sampling. Overflows are not yet displayed by
pmc(1), but will be soon.


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

2017-03-24 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Mar 24 21:28:03 UTC 2017

Modified Files:
src/sys/dev/pci: wcfb.c

Log Message:
support screen blanking


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/wcfb.c

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



CVS commit: src/sys

2017-03-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Mar 24 21:43:21 UTC 2017

Modified Files:
src/sys/kern: kern_resource.c
src/sys/sys: sysctl.h

Log Message:
Add new sysctl variable proc.curproc.paxflags so a process can determine
which flags were set for it.  Define some values for the variable:

CTL_PROC_PAXFLAGS_{ASLR,MPROTECT,GUARD}


To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 src/sys/kern/kern_resource.c
cvs rdiff -u -r1.221 -r1.222 src/sys/sys/sysctl.h

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

2017-03-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Mar 24 21:44:13 UTC 2017

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

Log Message:
Document new proc.curproc.paxflags variable.


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/share/man/man7/sysctl.7

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

2017-03-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Mar 25 01:39:20 UTC 2017

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

Log Message:
Rather than ghecking system global state to see if mprotect might be
enabled, use the newly-committed sysctl proc.curproc.paxflags variable


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/sys/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/sys/arch/hp300/dev

2017-03-24 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Mar 25 01:48:31 UTC 2017

Modified Files:
src/sys/arch/hp300/dev: dnkbd.c

Log Message:
Send break signal to reset keyboard state before keyboard probe.

Now Apollo Domain keyboard is probed properly even after
any keys are typed before boot (i.e. on bootloader prompt).

Tested on 425e and A1630-82001 keyboard
(that were contributed by Miod Vallat).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/hp300/dev/dnkbd.c

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

2017-03-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Mar 25 05:51:28 UTC 2017

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

Log Message:
Improve some grammar, let verbs agree in number with their subjects.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/share/man/man7/sysctl.7

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



CVS commit: src/sys/sys

2017-03-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Mar 25 05:55:36 UTC 2017

Modified Files:
src/sys/sys: sysctl.h

Log Message:
Update a comment.  No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.222 -r1.223 src/sys/sys/sysctl.h

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

2017-03-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Mar 25 05:58:50 UTC 2017

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

Log Message:
A couple more minor changes for readability.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/share/man/man7/sysctl.7

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