CVS commit: src/sys

2020-04-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Apr  6 08:20:05 UTC 2020

Modified Files:
src/sys/kern: kern_exec.c kern_fork.c kern_proc.c kern_sig.c
src/sys/sys: proc.h

Log Message:
Reintroduce struct proc::p_oppid

Relying on p_opptr is not safe as there is a race between:
 - spawner giving a birth to a child process and being killed
 - spawnee accessng p_opptr and reporting TRAP_CHLD

PR kern/54786 by Andreas Gustafsson


To generate a diff of this commit:
cvs rdiff -u -r1.494 -r1.495 src/sys/kern/kern_exec.c
cvs rdiff -u -r1.220 -r1.221 src/sys/kern/kern_fork.c
cvs rdiff -u -r1.242 -r1.243 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.386 -r1.387 src/sys/kern/kern_sig.c
cvs rdiff -u -r1.361 -r1.362 src/sys/sys/proc.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/man9

2020-04-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Apr  6 08:26:34 UTC 2020

Modified Files:
src/share/man/man9: pool_cache.9

Log Message:
Remove copy-paste garbage.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man9/pool_cache.9

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



CVS commit: src/sys/arch/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 08:26:32 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
set rxreq_gntref to GRANT_INVALID_REF immediately after revoking
access, so it's clear where it comes from


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/arch/xen/xen/if_xennet_xenbus.c

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



CVS commit: src/sys/sys

2020-04-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Apr  6 08:28:53 UTC 2020

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

Log Message:
Welcome to 9.99.55!

struct proc regained p_oppid.


To generate a diff of this commit:
cvs rdiff -u -r1.657 -r1.658 src/sys/sys/param.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

2020-04-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Apr  6 09:24:50 UTC 2020

Modified Files:
src/sys/arch/x86/include: specialreg.h
src/sys/arch/x86/x86: tsc.c

Log Message:
 Rename CPUID_APM_TSC to CPUID_APM_ITSC. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sys/arch/x86/include/specialreg.h
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/x86/x86/tsc.c

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



CVS commit: src/sys/sys

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 09:32:54 UTC 2020

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

Log Message:
define M_CSUM_BLANK, eventually to be used by xennet(4)/xvif(4) to offload
checksums to NIC hw


To generate a diff of this commit:
cvs rdiff -u -r1.226 -r1.227 src/sys/sys/mbuf.h

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



CVS commit: src/usr.sbin/cpuctl/arch

2020-04-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Apr  6 09:46:21 UTC 2020

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 Remove ci_max_ext_cpuid because it's the same as ci_cpuid_extlevel.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/usr.sbin/cpuctl/arch/i386.c

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



CVS commit: src/usr.sbin/cpuctl/arch

2020-04-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Apr  6 09:48:44 UTC 2020

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 Print CPUID 0x8007 %edx on both Intel and AMD.


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/usr.sbin/cpuctl/arch/i386.c

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



CVS commit: src/sbin/fsck_ffs

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 09:54:24 UTC 2020

Modified Files:
src/sbin/fsck_ffs: main.c

Log Message:
Sync "common" declarations with ifdefs in header.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sbin/fsck_ffs/main.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/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 10:05:38 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
save some memory - no need to embed sc inside struct xennet_rxreq


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/arch/xen/xen/if_xennet_xenbus.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/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 10:33:10 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
remove some unnecessary spl*() calls, and fix the rxreq va/pa deallocation
in xennet_xenbus_detach()


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/xen/xen/if_xennet_xenbus.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/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 10:44:44 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
remove some XENNET_DEBUG code which causes kernel faults


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

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 11:57:52 UTC 2020

Modified Files:
src/sys/arch/alpha/conf: INSTALL

Log Message:
Slightly bump ramdisk space


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/arch/alpha/conf/INSTALL

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



CVS commit: src/distrib/alpha/instkernel/ramdisk

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 11:58:10 UTC 2020

Modified Files:
src/distrib/alpha/instkernel/ramdisk: Makefile

