Commit Graph

257291 Commits

Author SHA1 Message Date
christos 95f49f9366 fix build, KNF, simplify. 2018-03-06 22:13:14 +00:00
htodd ea01913fc3 Fix typo in function name. 2018-03-06 21:21:27 +00:00
kamil aad35b0998 Correct all ATF failures in t_ptrace_x86_wait.h (debug registers)
This code after refactoring stopped calling functions that were designed
to trigger expected behavior and thus, tests were breaking.

Sponsored by <The NetBSD Foundation>
2018-03-06 21:11:51 +00:00
christos cf226b6835 need CRYPTO_memcmp 2018-03-06 19:32:16 +00:00
christos 33c1542bb7 need CRYPTO_memequal 2018-03-06 19:30:56 +00:00
christos c79601bd37 fix v8 PMULL detection (Robert Swindells) 2018-03-06 18:36:09 +00:00
christos ac465b1fa5 For mips64:
Avoid branch delay spot warnings: Warning: macro instruction expanded into
multiple instructions in a branch delay slot
2018-03-06 18:32:37 +00:00
bouyer 151eee193a fdtbus_get_string_index(): decrease len when going to the next string,
otherwise we may read past the end of names.
2018-03-06 17:40:04 +00:00
maxv f50e60a23f Perform the IP (src/dst) checks _before_ calling the packet filter, because
if the filter has a "return-icmp" rule it may call icmp6_error with an src
field that was not entirely validated.
2018-03-06 17:39:36 +00:00
bouyer 45076dbf13 I guess fdtbus_regulator_get_voltage() should check for the get_voltage()
callback, not set_voltage()
2018-03-06 17:24:57 +00:00
christos 1e125808a4 Avoid branch delay spot warnings: Warning: macro instruction expanded into
multiple instructions in a branch delay slot
XXX: Manually need to fix in auto-generation.
2018-03-06 13:47:25 +00:00
christos 30f7db8025 Add a case for 7, remove arm64crypto.S 2018-03-06 13:37:43 +00:00
martin c3f6db91cd Remove unused variables 2018-03-06 11:21:31 +00:00
roy 89bda1e316 nd6: add a nonce to DaD probes in-case they are looped back to us
This implements RFC 7527, based a similar change in FreeBSD.
2018-03-06 10:57:00 +00:00
knakahara 4fda12c619 Fix fragment processing in ipsec4_fragout(). Pointed out by maxv@n.o, thanks.
XXX need pullup-8
2018-03-06 10:07:06 +00:00
skrll e440185826 Sprinkle __volatile on asm instructions 2018-03-06 08:20:22 +00:00
skrll cfbaf78b43 Convert decimal to hex to make comparison to arm arm (slightly) easier. 2018-03-06 08:14:17 +00:00
mlelstv 1261ded27d Add DIOCLWEDGES 2018-03-06 07:59:59 +00:00
mlelstv 92e3f65502 Fix cmap bounds checking. 2018-03-06 07:49:36 +00:00
mlelstv f52084a9af print quota pointers in superblock 2018-03-06 07:45:38 +00:00
mlelstv 52f4944bed correct whitespace in attach message 2018-03-06 07:41:55 +00:00
skrll 4550382950 Another harmless typo 2018-03-06 07:36:09 +00:00
skrll 9d5ec8537d Fix harmless typo 2018-03-06 07:31:57 +00:00
ozaki-r f502c3b602 Use pool(9) for llentry allocations
llentry is easy to be leaked and pool suits for it because pool is usable to
detect leaks.

