Commit Graph

256590 Commits

Author SHA1 Message Date
adam 0f74ee8d8c Fix building with MKGCC=no 2018-02-12 20:47:09 +00:00
ginsbach 78c930635f Add CSDL 2018-02-12 20:43:17 +00:00
christos c98f924910 Keep a pointer to the interface of the multicast membership, because the
multicast element itself might go away in in_delmulti (but the interface
can't because we hold the lock). From ozaki-r@
2018-02-12 18:19:12 +00:00
maxv 3450a3e906 Another missing NULL-check. 2018-02-12 17:04:58 +00:00
maxv be4af2355f m_free -> m_freem, otherwise leak 2018-02-12 17:01:22 +00:00
maxv f51752b703 NULL-check after M_DONTWAIT. 2018-02-12 16:58:01 +00:00
maxv b5bb909d12 Add a KASSERT; we expect *from to be a single mbuf (not chained). 2018-02-12 16:01:35 +00:00
maxv b17a3c6e9a Use m_freem instead of m_free. Otherwise we're leaking the next mbufs in
the chain.
2018-02-12 15:38:14 +00:00
maxv 42fdf13228 Replace bcopy -> memcpy when it is obvious that the areas don't overlap.
Rearrange ip6_splithdr() for clarity.
2018-02-12 12:52:12 +00:00
maxv 70018dfa34 Fix typo, and add a comment about MPLS. 2018-02-12 12:17:38 +00:00
martin 23e81d3280 Complete previous by complteley removing the _DIAGASSERT from memmove -
the accidental left over from previous fired on all legitimate calls
and caused PR bin/52986 and PR lib/52987.
2018-02-12 11:14:15 +00:00
mrg 64bc2bbf40 note GCC 6.4 import. 2018-02-12 10:37:50 +00:00
maxv 8753383eff Don't rebase the pointers. 'm' is only allowed to become NULL (which
means 'processed').
2018-02-12 09:31:06 +00:00
maxv f0c1a70d41 Remove unused argument from tcp_signature_getsav. 2018-02-12 08:22:26 +00:00
maxv 8e26d95487 Add a KASSERT. 2018-02-12 08:13:08 +00:00
maxv 94b728b57f Remove the 'm' argument from syn_cache_respond(); all it does with it is
freeing it, so free in the caller instead.
2018-02-12 08:08:28 +00:00
maxv 9855a03edc Remove this multicast check. Multicast packets are already dropped at
the beginning of the function.
2018-02-12 08:03:42 +00:00
christos 8ceb60ceb8 we need variables to be signed here. 2018-02-12 02:15:31 +00:00
jakllsch db546b38aa Wrap PowerPC #pragma goop in #if __GNUC_PREREQ__(6,0).
Our older GCC warns/errors on it.
2018-02-11 18:58:44 +00:00
christos 1938e572e4 Add obsolete lines for the gcc-5 and openssl-1.0 lines for systems that have
installed gcc-6 and openssl-1.1. Requested by wiz@
2018-02-11 16:45:35 +00:00
christos ae5e37f8c6 PR/53008: Henning Petersen: Fix missing brace inside comment. 2018-02-11 15:56:25 +00:00
christos 441b9b1e3d PR/53006: stackfield: Please support NVIDIA GT730 to kernel 2018-02-11 15:52:59 +00:00
wiz 9cc268cb7c Add missing comma. 2018-02-11 14:17:24 +00:00
wiz efc48405e0 Sort SEE ALSO. 2018-02-11 14:17:17 +00:00
wiz 6da3ad4c73 Remove Tn. 2018-02-11 14:15:14 +00:00
maya 0cca4bc316 Use bools with bool. NFCI.
From Henning Petersen in PR toolchain/53009.
(I completed for the rest of the function. Similar code exists in GCC trunk.)
2018-02-11 13:50:15 +00:00
wiz 08ce5afbfb Remove Tn. 2018-02-11 13:31:17 +00:00
wiz 5742f479cd Remove useless macros. Sort errors. 2018-02-11 13:30:55 +00:00
wiz 7f7561e0c4 Remove useless macro. 2018-02-11 13:28:49 +00:00
wiz 220a072a26 Remove Tn. Remove trailing whitespace. Remove useless Pp. 2018-02-11 13:28:26 +00:00
maxv f63497650d Move SVS into x86/svs.c 2018-02-11 09:39:36 +00:00
maxv c503360265 Style, and reduce the diff between i386 and amd64. No functional change. 2018-02-11 08:27:18 +00:00
christos c5477af646 switch amd64 to gcc-6. Thanks mrg for all the work! 2018-02-11 03:44:53 +00:00
christos a58fb25d66 more volatile to appease gcc. 2018-02-11 02:51:58 +00:00
christos 09f7d6a729 Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.
2018-02-11 02:12:28 +00:00
christos d4a3515981 non-null arg. 2018-02-11 00:25:12 +00:00
mrg 3752203969 introduce a inline function to set a value to zero while
hiding this fact from GCC.  this allows the PPC code that
writes to address zero to actually work rather than cause
GCC to emit an explicit "trap" instruction, which in early
boot means hang on my pegasosII.  use this in oae_init()
for both rfid->rfi and also setting the jump-to-zero trap.