Log Message:
Use full available ram disk space


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/distrib/alpha/instkernel/ramdisk/Makefile

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



CVS commit: src/usr.sbin/postinstall

2020-04-06 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Apr  6 13:10:48 UTC 2020

Modified Files:
src/usr.sbin/postinstall: postinstall.in

Log Message:
postinstall: fix contents_owner to return an error on error

find returning nothing via stdout but does return an error is an error.
Fixes the case where dhcpcd chroot db directory isn't owned by _dhcpcd.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/postinstall/postinstall.in

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



CVS commit: src/distrib/cobalt/ramdisk

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 13:28:15 UTC 2020

Modified Files:
src/distrib/cobalt/ramdisk: Makefile

Log Message:
Sync image size with available space reserved in the RAMDISK kernel


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/distrib/cobalt/ramdisk/Makefile

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



CVS commit: src/sys/fs/udf

2020-04-06 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Mon Apr  6 14:31:06 UTC 2020

Modified Files:
src/sys/fs/udf: udf_subr.c

Log Message:
udf_get_node(): fix typo and honor "lktype" argument.


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/sys/fs/udf/udf_subr.c

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



CVS commit: [netbsd-9] src/sys/dev/wscons

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 14:44:15 UTC 2020

Modified Files:
src/sys/dev/wscons [netbsd-9]: wsevent.c

