Commit Graph

258162 Commits

Author SHA1 Message Date
maxv
bad5f5991a Remove unused typedef, remove unused arguments from _ipip_input, sync
comment with reality, and change panic message.
2018-04-19 08:16:44 +00:00
maxv
96cdd49d30 Add a KASSERT (which is not triggerable since ipsec_common_input already
ensures 8 bytes are present), add an XXX (about the fact that it is
better to use m_copydata, because it is faster and less error-prone), and
improve two m_copybacks (remove useless casts).
2018-04-19 07:58:26 +00:00
msaitoh
fefe72ba7c Use ixgbe_eitr_write() when writing the EITR for the link interrupt like
queue's EITR to write the register safely. This change is not relatively
so important than queue's EITR because link's EITR is written in if_init().
2018-04-19 07:40:12 +00:00
maxv
ebd3d1799e Style, and remove meaningless XXX. 2018-04-19 07:36:23 +00:00
maxv
1656a2f332 cosmetic 2018-04-19 07:22:29 +00:00
msaitoh
2114fc3a6c Remove unused IXGBE_FC_HI and IXGBE_FC_LO. The watermark of the flow control
is automatically calculated from the size of the packet buffer.
2018-04-19 06:04:31 +00:00
maxv
b6af861c1d The mbuf length is allowed to be zero. 2018-04-19 05:16:02 +00:00
maxv
6d238c84fb Simplify the IPv4 parser. Get the option length in 'optlen', and sanitize
it earlier. A new check is added (off + optlen > skip).

In the IPv6 parser we reuse 'optlen', and remove 'ad' as a result.
2018-04-18 17:58:07 +00:00
maxv
0ad30c0f1d Remove unused includes, remove misleading comments, and style. 2018-04-18 17:34:54 +00:00
maxv
e30e5e83ea m_free -> m_freem, m_copyback could have added mbufs in the chain 2018-04-18 14:56:35 +00:00
maxv
02a6b07753 mention SVS, retpoline, SMAP 2018-04-18 14:47:11 +00:00
maxv
afff2e4148 mention meltdown/spectre fixes 2018-04-18 14:42:16 +00:00
martin
60a00ce996 Make SPECTRE_V2_GCC_MITIGATION overridable at the make command line. 2018-04-18 10:40:22 +00:00
martin
9528633318 Simplify previous, pointed out by mrg. 2018-04-18 10:38:47 +00:00
nonaka
ca639f32c5 nvmectl(8): Remove some wdc subcommands from man page.
- wdc drive-log
- wdc get-crash-dump
- wdc purge
- wdc purge-monitor
2018-04-18 10:17:54 +00:00
nonaka
d2ae75c29e nvmectl(8): fix subcommand usage. 2018-04-18 10:16:22 +00:00
nonaka
6ac76f5b92 nvmectl(8): Add big-endian support.
from FreeBSD nvmecontolr(8) r329824.
2018-04-18 10:11:44 +00:00
nonaka
1b34f87d35 Add some new structure fileds, opcodes and statuses from NVMe 1.3a. 2018-04-18 10:10:26 +00:00
nonaka
45a08be18a nvme(4): Added some delay before check RDY bit quirk when disabling device.
Pick from FreeBSD nvme(4) r326937.
2018-04-18 10:05:59 +00:00
martin
7a0ee71f64 Fix previous: HAVE_GCC needs to be checked in additon to
SPECTRE_V2_GCC_MITIGATION, but SPECTRE_V2_GCC_MITIGATION being empty is
not a good enough check as it can't be overwritte on the make
command line. Now I can do: "make SPECTRE_V2_GCC_MITIGATION=0" (e.g. when
my gcc is too old for having the indirect-branch options).
2018-04-18 09:29:35 +00:00
martin
46a82ee0dc Fix copy & pasto 2018-04-18 09:20:42 +00:00
mlelstv
929f587429 Make sys/pmf.h available to userland (again).
The recently exposed device.h internals to _KMEMUSER also require
exposing details about pmf.

The current build works without this as the only user is crash(8)
which partially uses kernel sources and is compiled with the
additional kernel include path.
2018-04-18 08:58:41 +00:00
knakahara
a6a926ede8 Fix sending PADT to unexpected hosts when net.pppoe.term_unknown is enabled. 2018-04-18 07:40:40 +00:00
maxv
e294edec3f Remove unused malloc.h include. 2018-04-18 07:38:02 +00:00
knakahara
d0a346b782 net.pppoe.term_unknown can be written safely now. 2018-04-18 07:36:26 +00:00
maxv
66077ec001 Style, and remove unused MALLOC_DECLARE. 2018-04-18 07:32:44 +00:00
maxv
e62bbe6865 Remove unused netipsec/xform.h includes. 2018-04-18 07:17:49 +00:00
maxv
4fbb7668fe Remove dead code.
ok ozaki-r@
2018-04-18 06:57:39 +00:00
maxv
1e45b2f110 style 2018-04-18 06:43:10 +00:00
ozaki-r
f811c85e06 Add missing PSLIST_ENTRY_INIT and PSLIST_ENTRY_DESTROY 2018-04-18 06:37:17 +00:00
maxv
c667608838 Style, and remove another misleading comment. 2018-04-18 06:22:47 +00:00
maxv
1da467ec29 Remove misleading comments. 2018-04-18 06:17:43 +00:00
maxv
7f6566cd4e Remove the
net.inet6.esp6
	net.inet6.ipcomp6
	net.inet6.ah6

