255676 Commits

Author SHA1 Message Date
knakahara
4ab3af3e3e add ipsec(4) interface, which is used for route-based VPN.
man and ATF are added later, please see man for details.

reviewed by christos@n.o, joerg@n.o and ozaki-r@n.o, thanks.
https://mail-index.netbsd.org/tech-net/2017/12/18/msg006557.html
2018-01-10 10:56:30 +00:00
pgoyette
0de97cd56d Add SVS - Separate Virtual Space 2018-01-10 08:47:30 +00:00
ozaki-r
62fd3b8c8a Get rid of unnecessary ifdef for IFT_IEEE80211 2018-01-10 07:34:31 +00:00
ozaki-r
013cd23759 Fix a deadlock on callout_halt of nd6_dad_timer
We must not call callout_halt of nd6_dad_timer with holding nd6_dad_lock because
the lock is taken in nd6_dad_timer. Once softnet_lock goes away, we can pass the
lock to callout_halt, but for now we cannot.
2018-01-10 07:11:38 +00:00
msaitoh
5bd8e5c45d Print Intel cpuid 7 %edx.
Example output of cpuctl -v identify 0:

+cpu0: 00000007: 00000000 000027ab 00000000 0c000000
(snip)
+cpu0: SEF edx 0xc000000<IBRS,STIBP>
2018-01-10 07:08:35 +00:00
msaitoh
bef4c2149e Add Intel cpuid 7 %edx IBRS(IBPB Speculation Control) and
STIBP(STIBP Speculation Control) from OpenBSD.
2018-01-10 07:04:54 +00:00
msaitoh
b2bedf14b6 Add comment. 2018-01-10 04:45:24 +00:00
ozaki-r
5f7710ea35 Don't start callouts for domains before attaching domains on rump kernels
On rump kernels, the callouts for domains, pffasttimo and pfslowtimo, started
before domains were attached. Normally the callouts were dispatched after
domain attaches (initializations) finished, however, under load the callouts
could be executed prior to the attaches, resulting in that the callouts accessed
unallocated or uninitialized resources.
2018-01-10 02:50:26 +00:00
mrg
78dff00194 s/level 25/level 15/ -- there's nothing higher than 15 on sparc, and
this is talking about NMI.
2018-01-10 01:49:05 +00:00
ozaki-r
9aa00be0ba Check MP-safety in ifa_insert and ifa_remove only for IFEF_MPSAFE drivers
Eventually the assertions should pass for all drivers, however, at this point
it's too eager.

Fix PR kern/52895
2018-01-10 01:22:26 +00:00
pgoyette
fcca9c80d6 KASSERT() that kthread_join()'s target is expecting to be joined.
As discussed on IRC.
2018-01-09 22:58:45 +00:00
kamil
dab4556f43 Correct the signature of kvm_getproc2(3) in the man-page.
The elemsize argument is of type "size_t", not "int".

Sponsored by <The NetBSD Foundation>
2018-01-09 21:17:45 +00:00
kamil
c5ed1004cc Correct the signature of kvm_getlwps(3) in the man-page.
The elemsize argument is of type "size_t", not "int *".

Sponsored by <The NetBSD Foundation>
2018-01-09 21:13:59 +00:00
maya
45b55008a4 remove struct emul's e_fault.
It used to be used by COMPAT_IRIX for the purpose of overriding
uvm_fault (only implemented in MIPS), now removed.

