Commit Graph

256590 Commits

Author SHA1 Message Date
pgoyette 2829446e9d Fix typos, as reported by Eitan Adler. Update dates. 2018-02-07 11:16:05 +00:00
maxv 74d6a802d1 Style, and localify IPV6FORWARDING. No functional change. 2018-02-07 10:52:20 +00:00
maxv 21089e6cb0 Change ip6_hdrnestlimit to be 15 instead of 50. I couldn't find any
reference in RFCs about what a correct limit should be, but FreeBSD already
uses 15.

If an IPv6 packet has 50 options, there is clearly something wrong with it.
2018-02-07 10:21:59 +00:00
martin eaf667a162 Bump date for previous 2018-02-07 09:59:56 +00:00
martin c778dbed18 Fix typo, from Eitan Adler. 2018-02-07 09:55:35 +00:00
maxv 1fd7efcc06 Rename back to ip6af_mff. It was actually clearer than ip6af_more. 2018-02-07 09:53:08 +00:00
ozaki-r a208e7b3be Remove unnecessary assertions
KASSERT(!rw_lock_held()) just before rw_destroy() is useless because
rw_destroy does more strict check and provides better information on
failure.
2018-02-07 08:50:13 +00:00
maxv 294437d929 Remove null check on ip, it can't be null. (Confuses code scanners.) 2018-02-07 08:12:25 +00:00
mrg 1f562f07aa ip_add_membership() has an missing {} issue, but solve it by
dropping the "goto out" that would have happened immediately
next anyway, ie, should be NFC.
2018-02-07 06:21:23 +00:00
mrg 108099e40c ppprcvframe() has indentation issues. 2018-02-07 06:19:43 +00:00
mrg 5299ceaabd XXX: add a NULL init to avoid a GCC 6 maybe uninit warning. 2018-02-07 06:18:46 +00:00
mrg 5017d10056 avoid an indentation issue by adding "if (1)". 2018-02-07 06:18:11 +00:00
mrg 1bf47496e9 update for GCC 6:
ignore -Wframe-address warnings for the ppc hack.
2018-02-07 06:17:45 +00:00
mrg 7e43f9ab3a update for GCC 6:
do_process has vfork() vs clobber issues
2018-02-07 06:17:07 +00:00
mrg 7dc27d93dc for now, turn off biarch support in ppc64. it ends up enabling
secureplt support for 64 bit mode, which doesn't exist (or need it.)
2018-02-07 05:34:21 +00:00
ozaki-r 5e3b18bdc3 Spinkle ASSERT_SLEEPABLE to xcall functions 2018-02-07 04:25:09 +00:00
mrg 0566bffd45 regen mknative gcc 6.4 for mipsel. sort of do it for vax, ia64 and ppc64. 2018-02-07 04:13:47 +00:00
christos 5ff0fb825b Welcome to the 21st century Buck Rogers: OpenSSL-1.1 2018-02-07 03:59:03 +00:00
knakahara b78c4b439c Fix PR misc/52890 . Reported and suggested by David H. Gutteridge, thanks. 2018-02-07 03:26:36 +00:00
mrg 7438970f7d make this actually work:
- use ${G_OBJS} directly, it avoids issues with .c vs .cc files.
- add a method to not rm -rf .ab for inspection.
- fix and add missing depends for many things.
- use -Wno-error for mips and arm insn-recog.c, due to eg:
    insn-recog.c:10304:7: error: this decimal constant is unsigned only in ISO C90 [-Werror]
    mips.md:3474:11: error: this decimal constant is unsigned only in ISO C90 [-Werror]
2018-02-07 02:33:05 +00:00
mrg 862de77331 some more/changed files need -O1 for vax. 2018-02-07 02:32:39 +00:00
mrg af8e9facc2 port to hppa, m68k, m68000, vax, and sh3. this should complete
our list of ports.  it's only about obtaining some pointers in
this code, really.
2018-02-07 02:32:01 +00:00
mrg ccb67c474f handle MKPICLIB=no builds. 2018-02-07 02:30:39 +00:00
mrg fe6746514c regen mknative-gcc 6 for:
arm armeb earm earmeb earmhf earmhfeb earmv4eb earmv6 earmv6eb
  earmv6hf earmv6hfeb earmv7 earmv7eb earmv7hf earmv7hfeb

