Commit Graph

275850 Commits

Author SHA1 Message Date
skrll
7736e3604e KNF 2020-04-15 09:41:09 +00:00
skrll
3bac32237e G/C a #include 2020-04-15 08:14:22 +00:00
joerg
f3cc99aec6 Drop most of the logic associated with pthread__started.
The pthread_cond logic is a questionable optimisation at best and the
post-fork logic is plainly broken.
2020-04-14 23:35:07 +00:00
kamil
43e2a7afaf Set p_oppid always, not just when a parent is traced
PR kern/55151 by Martin Husemann
2020-04-14 22:42:18 +00:00
kamil
579da1aebb Add timeout to syscall_signal_on_sce that hangs from time to time 2020-04-14 22:37:24 +00:00
kre
d7771cb4e9 Only include opt_xxx.h headers when _KERNEL_OPT is defined. 2020-04-14 15:36:02 +00:00
jdolecek
8a9cce1eee fix KASSERT() in xbd_map_align() 2020-04-14 15:16:06 +00:00
jdolecek
37cfcaa8fa rearrange slightly to do proper b_resid accounting, to prepare for partial
transfers
2020-04-14 14:06:24 +00:00
christos
b2032fd53a Add dmesg functionality. 2020-04-14 13:58:11 +00:00
macallan
43dafa4757 defflag ONEWIRE_DEBUG 2020-04-14 13:36:51 +00:00
macallan
93fd4b2a99 add 'driver' for DS2430A EEPROMs which simply dumps the chip's contents and
status register
2020-04-14 13:35:24 +00:00
macallan
03c00baeb7 regen 2020-04-14 13:32:56 +00:00
macallan
78edd088bb add family 0x14 for DS2430A EEPROMs 2020-04-14 13:32:26 +00:00
jdolecek
6bd7d4340a use single pre-allocated buffer for unaligned I/O - it's rare and not
performance critical path, it's more important to ensure it will succeed
eventually; also return EAGAIN rather than ENOMEM, so the I/O will be
retried by dk_start() when previous I/O finishes

fix yet another leak on the xengnt_grant_access() fail path in
xbd_diskstart() - this time the unalign buffer
2020-04-14 13:10:43 +00:00
jdolecek
2b093b00ba add forgotten mutex_exit() in detach, which caused panic in uvm_unmap1()
due to held spin lock
2020-04-14 13:02:40 +00:00
reinoud
0376c5faf1 Move comment related to the sysctl_createv() in SYSCTL_SETUP() from the old
place to the new place too.
2020-04-14 12:47:44 +00:00
roy
b19d027e40 We solves the zpool SIGBUS issue by building a threaded libhack. 2020-04-14 12:14:59 +00:00
reinoud
b3745214b9 fix debug print flag 2020-04-14 11:45:42 +00:00
jdolecek
bc8de0c942 provide d_iosize hook to cap the xfer size used for dumps 2020-04-14 09:27:28 +00:00
jdolecek
5b67952b7b if grant fails also revoke the grants for previous segments, fixes
grant leak on grant error
2020-04-14 08:21:59 +00:00
skrll
4ee8f848b4 Provide a "mach cpuinfo" which displays some struct cpuinfo fields for
a/all CPUs.
2020-04-14 08:06:53 +00:00
skrll
4cbc3d23fc Remove unused ARM32_DB_COMMANDS 2020-04-14 08:00:47 +00:00
wiz
db4c40bd04 Fix typo, expand description slightly. 2020-04-14 08:00:22 +00:00
skrll
69fd99cdf8 Sort db_commands. 2020-04-14 07:59:43 +00:00
jdolecek
6c60eb718d DRY - use pages for sizeof() for the frame allocations, so it get's allocated
the correct size without repeating the type
2020-04-14 07:41:05 +00:00
jdolecek
54f444e1be actually fix also the allocated memory size for the getstatus frames on i386 2020-04-14 07:38:12 +00:00
skrll
da2b34cc84 Fix a comment. From ad@ 2020-04-14 07:31:52 +00:00
jdolecek
9098e41f04 note MP-safe work for xennet(4) and xbd(4) 2020-04-14 07:31:39 +00:00
skrll
76cb9a0523 Fix UVMHIST bulid 2020-04-14 05:43:57 +00:00
kre
e9f637c8af Since dhcpcd-hools/02-dump seems to have been removed from the
repository, don't attempt to install it, and don't expect it to
be installed.    If a better fix is to return 02-dump, then this
change can be reverted (by anyone, just go ahead and do it).

