258021 Commits

Author SHA1 Message Date
msaitoh
80f24be20f Add 300 series chipset support. 2018-04-09 15:36:00 +00:00
msaitoh
86d4e27e30 Regen. 2018-04-09 15:34:16 +00:00
msaitoh
e6809f2eb9 Add new I219 devices (using with 300 series chipset). 2018-04-09 15:33:54 +00:00
jakllsch
788f6dde60 Use ostype from <sys/systm.h> instead of a literal "NetBSD" for the
default root hub vendor string.
2018-04-09 15:26:29 +00:00
christos
e5ff1cf5fd Simplify so we don't have to hard-code the key filenames in two places. 2018-04-09 15:02:39 +00:00
maxv
00a2f9f8be Add KASSERT. The input point expects struct ether_header to be there.
Now, I'm wondering whether it can be triggered by L2 encapsulation
protocols - they may not provide a contiguous area.
2018-04-09 11:35:22 +00:00
maxv
ce5bc9fcd8 Minor stylistic changes, add XXX and fix typo. No functional change. 2018-04-09 11:05:59 +00:00
knakahara
bdeac8c5e7 Improve comment. Pointed out by maxv@n.o, thanks. 2018-04-09 10:32:32 +00:00
jmcneill
998934b30a Use AC97_SLOT_* definitions instead of magic numbers. NFC. 2018-04-09 10:16:46 +00:00
jmcneill
86232d6e9d Add AC-link slot assignment definitions. 2018-04-09 10:15:57 +00:00
knakahara
ee84f251f9 Fix l2tp(4) alignment check. Pointed out and reviewed by k-goda@IIJ.
The alignment check should be done for the address of m_data instead of
the value of m_data.