subtrees. They are aliases to net.inet6.ipsec6, but they are not
consistent with the original intended naming. (eg there was
net.inet6.esp6.esp_trans_deflev instead of net.inet6.esp6.trans_deflev).
2018-04-18 06:13:23 +00:00
ozaki-r
ca1f3d844f Get rid of a unnecessary semicolon
Pointed out by kamil@
2018-04-18 06:04:03 +00:00
maxv
1a0e0fc19a Remove duplicate sysctls:
net.inet.esp.trans_deflev = net.inet.ipsec.esp_trans_deflev
	net.inet.esp.net_deflev   = net.inet.ipsec.esp_net_deflev
	net.inet.ah.cleartos      = net.inet.ipsec.ah_cleartos
	net.inet.ah.offsetmask    = net.inet.ipsec.ah_offsetmask
	net.inet.ah.trans_deflev  = net.inet.ipsec.ah_trans_deflev
	net.inet.ah.net_deflev    = net.inet.ipsec.ah_net_deflev

Use the convention on the right. Discussed a month ago on tech-net@.
2018-04-18 06:03:36 +00:00
martin
ac1539438e Cosmetics: default to dmesg -t when writing /var/run/dmesg.boot -
the timestamps at boot time are mostly useless.
2018-04-18 04:27:47 +00:00
ozaki-r
0be59150b6 Add a test that checks if brconfig flush surely removes all entries 2018-04-18 04:03:12 +00:00
ozaki-r
7a003d614d bridge: use pslist(9) for rtlist and rthash
The change fixes race conditions on list operations.  One example is that a
reader may see invalid pointers on a looking item in a list due to lack of
membar_producer.
2018-04-18 04:01:58 +00:00
ozaki-r
5cf068d7e4 Simplify bridge_rtnode_insert (NFC) 2018-04-18 03:49:44 +00:00
ozaki-r
adc61740ae Remove obsolete NULL checks 2018-04-18 03:47:28 +00:00
christos
f6f2143a7d __noreturn__ does in the header. 2018-04-18 01:18:16 +00:00
christos
0d11799cf0 add __noreturn__ attribute to file_err{,x} 2018-04-18 01:17:42 +00:00
maxv
3233810064 fix comments 2018-04-17 17:56:08 +00:00
maxv
55d4a29846 Add XXX. If this code really does something, it should use MCHTYPE. 2018-04-17 17:47:05 +00:00
maxv
25be83d544 Style, add XXX (about the mtu that goes negative), and remove #ifdef inet. 2018-04-17 17:40:38 +00:00
nonaka
605c860b16 nvmectl(8): fix wdc command usage. 2018-04-17 15:31:00 +00:00
christos
169d9d570d CVE-2018-0737: Set constant time for rsa computation:
https://www.openssl.org/news/vulnerabilities.html
This needs to be pulled up to -8 using:
    349a41da1a
2018-04-17 14:48:48 +00:00
jakllsch
cbdb990355 sprinkle #ifdef __dead \n __dead \n #endif for clang 2018-04-17 12:34:04 +00:00
maya
43018fddb4 Remove hack previously needed to build gcc/arm with clang.
genattrtab.c:1.2 makes this unnecessary.

Tested by thorpej.
2018-04-17 10:08:54 +00:00
maya
ddc0f89203 Apply upstream commit:
From: ppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 27 Apr 2016 21:18:05 +0000
Subject: [PATCH] Reduce nesting of parentheses in conditionals generated by
 genattrtab

gcc/ChangeLog:

	* genattrtab.c (write_test_expr): New parameter EMIT_PARENS
	which defaults to true.  Emit an outer pair of parentheses only if
	EMIT_PARENS.  When continuing a chain of && or || (or & or |),
	don't emit parentheses for the right-hand operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235536

gcc/arm generates so many parens it hits a bracket depth limited which is
enforced by clang. This reduces the number of parens generated and avoids the
need to increase bracket depth.

Fixes PR toolchain/53178 properly.
2018-04-17 10:02:49 +00:00