274807 Commits

Author SHA1 Message Date
kamil
014a81af47 Revert previous
Requested by <riastradh>
2020-03-09 14:45:41 +00:00
rin
ee127cc58e Add missing END() for coldfire. 2020-03-09 13:36:10 +00:00
skrll
7680719e6b Give the thumb atomic ops a chance of working 2020-03-09 11:21:54 +00:00
mlelstv
afc6579b5e Defer crypto operations to a workqueue and make it utilize all CPUs.
Make device mpsafe.
Some code cleanup.
2020-03-09 08:33:15 +00:00
rin
da092eb7d2 Remove wrong comment (copy-paste from somewhere);
__mulsi3 does not depend on __udivsi3.
2020-03-09 08:29:11 +00:00
rin
186c59a8c7 Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.
2020-03-09 05:10:19 +00:00
christos
7aea3fca18 wrong test name 2020-03-09 02:22:20 +00:00
thorpej
594d380f4b Add an assertion. 2020-03-09 01:55:16 +00:00
christos
fbd525a3da Add primitive LOCKDEBUG support. 2020-03-09 01:54:31 +00:00
thorpej
0dde84e990 Now that we're allocating rx software state from a fixed pool, we
don't have to round-trip pointers in a sketchy way -- we can round-
trip indices.
2020-03-09 01:53:11 +00:00
christos
ffdb4a83e8 comment out enough stuff to allow crash to print locks. 2020-03-09 01:47:50 +00:00
christos
18fbafecbc print a message for the commands crash does not support.
Allow "show lock"
2020-03-09 01:46:24 +00:00
pgoyette
2ca077cdd2 If a syscall requires a module to be autoloaded, the initial invocation
of that syscall will return ERESTART.  For amd64's netbsd32_syscall()
that means we need to back up the PC saved in the trap frame so we can
re-issue the syscall instruction.  For "normal" syscall traps, we saved
the instruction length in the trap frame, but this was missing for the
oosyscall/lcall path.  Since the PC was not backed up, the kernel-only
value ERESTART was returned to userland, causing all sort of grief for
old compat_netbsd32 executables!

XXX Pullup-9
2020-03-09 01:06:34 +00:00
pgoyette
3d2be0a63f The compat_50_quota code needs quota support from ufs. Add dependency. 2020-03-09 00:42:36 +00:00
thorpej
826d6861ed Allocate a static set of receive software state descriptors at attach
time, and create a simple allocator for them for use by the rx reclaim
handlers.  Don't create and destroy DMA maps for receoive buffers
in the interrupt handlers -- just use the maps that are created at
attach time.
2020-03-09 00:32:53 +00:00
kamil
13b3415a9b Build RUMP with -fno-delete-null-pointer-checks on all compilers
no-delete-null-pointer-checks is required in Clang/LLVM at least for
NULL + 0 operations that trigger LLVM UBSan and could be miscompiled.
2020-03-09 00:03:00 +00:00
mgorny
43b5dbaaaf Update libc SOVERSION 2020-03-08 22:42:35 +00:00
mgorny
52ba4403cb Bump new libc minor due to new errno codes 2020-03-08 22:27:38 +00:00
thorpej
a67cfe799f Give each Tx DMA map 16 DMA segments rather than the previous absurdly large
number, and structure the loop in txp_start() similarly to other drivers
(e.g. ste_start() in the ste(4) driver).  Similar in spirit to OpenBSD's
rev 1.126, but implemented a bit differently.
2020-03-08 22:26:03 +00:00
mgorny
23047d1d4d Bump kernel version after errno changes in compat and nfs 2020-03-08 22:19:14 +00:00
mgorny
35f46e0f22 Update NFS errno mapping and add assert for correctness
Add the mapping for errno values missing in nfsrv_v2errmap[].  While
at it, add a compile-time assert to make sure that the array does not
become out-of-date again.
2020-03-08 22:12:42 +00:00
mgorny
d783b29581 Update dtrace errno.d mapping and add a script for it
Add a new script to autogenerate errno.d from errno.h, and use it
to regenerate the list to match NetBSD errno codes.
2020-03-08 22:11:48 +00:00
mgorny
318f469ce6 Enable EOWNERDEAD & ENOTRECOVERABLE in libstdc++ 2020-03-08 22:10:56 +00:00
mgorny
558ea2bcab PR standards/44921: Add errno consts for robust mutexes
Add the two missing errno.h constants: EOWNERDEAD and ENOTRECOVERABLE.
While technically they're used for robust mutexes which we do not
support at the moment, they are listed in POSIX and used by libc++.
While libc++ can be made to build without it, it just locally redefines
the values then, so we may as well define them globally.
2020-03-08 22:09:42 +00:00
mgorny
5fb02e28e8 Add tests for missing libc catalog entries 2020-03-08 22:08:46 +00:00
mgorny
11397e5cf3 Sync signal messages between catalog and sys_siglist 2020-03-08 22:06:05 +00:00
mgorny
b967d10fab Sync errno messages between catalog and errno.h 2020-03-08 22:05:40 +00:00
kamil
7f5eec67a9 Add support for alignment_assumptions in uubsan
Cherry-pick from FreeBSD:

From 7c1bc5ffc2fa68ddc76e5ea8a3a1a6fdfeee57f0 Mon Sep 17 00:00:00 2001
From: andrew <andrew@FreeBSD.org>
Date: Tue, 28 May 2019 09:12:15 +0000
Subject: [PATCH] Teach the kernel KUBSAN runtime about alignment_assumption

This checks the alignment of a given pointer is sufficient for the
requested alignment asked for. This fixes the build with a recent
llvm/clang.

Sponsored by:	DARPA, AFRL
2020-03-08 21:35:03 +00:00
thorpej
78067cc9b2 Upgrade to newer firmware needed by some txp(4) variants.
From FreeBSD via OpenBSD.
2020-03-08 20:49:31 +00:00
riastradh
9a5bc0da50 Avoid unnecessary zil_commit on rm.
1. Issue zil_commit only if we're actually updating something --
   there's no need to commit if we're unlinking the file or if
   there's no atime update being applied.

2. Issue zil_commit only if the zfs has sync=always set -- for
   sync=standard there's no need for us to commit anything here since
   no application asked for an explicit sync.

Speeds up untarring base.tgz on top of itself by a factor of about
2x, and speeds up rm by a factor of about 10x, on my system with an
SSD SLOG over SATA.  Histogram of unlink, rmdir, and rename timing
shows dramatic reduction in latency for most samples.

(To be fair, this was not an improvement over zfs; issuing the
unnecessary zil_commit was a self-inflicted performance wound.)
2020-03-08 19:59:45 +00:00
thorpej
855f9c3e90 Follow the example of the MII code and don't register the half-duplex
versions of each media type.
2020-03-08 19:24:40 +00:00
thorpej
8cafc2bfeb - Use BUS_ADDR_{LO,HI}32(), and rather than forcing the descriptor
DMA addresses into a 64-bit value (and thus using 64-bit shifts
  when unnecessary), just reference the address from the DMA map
  directly.
- Add some missing byte-swaps.
2020-03-08 19:02:03 +00:00
ad
acd9772347 Only need a read lock for uvm_pagelookup(). 2020-03-08 18:40:29 +00:00
ad
829d7ce904 Typo. 2020-03-08 18:26:59 +00:00
is
08f8c0c8d2 mask was too loose, creating false positives. 2020-03-08 17:54:23 +00:00
christos
eb23c9a273 Add debugging, no functional change. 2020-03-08 17:38:37 +00:00
kamil
7e2ac69e2b Perform bit operations on unsigned integer
ext2fs_vnops.c:1002:2, signed integer overflow: 510008 * 4294 cannot be represented in type 'int

Maximum usec * 4294 is in the range of unsigned int.

>>> 1000000*4294
4294000000
>>> 2**32
4294967296

Patch submitted by Nisarg S. Joshi.
2020-03-08 17:38:12 +00:00
christos
40bc2ecca0 new test for ifconfig 2020-03-08 17:23:55 +00:00
christos
f3812c2b53 Add an ifdef test 2020-03-08 17:21:52 +00:00
ad
58ea2fbbd4 PR kern/55020: dbregs_dr?_dont_inherit_lwp test cases fail on real hardware
lwp_wait(): make the check for deadlock much more permissive.
2020-03-08 17:04:45 +00:00
skrll
304e3f3f2c Fix sets 2020-03-08 15:21:15 +00:00
martin
b1f19796e0 Only inlcude fenv.h if __HAVE_FENV 2020-03-08 15:07:44 +00:00
ad
d05ef83dfb Kill off kernel_lock_plug_leak(), and go back to dropping kernel_lock in
exit1(), since there seems little hope of finding the leaking code any
time soon.  Can still be caught with LOCKDEBUG.
2020-03-08 15:05:18 +00:00
ad
9d385320b0 Don't zap the non-pdpolicy bits in pg->pqflags. 2020-03-08 15:01:50 +00:00
ad
e1c190d346 sched_preempted(): always clear LP_TELEPORT. 2020-03-08 15:00:31 +00:00
msaitoh
ac1928a385 Use unsigned to avoid undefined behavior. Found by kUBSan. 2020-03-08 14:10:24 +00:00
msaitoh
5cb3127813 Use unsigned to avoid undefined behavior. Found by kUBSan. 2020-03-08 14:09:32 +00:00
nisimura
8cdadb314d address to ATF t_vlan failure. adapt ifmcstat(8) output format change. 2020-03-08 09:05:33 +00:00
skrll
25c08ff653 Fix LOCKDEBUG by calling fdtbus_intr_init as part of cpu_startup_hook, i.e.
later.
2020-03-08 08:26:54 +00:00
skrll
3e913d35e8 Use MUTEX_DEFAULT to avoid confusion 2020-03-08 08:25:36 +00:00