XXX pullup-8
2018-04-09 10:06:59 +00:00
msaitoh
36b1e8e66b Regen. 2018-04-09 07:22:03 +00:00
msaitoh
33057015cc Add Intel 300 series devices. 2018-04-09 07:21:35 +00:00
wiz
e956e7c3f3 Use \(em instead of --. 2018-04-09 07:08:43 +00:00
wiz
883cee82b3 Sort option descripts, fix markups, fix typos. 2018-04-09 06:57:01 +00:00
wiz
051f873718 New sentence, new line. Sort SEE ALSO. Remove Xr to non-existing man page. 2018-04-09 06:54:47 +00:00
yamaguchi
18cffba26c Removed the unnecessary order check of key_lookup_sa
key_prefered_oldsa flag can change the sa to use if an sah
has multiple sav. However the multiple saves whose protocol
is ah, esp, or tcp cannot exist because their duplications
are checked by the spi value. Although the multiple saves
can exist in the case of ipcomp, the values using in the
post processing are same between the saves.

For those reasons, it is no need to select an sav by its
lifetime.
In addition, FreeBSD has already remove this.

reviewed by ozaki-r@n.o, thanks.
2018-04-09 06:26:05 +00:00
joerg
4d3469e188 Fix clang build by adding __dead annotations. 2018-04-08 21:56:48 +00:00
kamil
2e7534f345 Add check in ATF tests for security.models.extensions.user_set_dbregs
Introduce a new function can_we_set_dbregs() in the ATF ptrace(2) tests.
It uses lazy-bool evaluation whether a process can call PT_SETDBREGS.

In case of not being able to do so, print a message and mark a test
as skipped:

  Either run this test as root or set sysctl(3)
  security.models.extensions.user_set_dbregs to 1

No functional change intended to the code flow of the existing tested
scenarios.

Sponsored by <The NetBSD Foundation>
2018-04-08 17:20:18 +00:00
jmcneill
a48b0618c9 add nvidia-firmware license 2018-04-08 16:57:07 +00:00
mlelstv
ffae521c1c increase sshramdisk from 24000k to 28000k. 2018-04-08 15:48:39 +00:00
christos
5504495f67 regen for netbsd-stdint.h inclusion 2018-04-08 15:11:25 +00:00
christos
2d0ff0b4eb include nbsd_tm_file for ppc netbsd so that we get netbsd-stdint.h so in
order to define __{U,}INT_LEAST{8,16,32,64}_{MAX,TYPE}__ part of which are
needed for stdatomic.h
2018-04-08 15:10:53 +00:00
kamil
615c430a22 Add new sysctl(3) entry: security.models.extensions.user_set_dbregs
Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same
level of sysctl(3) switches.

Allow to read unconditionally Debug Registers (no change here). This is
convenient as even if a user of a debugger does not use hardware assisted
watchpoints/breakpoints, a debugger can still prompt these values to store
in an internal cache with context of registers. Reading them should have
no security concerns.

Add a paranoid MI switch that prohibits by default setting these registers
by a regular user (non-superuser). Make this switch disabled by default.
There are enough reserved bits out there to allow using them
unconditionally on hardened hosts.

Features shipped with Debug Registers are optional features in debuggers.
There is no reduction in elementary functionality.

Reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2018-04-08 14:46:32 +00:00
kamil
a8eeb4bcc0 Add paranoid code to X86 Debug Registers
Reset certain bits in DR6 and DR7 in x86_dbregs_setup_initdbstate().

Reset X86_BREAKPOINT_CONDITION_DETECTED in DR6.
Reset X86_DR7_GENERAL_DETECT_ENABLE in DR7.

It's allowed by devices or software before the kernel boot, to
use these registers for their own purposes. Handle this paranoid case
explicitly setting the mentioned bits to zero.

Sponsored by <The NetBSD Foundation>
2018-04-08 14:21:23 +00:00
christos
fb67920fbe Protect ip_dad_count with if NARP > 0 to fix compilation 2018-04-08 13:52:22 +00:00
christos
4fd06914cd remove format checker; cannot work because of %#a (ip address printing). 2018-04-08 13:43:29 +00:00
christos
ff7da8bd8e fix compilation for non LDAP
remove error comment
2018-04-08 13:39:42 +00:00
jmcneill
03f0eed079 Remove COM_AWIN option 2018-04-08 13:38:31 +00:00
jmcneill
db67e7ed78 Remove MOTG_ALLWINNER option 2018-04-08 13:36:37 +00:00
jmcneill
5a38b8e236 Remove old Allwinner port. 2018-04-08 13:19:17 +00:00
maxv
95ba030c14 Remove the ipre_mlast field and the TRAVERSE macro.
The goal was to store in ipre_mlast the last mbuf of the chain, so that
m_cat could be called on it. But it's not needed, since m_cat already
does the equivalent of TRAVERSE itself.

If it were needed, there would be a bug, since we don't call TRAVERSE on
ipre_mlast when creating a new reassembly entry.
2018-04-08 12:18:06 +00:00
mlelstv
113ea558d0 Avoid rounding errors for timeout values. 2018-04-08 11:57:43 +00:00
maxv
3b1b66cce9 Remove unused field, and sync comment with reality. 2018-04-08 11:50:46 +00:00
mlelstv
3211dce1df expose pmf debug switches with sysctl. 2018-04-08 11:46:13 +00:00
mlelstv
90159199e8 limits are bytes, vm sizes are clicks. 2018-04-08 11:43:01 +00:00
mlelstv
3103bce53a Re-evaluate drive selection to catch hog-plug devices. 2018-04-08 11:37:31 +00:00
leot
178060e3f8 Delete a leading space (` ').
Noticed via `NetBSD Code Changes' RSS feed that merged the last two news
entries.
2018-04-08 10:56:05 +00:00
bouyer
467dc4eeb1 Remove the call to vfp_fpscr_handler() from vfp_handler(). It actually never
avoids a full FPU switch, and costs a function call and a few tests.

Discussed on port-arm@ on october 2017:
http://mail-index.netbsd.org/port-arm/2017/10/16/msg004411.html
2018-04-08 09:19:27 +00:00
maxv
64f4aca696 Move NPF's todo list into src/doc/TODO.npf, and add some entries. After a
conversation (two months ago) with rmind and sborrill.
2018-04-08 08:57:37 +00:00
snj
107d499d1f fix date 2018-04-08 06:01:04 +00:00
maxv
930ecb5bfa Fix bug I introduced in previous commit. 2018-04-08 05:51:45 +00:00
christos
382dfac1e5 add a Makefile 2018-04-08 01:30:01 +00:00
mrg
ae527bc777 turn on GCC spectre v2 mitigation options.
XXX: amd64 ALL doesn't build for me right now
2018-04-08 00:52:38 +00:00
christos
e2730066f6 update bind and dhcp 2018-04-07 22:41:55 +00:00
christos
6afdf80087 moved dhcp to mpl 2018-04-07 22:39:53 +00:00
christos
cd1c9b8704 add mpl 2018-04-07 22:39:31 +00:00
christos
ce893c7eea sync our changes. 2018-04-07 22:37:29 +00:00
christos
a41ce0a430 now mpl 2018-04-07 22:34:51 +00:00
christos
6fb29d2928 import dhcp-4.4.1 2018-04-07 22:34:17 +00:00