mipsel, ppc64 and ia64 didn't work properly this time, and vax
has a problem with libstdc++.
2018-02-07 02:29:06 +00:00
mrg acf2ba3732 fix alpha gcc 6.4 mknative. now works. 2018-02-06 23:12:35 +00:00
mrg 8c973b6499 build and install gcov-dump. 2018-02-06 23:12:01 +00:00
maya d17a36957e Correct misleading indentation. 2018-02-06 22:04:22 +00:00
christos 4d91e6767f Adjust to OpenSSL-1.1 2018-02-06 21:36:46 +00:00
roy f206af0326 Restore default paths to what they were before prior import. 2018-02-06 21:27:49 +00:00
christos 3c15acfdbe fix typo 2018-02-06 20:22:41 +00:00
christos 97e40f12ae fix duplicate declaration of pthread_atfork in unistd.h 2018-02-06 20:22:23 +00:00
christos 4e8153bc86 detect duplicate declaration of pthread_atfork() in pthread.h 2018-02-06 20:21:21 +00:00
christos fa1c26bf9a mark old compat functions. 2018-02-06 20:15:39 +00:00
christos e7129348cf use OPENSSL_API_COMPAT 2018-02-06 20:10:05 +00:00
christos c7748118b4 use OPENSSL_API_COMPAT instead of hacking the version 2018-02-06 19:58:29 +00:00
mrg 77cfa0ba5f more mknative-gcc 6.4 for m68k, mips*, powerpc, sh*, sparc* and amd64. 2018-02-06 19:57:57 +00:00
christos b9a7f31f0e added 1.1 api 2018-02-06 19:51:25 +00:00
christos 5b83cee45e use OpenSSL-1.1 apis 2018-02-06 19:51:03 +00:00
christos 96cef95189 use BN_is_prime_ex 2018-02-06 19:32:49 +00:00
christos 59b2928637 explicitly include <string.h> since OpenSSL-1.1 does not do it for us. 2018-02-06 19:26:02 +00:00
christos fa34604a3c Adjust to OpenSSL 1.1 2018-02-06 17:58:19 +00:00
maxv ca56b5b05a Several changes, mostly cosmetic:
* Add a KASSERT in ip_output(), we expect (at least) the IP header to be
   here.

 * In ip_fragment(), declare two variables instead of recomputing the
   values each time. Add an XXX for ipoff, it seems to me we should also
   remove IP_RF.

 * Rename the arguments of ip_optcopy().

 * Style: use NULL for pointers, remove ()s for return statements, and
   add whitespaces for clarity.

No real functional change.
2018-02-06 17:08:18 +00:00
christos 64a90adb69 fix for OpenSSL-1.1 2018-02-06 16:53:27 +00:00
christos 5f8b254caf - need string.h
- cast options to long for OpenSSL-1.1
2018-02-06 15:48:46 +00:00
maxv 9af2804705 Add one more check in ip_reass_packet(): make sure that the end of each
fragment does not exceed IP_MAXPACKET.

In ip_reass(), we only check the final length of the reassembled packet
against IP_MAXPACKET.

But there is an integer overflow that can happen a little earlier. We
are doing:

	i = ntohs(p->ipqe_ip->ip_off) + ntohs(p->ipqe_ip->ip_len) -
	    ntohs(ip->ip_off);
	[...]
	ip->ip_off = htons(ntohs(ip->ip_off) + i);

It is possible that

	ntohs(p->ipqe_ip->ip_off) + ntohs(p->ipqe_ip->ip_len) > 65535

so the computation of ip_off wraps to zero. This breaks an assumption in
the reassembler - it expects the list of fragments to be ordered by
offset, and here it's not ordered anymore. (Un)Fortunately I couldn't
turn this into anything exploitable.

With the new check, it is guaranteed that ip_off+ip_len<=65535.
2018-02-06 15:48:02 +00:00
rin b9dd882220 Remove misplaced semicolon, found by GCC 6. 2018-02-06 13:26:32 +00:00
martin 399aaa9545 Avoid gcc 6 specific options when compiling with gcc 5 2018-02-06 12:58:17 +00:00
jakllsch 59200b4baa Add register definitions file for sun6i_spi I forgot to add earlier. 2018-02-06 12:45:39 +00:00
maya acc548e0b3 style: remove spurious {} added in 1.12 2018-02-06 10:56:35 +00:00
mrg 5f4e0ee7de dbcool_read_volt() has a missing {} issue. 2018-02-06 10:02:09 +00:00