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

2017-09-02 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Sep  3 06:24:49 UTC 2017

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

Log Message:
Remove redundant static function declaration


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

2017-09-02 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Sep  2 22:14:29 UTC 2017

Modified Files:
src/share/man/man4: mc.4

Log Message:
Remove reference to non-existing mac68k/bm.4.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man4/mc.4

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



CVS commit: src/share/man/man4

2017-09-02 Thread Sean Cole
Module Name:src
Committed By:   scole
Date:   Sat Sep  2 21:27:08 UTC 2017

Modified Files:
src/share/man/man4: mc.4

Log Message:
Add powermac 7200 to list of supported hardware


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/mc.4

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

2017-09-02 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Sep  2 17:35:07 UTC 2017

Modified Files:
src/sys/arch/arm/dts: sun8i-h3.dtsi

Log Message:
Add a simplefb node for H3 SoCs


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/dts/sun8i-h3.dtsi

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



CVS commit: src/sys/arch/x68k/dev

2017-09-02 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sat Sep  2 15:40:31 UTC 2017

Modified Files:
src/sys/arch/x68k/dev: vs.c

Log Message:
- Finally MI audio supports 4bit precision format without null_filter hack!
- Fix reusing play/rec argument as local variables.  It is in/out parameter.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/x68k/dev/vs.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

2017-09-02 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sat Sep  2 15:26:44 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Separete sc->sc_pr/rr (mix ring) block size and hwvc->sc_mpr/mrr (hw ring)
block size.  Now MI audio supports(revives) device with different precision
than mix ring's precision like vs(4) (4bit ADPCM).


To generate a diff of this commit:
cvs rdiff -u -r1.405 -r1.406 src/sys/dev/audio.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

2017-09-02 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sat Sep  2 13:28:11 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Remove duplicated code.
For hwvc, audio_calc_blksize() appears soon again.
For user vc, the userland format and HW format are separeted, so
audio_calc_blksize() here is no longer necessary.  In addition,
vc->sc_mpr.blksize is already initialized in audio_open().


To generate a diff of this commit:
cvs rdiff -u -r1.404 -r1.405 src/sys/dev/audio.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

2017-09-02 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sat Sep  2 13:22:51 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Don't assign sc->sc_pr/rr.blksize in audio_initbufs().
For hwvc, it is calculated in audiosetinfno().  And the user vc should
not change sc->sc_pr/rr.blksize.  In addition, this assignments appear twice.


To generate a diff of this commit:
cvs rdiff -u -r1.403 -r1.404 src/sys/dev/audio.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/ic

2017-09-02 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sat Sep  2 12:57:35 UTC 2017

Modified Files:
src/sys/dev/ic: msm6258.c msm6258var.h

Log Message:
Revert previous local conversion for vs(4).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/ic/msm6258.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ic/msm6258var.h

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



CVS commit: src/sys

2017-09-02 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Sep  2 12:57:03 UTC 2017

Modified Files:
src/sys/arch/amd64/amd64: gdt.c
src/sys/arch/i386/i386: gdt.c
src/sys/compat/linux32/arch/amd64: linux32_machdep.c

Log Message:
Fix a subtle ring0 escalation vulnerability in amd64, and implement a
mitigation against similar bugs.

The operations on segment registers can generate a page fault if there is
an issue when touching the in-memory gdt. Theoretically, it is never
supposed to happen, since the gdt is mapped correctly. However, in the
kernel we allow the gdt to be resized, and to do that, we allocate the
maximum amount of va needed by it, but only kenter a few pages until we
need more. Moreover, to avoid reloading the gdt each time we grow it, the
'size' field of gdtr is set to the maximum value. All of this means that
if a mov or iretq is done with a segment register whose index hits a page
that has not been kentered, a page fault is sent.

Such a page fault, if received in kernel mode, does not trigger a swapgs
on amd64; in other words, the kernel would be re-entered with the userland
tls.

And there just happens to be a place in compat_linux32 where the index of
%cs is controlled by userland, making it easy to trigger the page fault
and get kernel privileges.

The mitigation simply consists in abandoning the gdt_grow mechanism and
allocating/kentering the maximum size right away, in such a way that no
page fault can be triggered because of segment registers.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/amd64/amd64/gdt.c
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/i386/i386/gdt.c
cvs rdiff -u -r1.38 -r1.39 \
src/sys/compat/linux32/arch/amd64/linux32_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/arch/x68k/dev

2017-09-02 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sat Sep  2 12:52:55 UTC 2017

Modified Files:
src/sys/arch/x68k/dev: vs.c vsvar.h

Log Message:
- Revert temporary local conversion introduced at rev 1.43.
- But does not revert to trigger method.  trigger method is not suitable for
  x68k ADPCM+DMA mechanism.
- Don't (re)start ADPCM when DMA is running.  This solves the noise.
  From Y.Sugahara.
- Cache dmac xfer.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/x68k/dev/vs.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x68k/dev/vsvar.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/arm/arm32

2017-09-02 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Sep  2 12:24:39 UTC 2017

Modified Files:
src/sys/arch/arm/arm32: pmap.c

Log Message:
Perform tracking of unmanaged mappings for VIVT and call vac_me_harder
as appropriate.

PR/52102 shark: ffs_newvnode panic when unpacking sets installing -current

Thanks to Felix Deichmann for bisecting the problem and testing the fix.


To generate a diff of this commit:
cvs rdiff -u -r1.355 -r1.356 src/sys/arch/arm/arm32/pmap.c

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



CVS commit: [jdolecek-ncq] src/sys/dev/ata

2017-09-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Sep  2 12:01:25 UTC 2017

Modified Files:
src/sys/dev/ata [jdolecek-ncq]: wdvar.h

Log Message:
include opt_wd.h instead of opt_wd_softbadsect.h, the option doesn't have 
private file any more


To generate a diff of this commit:
cvs rdiff -u -r1.43.4.7 -r1.43.4.8 src/sys/dev/ata/wdvar.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/arm/arm32

2017-09-02 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Sep  2 11:57:09 UTC 2017

Modified Files:
src/sys/arch/arm/arm32: pmap.c

Log Message:
KNF


To generate a diff of this commit:
cvs rdiff -u -r1.354 -r1.355 src/sys/arch/arm/arm32/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/arm32

2017-09-02 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Sep  2 11:52:30 UTC 2017

Modified Files:
src/sys/arch/arm/arm32: pmap.c

Log Message:
Remove an #ifdef PMAP_CACHE_VIVT that's inside #ifdef PMAP_CACHE_VIVT
already


To generate a diff of this commit:
cvs rdiff -u -r1.353 -r1.354 src/sys/arch/arm/arm32/pmap.c

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