dhcpcd(8) should also have mention of 02-dump removed, if removing
it was intentional.
2020-04-14 03:16:26 +00:00
christos
4b502d5f46 catch up with field move 2020-04-14 00:08:07 +00:00
bouyer
a27ce3b183 By default, events are bound to CPU 0 (exept for IPIs and VTIMERs which
are bound to a different CPU at creation time).
Recent MI changes caused the scheduler to choose a different CPU when
probing and attaching xennet devices (I guess it's the xenbus thread which
runs on a different CPU). This cause the callback to be called on a different
CPU than the one expected by the kernel, and the event is ignored.
It is handled when the clock causes the callback to be called on the right
CPU, which is why xennet still run, but slowly.

Change event_set_handler() to do a EVTCHNOP_bind_vcpu if requested to,
and make sure we don't do it for IPIs and VIRQs (for theses, the op fails).
2020-04-13 22:54:11 +00:00
ad
f708c498bf uvm_fault_check(): if MADV_SEQUENTIAL, change lower lock type to RW_WRITER
in case many threads are concurrently doing "sequential" access, to avoid
excessive mixing of read/write lock holds.
2020-04-13 22:22:19 +00:00
wiz
a29005e232 Remove trailing dot in SEE ALSO. 2020-04-13 20:44:39 +00:00
jdolecek
15b9c61269 KASSERT() that requested I/O size is <= XBD_MAX_XFER - this can happen
e.g. with custom DomU kernel which doesn't have the value for MAXPHYS
reduced to 32k like the XEN3_DOMU config
2020-04-13 20:09:13 +00:00
jdolecek
5dec3f0781 when determining I/O block size for VBLK device, only use pi_bsize
returned by DIOCGPARTINFO if it's bigger than DEV_BSIZE and less
than MAXBSIZE (MAXPHYS)

fixes panic "buf mem pool index 8" in buf_mempoolidx() when the
disklabel contains bsize 128KB and something reads the block device -
buffer cache can't allocate bufs bigger than MAXPHYS
2020-04-13 20:02:27 +00:00
ad
23bf88000c Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed().  Signature matches
FreeBSD.
2020-04-13 19:23:17 +00:00
jdolecek
99e7b5aaf0 make xbd(4) D_MPSAFE 2020-04-13 16:29:59 +00:00
maxv
8d84c138dd Use relaxed atomics on spc_mcount. 2020-04-13 16:09:21 +00:00
maxv
983fd9ccfe hardclock_ticks -> getticks() 2020-04-13 15:54:45 +00:00
roy
d86ca2518a Note import of dhcpcd-9.0.1 2020-04-13 15:48:55 +00:00
roy
b6fb16d89c Sync 2020-04-13 15:46:26 +00:00
roy
b4e670c413 Update to dhcpcd-9.0.1 with the following changes:
* privsep: Improve error when we don't have permission to write lease
  PR bin/55135
* privsep: Fix hooks restarting other daemons
2020-04-13 15:42:20 +00:00
msaitoh
cb058826b4 Get genfb's address offset correctly when the vaule >= 4G. OK's by jmcneill.
Tested on Intel BXNUC10I3FNK (Comet Lake U).
2020-04-13 15:26:57 +00:00
uwe
de1a8e9869 Use .Dl for one line literal display. Add SEE ALSO. 2020-04-13 15:23:18 +00:00
ad
8338008968 Comments 2020-04-13 15:16:14 +00:00
kim
c729dd4278 Fix default route selection
The primary issue was that in revision 1.79 a check was added in the
nd6_defrouter_select() search loop to ignore the entry if RA processing
is enabled on its interface.  In practice this results in all entries
being ignored.

This fix reverses the condition, so that an entry is ignored when RA
processing is NOT enabled on its interface.  Further, the entry is
only ignored for being selected as the default router.  The currently
installed router must be identified regardless of the (current) status
of its interface, so that we can delete the route before installing a
new one.

I also added error logging when adding or deleting a route fails. This
should help the administrator (or kernel developer) in noticing possible
problems.

Finally, if deleting a route fails, the corresponding default route
entry no longer has its "installed" flag cleared, so that deletion will
be retried.  At a minimum, this will cause repeated messages about the
failed deletion as opposed to only getting repeated messages about the
installation of a new default route failing.

Fixes PR kern/55091 and also PR bin/54997 as far as the behaviour
observed with ndp(8).
2020-04-13 14:04:27 +00:00
jmcneill
5b81bbd6c0 Apply similar fix from gic.c that fixed "left shift of 255 by 24 places
cannot be represented in type 'int'" warnings from UBSan.
2020-04-13 12:14:55 +00:00
jmcneill
0078d67e22 Fix "left shift of 255 by 24 places cannot be represented in type 'int'"
warning from UBSan.
2020-04-13 12:14:04 +00:00
jmcneill
3d5831c7f9 Work around a compiler issue when building on aarch64 with KUBSAN. 2020-04-13 12:08:05 +00:00