Commit Graph

280643 Commits

Author SHA1 Message Date
kamil
47333b4890 Avoid using internal RTLD/libpthread/libc symbol in sanitizers
Cherry-pick and adapt:

commit 0da15ff318480f30bbc90b9e8ecb9bb9431c7fd3
Author: Kamil Rytarowski <n54@gmx.com>
Date:   Fri Jan 3 02:35:33 2020 +0100

    [compiler-rt] [netbsd] Switch to syscall for ThreadSelfTlsTcb()

    This change avoids using internal, namespaced per-CPU calls that
    are not a stable interface to read the TSL base value.
2020-09-10 12:53:05 +00:00
riastradh
ea2d112d7c aes neon: Gather mc_forward/backward so we can load 256 bits at once. 2020-09-10 11:31:03 +00:00
riastradh
3e1dd6a02d aes neon: Hoist dsbd/dsbe address calculation out of loop. 2020-09-10 11:30:28 +00:00
riastradh
db39c37e7d aes neon: Tweak register usage.
- Call r12 by its usual name, ip.
- No need for r7 or r11=fp at the moment.
2020-09-10 11:30:08 +00:00
riastradh
b5c99049d3 aes neon: Write vtbl with {qN} rather than {d(2N)-d(2N+1)}.
Cosmetic; no functional change.
2020-09-10 11:29:43 +00:00
riastradh
8bfafdf5aa aes neon: Issue 256-bit loads rather than pairs of 128-bit loads.
Not sure why I didn't realize you could do this before!

Saves some temporary registers that can now be allocated to shave off
a few cycles.
2020-09-10 11:29:02 +00:00
mrg
065d223908 switch sparc to binutils 2.34. tested on an ss20. 2020-09-10 06:02:30 +00:00
martin
18aaa0a559 Add iavf 2020-09-10 04:56:00 +00:00
rin
3d27c8b892 Tiny cosmetic fix for previous. No functional changes. 2020-09-10 04:36:24 +00:00
rin
e77938bbf8 Real fix for pmap_procwr(), attempted in revs 1.85 and 1.87:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/pmap.c#rev1.85
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/pmap.c#rev1.87

ibm4xx has VIPT icache and operations in pmap_procwr() should be done with
DMMU enabled (write back dcache into memory and invalidate icache).

When p == curproc, this is trivial. However, p != curproc needs a special
care; we cannot rely upon TLB miss handler in user context. Therefore,
extract pa and operate against it.

Note that va below VM_MIN_KERNEL_ADDRESS (== 2GB at the moment) is reserved
for direct mapping.

Tested by gdb with WIP software single stepping for ibm4xx.
2020-09-10 04:31:55 +00:00
rin
169faeb037 Introduce PMAP_TLBDEBUG option for ibm4xx: clear only TLBHI[V] bit when
TLB entry is invalidated, instead of clearing entire TLBHI register.
2020-09-10 03:32:46 +00:00
rin
d15d990682 pmap_kenter_pa: Remove comment which says ``Have to remove any existing
mapping first.'' Contrary to this comment, pmap_kremove(9) has never
been called there since rev 1.1, and we don't for other ports also.
2020-09-10 03:23:55 +00:00
yamaguchi
e441d472ea Fix a possible deadlock in iavf(4) 2020-09-10 03:20:08 +00:00
rin
77758deb28 Introduce PV_VA() macro to extract va from pv->pv_va by clearing
PV_WIRED flag, and use it where appropriate.

There should be no functional changes. Only for safety in future.
2020-09-10 03:02:36 +00:00
rin
3c8f6dd9d4 Fix build with UVMHIST; stop passing string literal to UVMHIST_LOG(),
and also cast pointer arguments into uintptr_t.
2020-09-10 02:45:28 +00:00
rin
3787a83d7c Turn off -mpltseq for kernel modules on powerpc for GCC >= 9.
Otherwise, object files compiled with -mlongcall contain relocation types
referring PLT, which our in-kernel linker cannot handle.

This ends up with failure in kernel module load with
``kobj_reloc: unexpected relocation type 31'' (31 == R_PPC_PLT16_HA here).

See descriptions for -mlongcall in gcc(1) of GCC9 for more details.
2020-09-10 02:34:13 +00:00
rin
56973a2d13 Cast pointer arguments of UVMHIST_CALLARGS() into uintptr_t.
Appease GCC9 -Wpointer-to-int-cast on ILP32 environments.
2020-09-10 02:12:57 +00:00
rin
fc26bdf7d3 Build in debug symbols. 2020-09-10 02:06:25 +00:00
rin
3e961dc468 Fix tracedump() for sun3 and sun2 by adding __noinline attribute.
It unwinds stack frame by using address of its first argument, which
does not, of course, work if inline-expanded.
2020-09-10 02:03:44 +00:00
rin
6aef683d05 Unconditionally install kernel headers for iSCSI as required by
sanitizer shipped with GCC9.

