Commit Graph

257338 Commits

Author SHA1 Message Date
christos 222f47901a use the OpenSSL version of des_modes.7 since it is newer. 2018-03-15 18:40:16 +00:00
christos 21dde3b595 Don't barf if the ctf tools are not installed.
[perhaps warn?]
2018-03-15 13:44:45 +00:00
maxv 5011db990a Remove #ifdef XEN (Xen has its own cpu.c), and add a comment. 2018-03-15 09:17:31 +00:00
maxv 93a9237893 Add the PR_LASTHDR flag on the PFsync and CARP entries. Otherwise a
"require" IPsec policy is not enforced on them, and unauthenticated
packets will be accepted.

Tested with a require-AH configuration. Sent on tech-net@, no comment.
2018-03-15 08:15:21 +00:00
msaitoh 92ac5028d0 Add some changes from ix-3.2.17.tar.gz and r328265. Not fully synchronized.
Some others (e.g. sfp cage interrupt and bypass adapter  stuff) will be merged
later:
- Initialize firmware command buffer correctly in ixgbe_read_ee_hostif_X550()
  and ixgbe_read_ee_hostif_buffer_X550(). These functions are used when reading
  NVM.
- Fix a bug that ixgbe_mng_present() misunderstand management capability on
  X550 and newer on some environment. X550 changed FWSM bit definition.
  See X540 document and X550's document and compare them.
- Fix checksum calculation in ixgbe_set_fw_drv_ver_generic(). This function is
  not used in NetBSD.
- Add some unused funtions.
- Whitespace fix.
2018-03-15 06:48:51 +00:00
ozaki-r 79888c1003 Use db_printf instead of printf in ddb 2018-03-15 03:45:05 +00:00
christos 1ea57b9a78 tidy up 2018-03-15 03:22:23 +00:00
christos f31ca13583 finish moving the compat code out. 2018-03-15 03:21:58 +00:00
christos cf6b63b172 add uvm swap compat code. 2018-03-15 03:13:51 +00:00
ginsbach 617ab226ea Initialize ypbind_resp before first possible error return condition. 2018-03-15 02:25:31 +00:00
uwe 613a287d51 Start adding more gaudy markup. Use .Li or .Dv when referring to
parameters.  Use more .Ic and .Ar when defining syntax.

The manual is still rather inconsistent e.g. when referring to
parameters where it randomly uses both $0 and 0 or $@ and @ - but I'm
not shaving that yak at least for now.
2018-03-15 01:20:43 +00:00
christos 33ff5e3b54 Untangle the swapctl compat code mess. Welcome to lucky 13. 2018-03-15 00:48:13 +00:00
mrg 5ae6500fa6 complete the switch to xorgproto over *proto split packages
- remove old package makefiles
- update makekeys for Xfuncproto.h being a real file now
- clean up deleted package X11SRCDIR.pkg settings

this should be functionally equivalent.
2018-03-14 23:41:05 +00:00
maya 832f757f9d Don't left shift a negative, use unsigned for bit masks.
Appeases GCC 6 in some build configuration (ALL kernel)

ok uwe
2018-03-14 18:58:32 +00:00
maxv a28f31b51d Spectre V2 mitigation for certain families of AMD CPUs.
A new sysctl is added, machdep.spectreV2.mitigated, that controls whether
Spectre V2 is mitigated. For now it defaults to "false".

The code is written in such a way that there can be several methods. For
now only one method is supported, on AMD Families 10h, 12h and 16h, where
an MSR is available to disable branch prediction entirely.

Compile-tested on Intel, AMD will be tested soon.
2018-03-14 17:40:41 +00:00
maxv 98c836a82d ... and also add IBPB ... 2018-03-14 15:03:16 +00:00
maxv 1268fc173f Add the IBRS and STIBP MSRs. 2018-03-14 14:44:25 +00:00
maxv 029685e1dc Add IC_CFG.DIS_IND: "Disable Indirect Branch Predictor". Available (at
least) on AMD Families 10h, 12h and 16h.
2018-03-14 14:15:02 +00:00
rin 1a43a2d6aa Restore shlib version accidentally bumped in the previous commit.
Fix debug build for i386.
2018-03-14 13:23:31 +00:00
uwe abdb117cdc Compute tag width for the list of options in Argument List Processing,
mandoc *is* up to that.  Remove the part of the comment before the
list that was wondering about that.
2018-03-14 10:38:52 +00:00
uwe db273842a9 Small markup tweaks in Argument List Processing 2018-03-14 10:30:40 +00:00
uwe 7a8dcc3884 Instead of .Oo/.Oc use .Op directly where possible. 2018-03-14 09:46:45 +00:00
uwe 484f53204c Revert previous. Fix the real problem properly. 2018-03-14 09:42:37 +00:00
mrg 34d45f496e Xfuncproto.h is a normal file now. 2018-03-14 09:38:33 +00:00
maxv 9e585af820 Fix the "return-rst" rule on IPv6 packets.
The scopes needed to be set on the addresses before invoking ip6_output,
because ip6_output needs them. The reason they are not here already is
because pfil_run_hooks (in ip6_input) is called _before_ the kernel
initializes the scopes.