Log Message:
Pull up following revision(s) (requested by pgoyette in ticket #820):

sys/dev/wscons/wsevent.c: revision 1.43
sys/dev/wscons/wsevent.c: revision 1.44

Make default protocol version used by wscons selectable and default
to the current version.

Fixes PR 55103.

KNF (Format block comment)
NFCI


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.42.4.1 src/sys/dev/wscons/wsevent.c

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



CVS commit: [netbsd-9] src/sys/dev/dkwedge

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 14:53:33 UTC 2020

Modified Files:
src/sys/dev/dkwedge [netbsd-9]: dk.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #822):

sys/dev/dkwedge/dk.c: revision 1.99

Allow dumping to cgd(4) on a dk(4).

(Technically this also allows dumping to a dk(4) on which there
happens to be a cgd(4) configured, but I'm not sure how to
distinguish that case here.  So don't do that!)


To generate a diff of this commit:
cvs rdiff -u -r1.97.8.1 -r1.97.8.2 src/sys/dev/dkwedge/dk.c

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



CVS commit: [netbsd-9] src/sys/dev

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 14:57:42 UTC 2020

Modified Files:
src/sys/dev [netbsd-9]: cgd.c cgdvar.h

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #823):

sys/dev/cgdvar.h: revision 1.19
sys/dev/cgd.c: revision 1.122
sys/dev/cgd.c: revision 1.123
sys/dev/cgd.c: revision 1.124

Defer crypto operations to a workqueue and make it utilize all CPUs.

Make device mpsafe.

Some code cleanup.

Don't wait for data buffer.

cgd: switch from malloc(9) to kmem(9)
XXX might be worthwhile to use pool_cache(9) in the write path


To generate a diff of this commit:
cvs rdiff -u -r1.116.10.2 -r1.116.10.3 src/sys/dev/cgd.c
cvs rdiff -u -r1.18 -r1.18.24.1 src/sys/dev/cgdvar.h

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



CVS commit: [netbsd-9] src/doc

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 14:59:48 UTC 2020

Modified Files:
src/doc [netbsd-9]: CHANGES-9.1

Log Message:
Tickets #820, #822, #823


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.30 -r1.1.2.31 src/doc/CHANGES-9.1

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



CVS commit: src/sys/arch/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 15:30:52 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
#undef XENNET_DEBUG, accidentaly left enabled in previous commit


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/xen/xen/if_xennet_xenbus.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/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 16:43:34 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
make a pass on locking, replacing spl*() calls with mutexes:
- sc_tx_lock covers any access to tx list, tx ring, and writes to
  if_flags and if_itimer
- sc_rx_lock covers any access to rx list, tx ring, and free tx counter

fix suspend and detach to work again - recent softintr changes made
xennet_tx_complete() not actually being called, because the call
in xennet_handler() was after IFF_RUNNING check; now it's called
directly rather than triggering softint, with updates locking it's safe

enable DVF_DETACH_SHUTDOWN for xennet(4), though the call only
triggers notification to backend to close, leaves actual detach to
xenwatch_thread


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/sys/arch/xen/xen/if_xennet_xenbus.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/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 17:55:51 UTC 2020

Modified Files:
src/sys/arch/xen/xen: xenevt.c

Log Message:
just pass true as known_mpsafe for interrupt establish, drop the
(level != IPL_VM); NFCI, this uses IPL_HIGH so was mpsafe already


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/xen/xen/xenevt.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/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 18:02:33 UTC 2020

Modified Files:
src/sys/arch/xen/include: evtchn.h
src/sys/arch/xen/x86: xen_intr.c
src/sys/arch/xen/xen: evtchn.c

Log Message:
remove restriction on interrupt level for MP-safe interrupt handlers


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/xen/include/evtchn.h
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/xen/x86/xen_intr.c
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/xen/xen/evtchn.c

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



CVS commit: src/doc

2020-04-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr  6 18:15:57 UTC 2020

Modified Files:
src/doc: BRANCHES

Log Message:
Document the phil-wifi branch


To generate a diff of this commit:
cvs rdiff -u -r1.352 -r1.353 src/doc/BRANCHES

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



CVS commit: src/sys/arch/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 18:23:21 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
convert to IFEF_MPSAFE, also enable interrupt handler without biglock

no performance difference observed compared to version before change,
for neither UP nor MP DomU


To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 src/sys/arch/xen/xen/if_xennet_xenbus.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/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 19:26:00 UTC 2020

Modified Files:
src/sys/arch/xen/include: evtchn.h
src/sys/arch/xen/x86: xen_intr.c
src/sys/arch/xen/xen: evtchn.c

Log Message:
add known_mpsafe parameter also to pirq_establish(), and pass the parameter
to underlying event_set_handler()


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/xen/include/evtchn.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/xen/x86/xen_intr.c
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/xen/xen/evtchn.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

2020-04-06 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Mon Apr  6 19:28:21 UTC 2020

Modified Files:
src/sys/arch/amd64/conf: XEN3_PVHVM
src/sys/arch/i386/conf: XEN3PAE_PVHVM

Log Message:
use conf/filesystems.config, fix missing PTYFS


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amd64/conf/XEN3_PVHVM
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/i386/conf/XEN3PAE_PVHVM

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



CVS commit: src/sys/arch/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 19:52:38 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c xennetback_xenbus.c

Log Message:
pass and use feature-ipv6-csum-offload for ipv6 csum support, matches
Linux Dom0/DomU


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/sys/arch/xen/xen/if_xennet_xenbus.c
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/xen/xen/xennetback_xenbus.c

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



CVS commit: src/usr.bin/man

2020-04-06 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Apr  6 19:53:22 UTC 2020

Modified Files:
src/usr.bin/man: man.c

Log Message:
Exit successfully after printing the search path, stop further processing.

Continuing to process had the unintended effect that `man` failed to find
a matching manual page for {EMPTY LIST OF REQUESTED MANUAL PAGES}, and
exited with 1.

Prompted by a fish shell snippet that tried and failed to distinguish between
FreeBSD man (-p takes argument) and NetBSD man (-p no argument) by comparing
`man -p` exit code.

ok riastradh, logix (which also pointed out the manual page SYNOPSIS is
saying man -p should be used this way).


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/usr.bin/man/man.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/xen/xen

2020-04-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  6 19:58:09 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
adjust previous - set the Tx flag only when the feature supported, instead
of first setting it and then masking it when unsupported


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/arch/xen/xen/if_xennet_xenbus.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/riscv/riscv

2020-04-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Apr  6 20:26:17 UTC 2020

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

Log Message:
Whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/riscv/trap.c

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