Fix build release with HAVE_GCC=9 for sun2, where MKISCSI=no by default.
2020-09-10 01:53:22 +00:00
christos
c2bd2f1f7f PR/55648: Kyle Evans: Minor warnings in compilation of libexecinfo test2 2020-09-09 20:04:10 +00:00
bouyer
f130c41705 Workarounds for amazon's Xen 4.2 version, still present on some instances:
- It doens't provides an xencons, so allow HVM_PARAM_CONSOLE_PFN to fail
- the xen clock is not fully functionnal, so don't try to use it if
  HVM_PARAM_CONSOLE_PFN failed.
- it doesn't have XEN_HVM_CPUID_VCPU_ID_PRESENT so fall back to ci_acpiid
  as ci_vcpuid in this case.

It also doesn't support the per-CPU event callback; so fix the fallback
to global vector (don't try to register more per-cpu vector)
Should fix port-amd64/55543
2020-09-09 16:46:06 +00:00
maxv
69fd32255e kmsan: update the copyright notices 2020-09-09 16:29:59 +00:00
jakllsch
aeb04dceb1 Re-do previous aarch64eb strlen fix more simply and correctly. 2020-09-09 14:49:27 +00:00
kamil
b1012e3f8c Register getrandom.0
Fixes MKCATPAGES=yes build.
2020-09-09 14:38:41 +00:00
jmcneill
e3afd33ec2 Look for the string "amazon" in a few different sysctl nodes. There doesn't
seem to be a single spot to check that works with both XenPVHVM and KVM
instances.
2020-09-09 13:25:48 +00:00
jmcneill
0e1281fab5 Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.
2020-09-09 12:06:02 +00:00
mrg
02f683bda2 fix path for largefile-config.h 2020-09-09 09:52:16 +00:00
mrg
71ddf99ad7 add build rules for G_CPP17_SOURCES sources, and fix their build. 2020-09-09 09:49:16 +00:00
gson
2d97242511 Disable reverse DNS lookups in ping to avoid spurious test failures
due to unresponsive DNS servers.
2020-09-09 09:17:14 +00:00
mrg
248797713d regen for sparc and binutils 2.34. 2020-09-09 09:10:52 +00:00
mrg
66bd25a419 regen gcc 9.3 / arm64eb for includes fixes.
also fixes a bunch of configuration (like finding acosf() etc.)
2020-09-09 08:22:04 +00:00
mrg
c5ada2fa0b mknative-gcc for everything except arm64be: includes fixes 2020-09-09 07:27:45 +00:00
mrg
154bfe8e08 install new libstdc++ pstl headers. remove some dead makefile
code and consolidate some of the header installation.
2020-09-09 07:23:45 +00:00
mrg
d875c5372c more consolidation and properly condition all variables like previously. 2020-09-09 07:12:04 +00:00
mrg
949f2e0433 add new /usr/include/g++/pstl for GCC 9. 2020-09-09 06:50:33 +00:00
yamaguchi
ab03e1c66e Add ixl and iavf 2020-09-09 05:23:26 +00:00
yamaguchi
c5772b6d01 Note iavf(4) 2020-09-09 05:16:01 +00:00
mrg
ca7ab82162 consolidate a bunch of libstdc++ variable collection. 2020-09-09 04:52:32 +00:00
yamaguchi
2f809fbf63 Added the explain about locking order in iavf(4) 2020-09-09 00:56:17 +00:00
jakllsch
37935ca945 fix bad conditional in iavf_parse_modprop()
found by clang
2020-09-09 00:35:36 +00:00
riastradh
c71abd7388 aesarmv8: Reallocate registers to shave off unnecessary MOV. 2020-09-08 23:58:09 +00:00
riastradh
f70af73535 aesarmv8: Issue two 4-register ld/st, not four 2-register ld/st. 2020-09-08 23:57:43 +00:00
riastradh
ab19f80d4d aesarmv8: Adapt aes_armv8_64.S to big-endian.
Patch mainly from (and tested by) jakllsch@ with minor tweaks by me.
2020-09-08 23:57:13 +00:00
riastradh
0fc796c545 aes(9): Fix edge case in bitsliced SSE2 AES-CBC decryption.
Make sure self-tests exercise this edge case.

Discovered by confusion over code inspection of jak's adaptation of
aes_armv8_64.S for big-endian.
2020-09-08 22:48:24 +00:00
riastradh
2b7335b2eb alpha: Use load-acquire/store-release.
Omit needless membar in pmap_kenter_pa while here -- caller must
ensure pmap_kenter_pa on one CPU happens before use of the VA on
another CPU anyway, so there is no benefit to a membar here.

ok thorpej@
2020-09-08 21:41:37 +00:00
mrg
d841008ee6 oops, pull out the value of pstl_headers. 2020-09-08 19:17:24 +00:00
rillig
1276186758 distrib/sets/fmt-list: add no-action mode
This is useful for finding parse errors only.  Inspired by some entries
that are obsolete and have more than the "obsolete" flag.  There are
only few of these entries though, and they don't seem worth fixing.
2020-09-08 19:11:30 +00:00
rillig
45a9907314 lists/man/mi: remove extraneous space 2020-09-08 19:06:49 +00:00
rillig
aa448ea91d make(1): clean up comments in cond.c 2020-09-08 18:51:23 +00:00