Also sweep unnecessary wrappers for llentry, in_llentry and in6_llentry.
2018-03-06 07:27:55 +00:00
ozaki-r 9891458159 Fix memory leaks on arp -d and ndp -d for static entries
We have to delete entries on in_lltable_delete and in6_lltable_delete
unconditionally.  Note that we don't need to worry about LLE_IFADDR because
there is no such entries now.
2018-03-06 07:25:27 +00:00
ozaki-r 0e7f921617 Fix reference leaks of llentry
callout_reset and callout_halt can cancel a pending callout without telling us.
Detect a cancel and remove a reference by using callout_pending and
callout_stop (it's a bit tricy though, we can detect it).

While here, we can remove remaining abuses of mutex_owned for softnet_lock.
2018-03-06 07:24:01 +00:00
ozaki-r bcf876e060 Add assertions
We must not destroy llentries holding mbufs.
2018-03-06 07:20:41 +00:00
ozaki-r e3a4d36d02 Tweak sanity checks
Scheduling a timer of static entries is wrong.
2018-03-06 07:19:03 +00:00
spz 6a3be784bd if_xsh needs mii_bitbang; make a pared down kernel build 2018-03-06 06:04:21 +00:00
msaitoh 4b9f14a6da Move the location of "struct work" as FreeBSD's "struct task" in ixgbe.h.
No functional change.
2018-03-06 03:47:23 +00:00
eadler c197dbace7 [tail] Fix type of 'len'
ok pgoyette
2018-03-06 03:33:26 +00:00
christos 462103bc5a avoid negative shift 2018-03-06 01:14:41 +00:00
pgoyette c1a3e95979 Add new branch pgoyette-compat for cleaning up the compat modules
While here, note that prg-localcount2 core content was merged a
while ago, and no further activity is expected.
2018-03-06 00:15:24 +00:00
christos 0efaeed61f comment out unused variable. 2018-03-05 23:00:55 +00:00
christos 7d278c3d47 switch everyone but vax to OpenSSL1.1. 2018-03-05 21:14:34 +00:00
christos 6410c86794 Handle mips64 properly. 2018-03-05 16:43:50 +00:00
maxv f2110e8589 Improve stupid check, style, and fix leak (m, not m0). 2018-03-05 12:42:28 +00:00
maxv 052a8431bf Call m_pullup earlier, fixes one branch. 2018-03-05 11:50:25 +00:00
kamil 570f001093 Remove PT_GET_SIGMASK / PT_SET_SIGMASK
These operations cloned Linux's specific PTRACE_GETSIGMASK / PTRACE_SETSIGMASK.
This feature was useful in applications like rr/criu/reptyr-like, where
the ptrace(2) interface is abused for the purpose of constructing an arbitrary
process. It's not reliable and not portable. For the NetBSD case it will be
better to invent something dedicated for serializing and deserializing a
process with threads.

Noted on tech-toolchain@ and blog entry

"LLDB restoration and return to ptrace(2)"
https://blog.netbsd.org/tnf/entry/lldb_restoration_and_return_to
2018-03-05 11:24:34 +00:00
msaitoh c27ae56af8 Calculate way and number of entries correctly from CPUID leaf 18H. 2018-03-05 10:54:05 +00:00
wiz 6de64fe8a0 Bump date for previous. 2018-03-05 10:23:44 +00:00
ws d5841c87dc Adapt to the new device name for interface attachments. 2018-03-05 09:37:30 +00:00
ws eac3b33f4f Fix last:
Since config(1) could not distinguish between device and
interface attachments, it was generating only the latter.
Thus devices without their own driver wouldn't match the
ugen driver anymore.

Fix this by using a different device name for interface attachments.
2018-03-05 09:35:01 +00:00
mrg 589a0b0fde switch sh3 to GCC 6. tested on landisk in emul and hardware.
actually do this by reversing the check to look for m68* and vax
to choose GCC 5, and otherwise default to GCC 6.
2018-03-05 09:17:42 +00:00
msaitoh b025b6a5ff KNF in comment. No functional change. 2018-03-05 08:56:49 +00:00
mrg 5b6553d1f0 switch arm ports to GCC 6.
this is the last GCC that will support these ports:
- epoc32
- netwinder
- shark
- acorn32
- cats
- most hpcarm systems (only NETBOOKPRO and WZERO3 remain)
2018-03-05 08:08:06 +00:00
mlelstv 627f70e4f9 enums might be unsigned. 2018-03-05 07:47:21 +00:00
mrg ae1f25356d swtich ia64 to GCC 6. 2018-03-05 07:03:27 +00:00
msaitoh cfe5ab1fa2 - Parse the TLB info from `cpuid leaf 18H' on Intel processor. Currently,
this change doesn't decode perfectly.  Tested with Gemini Lake. It has
  two L2 Shared TLB. One is 4MB and another is 2MB/4MB but former isn't
  printed yet:

	cpu0: ITLB 1 4KB entries 48-way
	cpu0: DTLB 1 4KB entries 32-way
	cpu0: L2 STLB 8 4MB entries 4-way

  Need some rework for struct x86_cache_info.
- Use aprint_error_dev() for error output.
2018-03-05 05:50:37 +00:00
msaitoh e04f3a5631 Add Intel Deterministic Address Translation Parameter Leaf(0x18) definitions. 2018-03-05 05:44:07 +00:00