Until now ip6_output was always failing, and the IPv6-TCP-RST packet was
never actually sent.

Perhaps it would be better to have the kernel initialize the scopes
before invoking pfil_run_hooks, but several things will need to be fixed
in several places.

Tested with a simple TCPv6 server. Until now the client would block
waiting for an answer that never came; now it receives an RST right away
and closes the connection, as expected.

I believe that the same problem exists in the "return-icmp" rules, but I
can't investigate this right now (some problems with wireshark).
2018-03-14 09:32:04 +00:00
mrg 5b6e3f750b obsolete fontcacheproto.
prepare for xorgproto - split the non replaced list out.
2018-03-14 09:09:46 +00:00
mrg 4bb54eb227 reacharound framework for xorgproto. functionally identical
to the split *proto packages except we're dropping the long
obsolete fontcacheproto.

not used yet.
2018-03-14 08:55:35 +00:00
knakahara 38db08c668 Fix error checking in in6_gif_ctlinput().
if_gif.c:r1.133 introduces gif_update_variant() which ensure ifp->if_flags
is set IFF_RUNNING when gif_softc->gif_var->gv_{psrc,pdst} are not null.
So, in6_gif_ctlinput() is not required IFF_RUNNING checking. In contrast,
it is required gv_{psrc,pdst} NULL checking.
2018-03-14 07:56:32 +00:00
wiz b30e74889c Remove Ic macro without effect. 2018-03-14 07:53:14 +00:00
mrg 7e4cdcfd86 add xorgproto srcdir. 2018-03-14 07:35:56 +00:00
mrg 96e436f227 update for libdrm 2.4.91. 2018-03-14 07:23:00 +00:00
mrg c201ebe368 regenerate these for libxcb 1.13. 2018-03-14 06:47:28 +00:00
ryo ddcce67716 fix compile error on evbarm/EXYNOS. platform.h may be included from *.S 2018-03-14 06:35:31 +00:00
mrg ba5804a5a5 build Tekparse.hin VTparse.hin normally. 2018-03-14 06:06:40 +00:00
kamil ce34db38fd Add new ATF tests: kernel/t_zombie
New tests attempting to kill, stop, drop or revive a zombie:
 - signal1 (SIGKILL)
 - signal2 (SIGSTOP)
 - signal3 (SIGABRT)
 - signal4 (SIGHUP)
 - signal5 (SIGCONT)

New test race1 verifying whether there are any kernel races when processing
signals to zombies, executing in a loop for 5 seconds.

These tests were inspired by a kernel unexpected behavior when a lookup
of a dying process could result in two detected entities once as an alive
process and once as a zombie.

race1 is similar to t_ptrace_wait* race1, however without ptrace(2) involved.

Sponsored by <The NetBSD Foundation>
2018-03-14 02:13:47 +00:00
uwe caedaa46ad Try to improve markup in the Built-ins section.
Mostly sprinkle missing .Ic and .Ar
2018-03-13 23:03:21 +00:00
uwe f81efe159b Try to improve markup in the Parameter Expansion section. 2018-03-13 21:49:15 +00:00
uwe 0054fb0db8 Try to improve markup of the redirections definitions. 2018-03-13 21:04:57 +00:00
uwe 08ffbb4888 Fix horrendous markup abuse in the here-document example.
Consistently spell "here-document" in full.
2018-03-13 20:48:00 +00:00
uwe 121a1034cd Spell "here-document" with a hyphen, don't mark it up as a command. 2018-03-13 20:40:52 +00:00
uwe 9453809f25 Mark up "in" (of the "for" command) appropriately. 2018-03-13 20:39:25 +00:00
uwe 194117b0aa Use \(or not \*(Ba when discussing case patterns. 2018-03-13 20:29:13 +00:00
uwe 0bbb85ef5e Use \(em for em-dash 2018-03-13 20:18:16 +00:00
uwe 882c5e3aae Standalone | means \[ba] while we want \[or] so add \& protection to
the few places where it was missing.
2018-03-13 20:08:11 +00:00
uwe 4243789c21 .Dl is a a single line .Bd -literal -offset indent so don't abuse
multiple consecutive .Dl and use proper .Bd instead.
2018-03-13 19:43:52 +00:00
uwe e0885dda62 .Bd expects the display type to come first, so move -compact to the end. 2018-03-13 19:35:46 +00:00
uwe 5e8101b3eb Add missing word. 2018-03-13 19:18:53 +00:00
maxv 54954d76d2 Fix wrong order; first enable WP, then enable interrupts. Otherwise we
might get an interrupt before re-enabling WP, and be rescheduled as a
result. In practice it never happens, because the previous PSL always
has interrupts disabled too.
2018-03-13 16:52:42 +00:00
maxv b454699f28 Mmh, add a missing x86_disable_intr(). My intention there was to ensure
interrupts were disabled before the barriers.
2018-03-13 16:45:52 +00:00
maxv 76b851610b Mmh, put back the RFC6946 check (about dummy fragments), otherwise NPF
is not happy in npf_reassembly, because NPC_IPFRAG is again returned after
the packet was reassembled.

I'm wondering whether it would not be better to just remove the fragment
header in frag6_input directly.
2018-03-13 16:23:40 +00:00