258021 Commits

Author SHA1 Message Date
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
maxv
03bb22c3ac Fix a pretty bad mistake, that has always been there.
m_adj(m1, -(m1->m_len - roff));
		if (m1 != m)
			m->m_pkthdr.len -= (m1->m_len - roff);

This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.

Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.
2018-04-17 09:06:33 +00:00
nonaka
1f5086ec4f nvmectl(8): Sync with FreeBSD nvmecontrol(8) r328763. 2018-04-17 08:54:35 +00:00
nonaka
cb9f942e0a regen 2018-04-17 08:47:43 +00:00
nonaka
1c26c0b8e5 Added some NVMe devices. 2018-04-17 08:47:19 +00:00
msaitoh
87090e013e Remove unused structure entries. No functional change. 2018-04-17 08:38:05 +00:00
maxv
3da4020fbc change the comment 2018-04-17 07:58:31 +00:00
maxv
4f03308fb7 If the mbuf is shared leave M_PKTHDR in place. Given where this function
is called from that's not supposed to happen, but I'm growing unconfident
about our mbuf code.
2018-04-17 07:41:34 +00:00
maxv
cc059e555f Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.

The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().
2018-04-17 06:23:30 +00:00
knakahara
11b471795e Fix panic when "sysctl -w hw.ixg0.txrx_workqueue=[01]" while there is traffic.
The operation is not supported, however causing panic is problem.
2018-04-17 05:23:58 +00:00
yamaguchi
a83f891441 Fix panic of SADB when the state of sav is changed in timeout
pointed out by ozaki-r@n.o, thanks
2018-04-17 04:22:58 +00:00
christos
622f49cc74 Use the __clang__ preprocessor symbol to check for clang, since --version
might barf. From joerg@
2018-04-17 02:03:56 +00:00
jdolecek
1a388484b9 remove superfluous semicolon 2018-04-16 22:33:28 +00:00
hannken
12bfd1b42c Change procfs_revoke_vnodes() to use vrecycle()/vgone() instead
of VOP_REVOKE().

Gets rid of a bunch of suspensions on /proc as vrecycle() will
succeed most time and we suspend at most once per call.
2018-04-16 20:27:38 +00:00
hannken
eba426546b Function pserialize_perform() usually succeeds after two cross calls
so defer kpause() to iterations three and above.

Speeds up VOP_REVOKE() on /proc/XXX/status by a factor of ~12.

Ok: core@
2018-04-16 20:25:21 +00:00
maxv
adff91e18b Disable the M_PKTHDR check for now. It causes PR/53189 (which is also
reproducible on i386).

It seems that someone is giving looutput a malformed chain.
2018-04-16 19:19:51 +00:00
maxv
2f7eef4b1d Remove dead code.
ok ozaki-r@
2018-04-16 17:32:34 +00:00
christos
4f1477379d According to:
https://sourceforge.net/p/predef/wiki/Libraries/
The macro used for old glibc is __GNU_LIBRARY__ and the new one is __GLIBC__.
Try to fix linux compilation by detecting both.
2018-04-16 16:11:40 +00:00
kamil
b91714d723 Revert previous glob.c change
It broke on !GLIBC.
2018-04-16 16:02:57 +00:00
wiz
f326c99a7e Merge EAGAIN descriptions. 2018-04-16 15:02:37 +00:00
kamil
d20c39ee39 Remove the rnewprocp argument from fork1(9)
It's now unused and it can cause use-after-free scenarios as noted by
<Mateusz Guzik>.

Reference: http://mail-index.netbsd.org/tech-kern/2017/09/08/msg022267.html

Sponsored by <The NetBSD Foundation>
2018-04-16 14:51:59 +00:00
kamil
3c41a2b898 Fix build of gmake (in tools) on new GLIBC systems
Reported on Debian and Fedora.

Reference for similar fix:
https://lists.nongnu.org/archive/html/bug-make/2017-11/msg00020.html

Tested by <Mateusz Guzik> on Fedora.
Tested by <Mandacaru Cascavel> on Debian.
2018-04-16 14:39:19 +00:00
kamil
c726cd06e0 Set initproc inside start_init()
This allows us to stop using the rnewprocp argument in fork1(9).

The rnewprocp argument will be removed soon from the API, as it can cause
use-after-free scenarios.

No functional change intended.

Noted by <Mateusz Guzik>
Reference: http://mail-index.netbsd.org/tech-kern/2017/09/08/msg022267.html

Sponsored by <The NetBSD Foundation>
2018-04-16 14:18:16 +00:00
msaitoh
d557e526c8 Regen. 2018-04-16 13:12:35 +00:00
msaitoh
fcd71ba6bd Add Intel SSD 760p. 2018-04-16 13:11:53 +00:00
msaitoh
70bc33aa4d Add some 8th Generation Intel Core Processor devices. 2018-04-16 13:08:33 +00:00
christos
840105b0fe fix the sets for binutils-2.30 2018-04-16 12:25:18 +00:00
nonaka
4ebe3e2a03 vmx(4): compute if_ibytes using rxq->vxrxq_stats.vmrxs_ibytes. 2018-04-16 09:12:52 +00:00
nonaka
c4888b0ac8 vmx(4): handled SIOCZIFDATA. 2018-04-16 09:10:42 +00:00
yamaguchi
c149db4f9c Added a lookup table to find an sav quickly
key_sad.sahlists doesn't work well for inbound packets because
its key includes source address. For the reason, the
look-up-table for the inbound packets is newly added.
The table has all sav whose state is MATURE or DYING and uses a
key calculated by destination address, protocol, and spi instead
of saidx.

reviewd ozaki-r@n.o, thanks.
2018-04-16 08:56:08 +00:00
yamaguchi
9e7eb12d9d Introduced a hash table to sahlist
An saidx of sah included in the list is unique so that
the search can use a hash list whose hash is calculated by
the saidx to find an sah quickly.
The hash list of the sahlits is used in FreeBSD, too.

reviewed by ozaki-r@n.o, thanks.
2018-04-16 08:52:09 +00:00
msaitoh
479d96c81a KNF. No functional change. 2018-04-16 08:31:06 +00:00
wiz
2a2e02284d Remove trailing whitespace. 2018-04-16 08:17:18 +00:00
nonaka
ce2aeea990 vmx(4): Fix calculation of interface statistics counter. 2018-04-16 03:21:43 +00:00
sevan
cfb1377110 Break down explanation of netpgp_init to make it easier to extend.
Document how the userid is obtained.
2018-04-15 23:00:36 +00:00
pgoyette
ebade864bd Remove unnecessary __BEGIN_DECLS ... __END_DECLS at Christos's suggestion. 2018-04-15 22:13:36 +00:00
christos
1c811476c7 do the bracket nesting only for clang for now. 2018-04-15 21:50:38 +00:00
christos
92bd81c604 switch x86 to binutils-2.30 2018-04-15 20:08:13 +00:00
christos
6f22688691 - merge conflicts for 2.30
- bump libraries
- regen for x86
2018-04-15 20:06:01 +00:00
christos
57fc04b289 update for file-5.33 2018-04-15 19:48:44 +00:00
christos
17bb1d5fd0 bump libmagic for file-5.33 2018-04-15 19:47:30 +00:00
christos
5efe63de58 merge conflicts for file-5.33 2018-04-15 19:45:31 +00:00