found with a lot of debugging, but GCC 6's new warning
-Wnull-dereference found it when i was informed of its
existence.  unfortunately, there are dozens of other
violations in our kernel today so simply enabling that
option for everything is not a good idea, but is a goal.
2018-02-11 00:01:12 +00:00
christos e8b7cd3e82 remove more unreachable code. 2018-02-10 23:46:44 +00:00
christos 4ac26a154e Convert to full recursive attr/die lookup instead of one level since gcc 6
creates indirect attributes that point to indirect attributes. The code is
smaller this way too :-)
2018-02-10 23:39:29 +00:00
christos 63224f5106 We need authentication || encryption even when we are not building
kerberos. They are needed for telnet_net_write() which is used in libtelnet.
2018-02-10 19:34:34 +00:00
christos e83bfb8257 fix pasto 2018-02-10 16:16:28 +00:00
nakayama fe7c136ffd Restore pic and sse2 enabled code to make libcrypto works as before. 2018-02-10 13:29:55 +00:00
kre 66c163deb3 Do for i386 what was done for amd64 (but in a more KNF conformant way...) 2018-02-10 11:50:39 +00:00
maxv 4b355e27b7 Add a note, to say that basically the recent FreeBSD binaries can't be
expected to work, and that we keep compat_freebsd only for tw_cli.
2018-02-10 08:54:22 +00:00
maxv 94daa11a3d If the socket wants a ESP-over-UDP packet, and the packet is incorrect,
stop processing it instead of giving it to udp4_sendup. It just doesn't
make any sense not to drop it.

I was already telling myself this the other day when I visited this place,
but I just saw PR/36782 (11 years old) that suggests the exact same thing,
so fix it.

Now, udp4_espinudp always frees the mbuf, and is made void. The packet is
not processed any further afterwards.
2018-02-10 08:17:00 +00:00
maxv 1e899e706e Remove the last reference to IPSEC_ESP. This option was deleted in
2013.
2018-02-10 07:59:54 +00:00
christos 4f511e6924 fix typo 2018-02-10 06:22:22 +00:00
christos 9d3e52666a Fix TEXTREL's 2018-02-10 05:51:06 +00:00
christos 473feff0ce make it compile without MULTIPROCESSOR (xen?) 2018-02-10 03:55:58 +00:00
christos e155b97cb7 fix BN_to_integer to get rid of __UNCONST. Trick question:
How many BN_to_integer implementations does Heimdal contain (I only fixed 2).
2018-02-09 23:22:12 +00:00