CVS commit: src/sys/conf

2016-05-13 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri May 13 07:41:47 UTC 2016

Modified Files:
src/sys/conf: majors

Log Message:
Clarify the intention here after discussing it with soda@


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/conf/majors

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

2016-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri May 13 10:18:02 UTC 2016

Modified Files:
src/sys/arch/i386/conf: kern.ldscript

Log Message:
Define __kernel_end.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/i386/conf/kern.ldscript

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-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri May 13 10:24:42 UTC 2016

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

Log Message:
Remap the rodata and data+bss segments with large pages on x86. There still
is a bug in the way the text segment is mapped, but I'll see later.


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 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/bin/sh

2016-05-13 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Fri May 13 10:32:52 UTC 2016

Modified Files:
src/bin/sh: eval.c

Log Message:
More fallout from the fix for PR bin/48875 - this one found just by
code reading, rather than any actual real use case failing.

With this script
f()
{
echo hello $1
}

exec 3>&1
echo $(
for i in a b c
do
echo @$i
f >&3
done >/tmp/foo
)
echo foo= $(cat /tmp/foo)

what should be output is

hello
hello
hello

foo= @a @b @c

but since the (my) 48875 fix the other day, we've been getting

hello
@b
hello
@c
hello

foo= @a

This fixes that.   I think (hope) this is the last of these fixes...


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/bin/sh/eval.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/amd64/include

2016-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri May 13 11:17:20 UTC 2016

Modified Files:
src/sys/arch/amd64/include: pte.h

Log Message:
KNF, so it appears aligned on NXR.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/include/pte.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-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri May 13 11:47:02 UTC 2016

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

Log Message:
Actually, make the NOX part amd64-specific. The secondary CPUs bug is not
yet fixed on i386.


To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 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/i386/i386

2016-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri May 13 13:24:01 UTC 2016

Modified Files:
src/sys/arch/i386/i386: copy.S

Log Message:
KNF a little, use C-style comments, and remove susword/fusword. No
functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/i386/i386/copy.S

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



CVS commit: src/tests/kernel

2016-05-13 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri May 13 13:22:29 UTC 2016

Modified Files:
src/tests/kernel: t_rnd.c

Log Message:
mark read_random xfail kern/51135


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/kernel/t_rnd.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/ia64/ia64

2016-05-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 13 13:40:56 UTC 2016

Modified Files:
src/sys/arch/ia64/ia64: ssc.c

Log Message:
>From scole_mail:
So here is a patch to get basic ski console output working.  The ski
simulator was decoding the wrong registers in ssccnputc() due to
automagically inlined ssc() which contains a "break" simulated system
call.

The ski loader "skiload" has almost exactly the same inline assembly
call for ssc(), but for whatever reason, (maybe ssc() and
ski_cons_putchar() are in different files?), the ssc() function didn't
get inlined and I/O worked fine.


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

2016-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri May 13 14:03:00 UTC 2016

Modified Files:
src/sys/arch/i386/i386: locore.S

Log Message:
Bring some amd64 swag. No functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/sys/arch/i386/i386/locore.S

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



CVS commit: src/doc

2016-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri May 13 14:09:38 UTC 2016

Modified Files:
src/doc: CHANGES

Log Message:
Mention SMEP.


To generate a diff of this commit:
cvs rdiff -u -r1.2159 -r1.2160 src/doc/CHANGES

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

2016-05-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 13 15:25:57 UTC 2016

Modified Files:
src/sys/external/bsd/drm2/include/drm: drm_wait_netbsd.h

Log Message:
We now use cpu_intr_p() all the time.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h

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



CVS commit: src/lib/libedit

2016-05-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 13 15:55:59 UTC 2016

Modified Files:
src/lib/libedit: readline.c

Log Message:
>From Bastian Maerkisch, via Igno Schwarze:

Even though section "2.3.3 Information About the History List"
of the history(3) info(1) manual only says

  -- Function: int where_history (void)
 Returns the offset of the current history element.

which maybe isn't completely clear, a plausible implementation
is that the offset returned is the same offset that can be used
for history_set_pos(), i.e. that it is 0 for the oldest entry
and increases with time, and that's how the GNU implementation
behaves indeed.

