Age | Commit message (Collapse) | Author |
|
Basically just make all the bintime routines look and behave more like
the timeradd(3) macros.
Switch to three-argument forms for structure math, introduce and use
bintimecmp(9), and rename the structure conversion routines to resemble
e.g. TIMEVAL_TO_TIMESPEC(3).
Document all of this in a new bintimeadd.9 page.
Code input from mpi@, manpage input from schwarze@.
code ok mpi@, docs ok schwarze@, docs probably still ok jmc@
|
|
implements mapping of MSI and MSI-X interrupts with new generic functions.
Fixes a use-after-free in sone PCI device drivers that call pci_intr_string(9)
after pci_intr_establish(9).
ok deraadt@
|
|
implements mapping of MSI and MSI-X interrupts with new generic functions.
Fixes a use-after-free in sone PCI device drivers that call pci_intr_string(9)
after pci_intr_establish(9).
ok deraadt@
|
|
|
|
a rolling computation for the fast-hash.OB With this openrsync is on
par with gpl rsync for file updates.
From kristaps
|
|
The :visited rule was contributed by <Armin at Besirovic dot com>.
Guidance and OK tj@.
|
|
|
|
|
|
reach-around for .inc files. That method is now gone.
|
|
from Hiltjo Posthuma
|
|
|
|
ok claudio
|
|
TAILQ_HEADs. Allocate them instead. Found from a problem reported by
sthen@.
|
|
Most of these are correct just as '. A few benefit from Ql or \(aq.
But if in doubt, just use '.
|
|
|
|
From Stephen Gregoratto; thanks!
|
|
function is also a proper place for setting up the plimit pool.
While here, raise the IPL of the plimit pool to IPL_MPFLOOR, needed
in upcoming MP work.
OK claudio@
|
|
|
|
_csu_finish() to _libc_preinit(), which is an .init_array function
in shared libc (and mark it INITFIRST) or a .preinit_array function
in static libc, grabbing the _dl_cb callback there from ld.so. Then
in _csu_finish(), invoke the dl_clean_boot() callback to free ld.so's
startup bits before main() gets control.
Other cleanups this permits:
- move various startup structures into .data.rel.ro
- the dl* stubs in libc can be strong and call the callbacks provided
via _dl_cb
- no longer need to conditionalize dlctl() calls on presence of _DYNAMIC
original concept and full diff ok kettenis@
ok deraadt@
|
|
Lookup the address that a syscall instruction is executed from, and kill
the process if that page is writeable. This brings an aspect of W^X
behaviour to W|X mappings (in JITs not yet adapted to W^X). The goal is
to remove simple attack methods and force use of ret2libc or other more
complicated means.
ok kettenis stefan visa
|
|
|
|
Problem noticed by bluhm@. Discussed on hackers.
ok claudio@
|
|
we need KVA to keep track of all the RAM pages, machines with a lot
of memory easily exhaust our KVA space. We need about 1G of KVA
per 32G of memory, so with 16G of KVA we can maintain close to 512G
of memory.
ok kettenis@
|
|
|
|
other. Pointed out by Ben Boeckel.
|
|
it will be there.
problem found by naddy@, "heck yeah" kettenis@
|
|
It currently creates a lock ordering problem because SCHED_LOCK() is taken
by hardclock(). That means the "priorities" of a thread should be moved
out of the SCHED_LOCK() first in order to make progress.
Reported-by: syzbot+8e4863b3dde88eb706dc@syzkaller.appspotmail.com
via anton@ as well as by kettenis@
|
|
because we don't have enough kernel memory available in the early bootstrap
phase to allocate the vm_page structures. Fix this by making uvm_growkernel()
work before uvm is initialized like we do on other architectures that don't
use a direct map and explicitly call it after enumerating the available
physical memory with an estimate of how much KVA we need to initialize uvm.
ok patrick@
|
|
Probably not very useful (given the lack of feedback) but feels more
correct. Kernel part tested with option ZLIB_CONST.
|
|
This fixes an issue that might better be solved in imsg itself.
The problem is that IMSG_CTL_RESET does not include an fd while the
following messages (IMSG_CFG_RELAY and IMSG_CFG_RELAY_FD) do contain
fds. If the receiver gets them in one buffer (via recvmsg), the first
fd might be wrongly associated to the IMSG_CTL_RESET message. This is
theoretically taken care of by the imsg API, so it is either a bug in
relayd's API usage or in imsg itself.
"sure" claudio@ as a temporary fix.
|
|
|
|
|
|
ok kettenis@
|
|
From Chris Wilson
00734a9e7329acc48e575f697ee4118998c1dac0 in linux 4.19.y/4.19.47
60b801999c48b6c1dd04e653a38e2e613664264e in mainline linux
|
|
From Nicholas Kazlauskas
62e79f4c6bc05c32be43e2532fe12c082429af27 in linux 4.19.y/4.19.47
b9952f93cd2cf5fca82b06a8179c0f5f7b769e83 in mainline linux
|
|
From Murton Liu
fc5293ab6c48710eed5df3b40e808e3a3c560e2d in linux 4.19.y/4.19.47
59979bf8be1784ebfc44215031c6c88ca22ae65d in mainline linux
|
|
From Dmytro Laktyushkin
70611b1b81c4ec8ce99d3c00107e89697ec1f495 in linux 4.19.y/4.19.47
bc2193992b00488f5734613ac95b78ef2d2803ab in mainline linux
|
|
From Christian Koenig
d8a36f8418034bacef0b5b73c0822f41646d77ba in linux 4.19.y/4.19.47
3d2aca8c8620346abdba96c6300d2c0b90a1d0cc in mainline linux
|
|
|
|
32 bit platforms.
|
|
|
|
|
|
ok patrick@
|
|
Note that hardclock(9) still increments p_{u,s,i}ticks without holding a
lock.
ok visa@, cheloha@
|
|
enabled.
ok visa@
|
|
It turns out MachineFrameInfo.hasCalls() is unreliable, because it is
up to the backends to update this information whenever they add calls
to a function, and this does not always happen.
ok kettenis@
|
|
Manpage input from jmc@ and schwarze@, archaeological input from schwarze@.
ok schwarze@
|
|
sense on "join" lines;
|
|
which effectively caused the config file to be ignored. So move
parse_config() back after create().
OK deraadt@
|
|
Tested by many (thanks!)
Feedback & OK rob@
|