Ride 8.99.12 version bump.
2018-01-09 20:55:42 +00:00
christos
219bb927fe Use a queue of deferred entries to delete routes instead of a fixed stack
of 10. Otherwise we can overflow in route deletions from the rexmit timer.
XXX: pullup-8
2018-01-09 19:52:29 +00:00
christos
cdd509fe61 tidy up debugging (make it compile with the 'ALL' kernel) 2018-01-09 17:58:09 +00:00
martin
cea0645f8c Add EVFILT_FS 2018-01-09 17:35:29 +00:00
christos
0d40f5669e fix module attachment and cdevsw 2018-01-09 16:19:39 +00:00
christos
63d9fe88a0 fix autofs pseudo device 2018-01-09 16:18:35 +00:00
martin
ddaa1d089b Skip the test on non-modular kernels 2018-01-09 15:16:02 +00:00
martin
602913a78d Include <sys/atomic.h> for the atomic funtions used in here. 2018-01-09 13:56:00 +00:00
martin
1e774d3bb5 Use fseeko instead of fseek to fix the build on some 32bit architectures 2018-01-09 10:47:57 +00:00
wiz
f24dbfeb68 File system police. Add RCS Id. Improve SYNOPSIS. Use more markup. 2018-01-09 09:41:29 +00:00
wiz
2df58e1698 File system police. Sort options. Add RCS Id. Use more markup. Wording. 2018-01-09 09:39:07 +00:00
wiz
67dee3c787 Mostly formatting improvements. 2018-01-09 09:33:00 +00:00
wiz
3d7c11903b file system police. 2018-01-09 09:27:41 +00:00
wiz
e7721e081a Stop using Tn. New sentence, new line. 2018-01-09 09:24:22 +00:00
wiz
21a1a45729 Use Pa for paths. 2018-01-09 09:22:25 +00:00
wiz
c8d49655fe Remove superfluous Pp. 2018-01-09 09:21:41 +00:00
wiz
13b39a37b6 Stop using Tn. 2018-01-09 09:20:23 +00:00
msaitoh
50355ed04b Regen. 2018-01-09 09:19:27 +00:00
wiz
49e8d3a989 Add RCS Id. Simplify SYNOPSIS and remove loader.conf(5) reference. 2018-01-09 09:19:10 +00:00
msaitoh
e96fb9c2c4 Add Intel Apollo Lake devices. 2018-01-09 09:19:05 +00:00
wiz
ad36999f92 Stop using Tn. 2018-01-09 09:17:52 +00:00
wiz
5d07b5f046 Sort SEE ALSO. 2018-01-09 09:15:57 +00:00
msaitoh
386ff67d69 Regen. 2018-01-09 08:24:42 +00:00
msaitoh
d7a23054d7 - s/MMC/eMMC/ for Intel 0x0f14 (Bay Trail)
- Add Atom E3800 (Bay Trail) eMMC 4.5
2018-01-09 08:17:27 +00:00
msaitoh
6619617fbb Set mp_online = ture. I don't know the "best" location to set it true.
This change might fix PR#52886.
2018-01-09 04:55:43 +00:00
ozaki-r
8c09e9f90b Fix use-after-free of mbuf by ip6flow_create (one more)
XXX need pullup-[678]
2018-01-09 04:41:19 +00:00
nat
6a9f5fca12 Fix pad on systems with many cores/cpus:
* Introduce a lock to serialize attach/detach of pad devices.
	* Forcefully detach children of pad on close.
	* Be more carefull in pad_open with regards to config_detach only
	  if new instances of the pad device are created and fail to open.

Addresses PR kern/52889.

These changes were developed with and tested by pgoyette@.
2018-01-09 04:23:59 +00:00
ozaki-r
a29d76a139 Fix use-after-free of mbuf by ip6flow_create
This fixes recent failures of some ATF tests such as t_ipsec_tunnel_odd.

XXX need pullup-[678]
2018-01-09 04:21:26 +00:00
nat
433e65b8f1 Forcefully detach children of audio instances.
This addresses part of PR kern/52889 as children of pad(4) were not
detaching.
2018-01-09 04:14:21 +00:00
nat
df76725601 Rework of play/rec threads to ensure effective use of locks.
Addresses part of PR kern/52889 where the mixing thread would not exit on
audio detach.
2018-01-09 04:10:27 +00:00
christos
b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
christos
c4daf5eae5 add strndup and an alias to strdup. 2018-01-09 01:53:55 +00:00
christos
8ffa3f42a9 Add one more file, still does not build. 2018-01-09 01:51:20 +00:00
christos
cfe95f14f6 check the magic first in case we got passed a junk pointer. 2018-01-09 01:44:50 +00:00
knakahara
8a37362ba6 Fix PR kern/52910. Reported and implemented a patch by Sevan Janiyan, thanks. 2018-01-08 23:34:56 +00:00
knakahara
d88bfb301b Committed debugging logs by mistake, sorry. Revert cryoto.c:r.1.103 and ip6_flow.c:r.1.37. 2018-01-08 23:33:40 +00:00
knakahara
f2516b4ae6 Fix PR kern/52910. Reported and implemented a patch by Sevan Janiyan, thanks. 2018-01-08 23:23:25 +00:00