The libedit implementation, on the other hand, returns 1 for the
newest entry and increases going back in time.


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/lib/libedit/readline.c

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



CVS commit: src/sys/compat/netbsd32

2016-05-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 13 16:54:36 UTC 2016

Modified Files:
src/sys/compat/netbsd32: netbsd32_netbsd.c

Log Message:
clamp getrlimit the same way we clamp setrlimit


To generate a diff of this commit:
cvs rdiff -u -r1.199 -r1.200 src/sys/compat/netbsd32/netbsd32_netbsd.c

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



CVS commit: src/sys/kern

2016-05-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 13 17:33:43 UTC 2016

Modified Files:
src/sys/kern: exec_subr.c kern_pax.c

Log Message:
- make pax aslr stack eat up to 1/8 of the max stack space insted of 1/4
  and reduce the length of the randomization bits since this is unused.
- call the pax aslr stack function sooner so we don't need to re-adjust the
  stack size.
- adjust the stack max resource limit to account for the maximum space that
  can be lost by aslr
- tidy up debugging printfs


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/kern/exec_subr.c
cvs rdiff -u -r1.43 -r1.44 src/sys/kern/kern_pax.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/sparc64/sparc64

2016-05-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri May 13 21:21:25 UTC 2016

Modified Files:
src/sys/arch/sparc64/sparc64: locore.s

Log Message:
- ci_paddr is always 64-bit.
- intrlev is array of pointer.
- ih_ack is pointer.


To generate a diff of this commit:
cvs rdiff -u -r1.391 -r1.392 src/sys/arch/sparc64/sparc64/locore.s

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



CVS commit: src/sys/arch/sparc64/sparc64

2016-05-13 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Fri May 13 21:21:43 UTC 2016

Modified Files:
src/sys/arch/sparc64/sparc64: trap.c

Log Message:
Fixed typo in comment + reorder parameters for trap debug output to match 
function prototype for data_access_fault()


To generate a diff of this commit:
cvs rdiff -u -r1.182 -r1.183 src/sys/arch/sparc64/sparc64/trap.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/sparc64

2016-05-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri May 13 21:22:47 UTC 2016

Modified Files:
src/sys/arch/sparc64/dev: ebus_mainbus.c
src/sys/arch/sparc64/sparc64: machdep.c

Log Message:
Use newly introduced intrhand_alloc().


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sparc64/dev/ebus_mainbus.c
cvs rdiff -u -r1.283 -r1.284 src/sys/arch/sparc64/sparc64/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/sparc64/sparc64

2016-05-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri May 13 21:23:30 UTC 2016

Modified Files:
src/sys/arch/sparc64/sparc64: clock.c

Log Message:
Allocate interrupt handlers for clockintr and statintr dynamically.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/sys/arch/sparc64/sparc64/clock.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/sparc64/sparc64

2016-05-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri May 13 21:24:11 UTC 2016

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

Log Message:
Interrupt handlers are now allocated by kmem_zalloc(9), so free
them by kmem_free(9).


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/sparc64/sparc64/intr.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/sparc64/sparc64

2016-05-13 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Fri May 13 21:48:15 UTC 2016

Modified Files:
src/sys/arch/sparc64/sparc64: locore.s

Log Message:
sun4v: add missing implementation of sun4v_datatrap_tl0 so data_access_fault() 
is called - mostly from OpenBSD


To generate a diff of this commit:
cvs rdiff -u -r1.392 -r1.393 src/sys/arch/sparc64/sparc64/locore.s

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



CVS commit: src/tests/bin/sh

2016-05-13 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sat May 14 00:33:02 UTC 2016

Modified Files:
src/tests/bin/sh: t_redir.sh

Log Message:
Add another test for the 48875 fix fallout...


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/bin/sh/t_redir.sh

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

2016-05-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat May 14 06:49:34 UTC 2016

Modified Files:
src/sys/arch/i386/i386: locore.S

Log Message:
Define killkpt, and don't use _RELOC. Same as amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/sys/arch/i386/i386/locore.S

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