summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-03Add new-session -X and attach-session -x to send SIGHUP to parent whenNicholas Marriott
detaching (like detach-client -P). From Colin Watson in GitHub issue 1773.
2019-06-03Prevent corruption of the pckbc command queue. If multiple synchronousanton
commands are in flight and all corresponding threads are sleeping waiting for a response, the first command to timeout will clear the command queue. The remaining threads once awake will then try to remove a dequeued command from the queue, leading to corruption. Instead, remove commands from the queue before waking up the sleeping thread. A quirk is still needed to handle the case where tsleep() returns successfully during suspend. ok mpi@ visa@ Reported-by: syzbot+fe74fc50c630bfa26302@syzkaller.appspotmail.com
2019-06-03This diff gives the commands beginning-of-buffer and end-of-buffer theMark Lumsden
ability to take a numeric argument and move n/10th of the way from the top or bottom of the current buffer respectively. A universal argument of higher than 9 puts the cursor back to the end/start of buffer.
2019-06-03Don't close the socket in rsync_socket() itself but after calling it.Christian Weisgerber
Fixes a corner case where the socket was closed twice, reported by Hiltjo Posthuma. ok deraadt@
2019-06-03add missing .In linesIngo Schwarze
2019-06-03add missing .In lineIngo Schwarze
2019-06-03Map the raw bus space operations to the regular ones.Patrick Wildt
ok kettenis@
2019-06-03syncTheo de Raadt
2019-06-03Fix priorities of LIPs to match the other changes made in rev 1.17.Mark Kettenis
Makes MSI/MSI-X actually work reliably on machines with agintc(4). ok patrick@
2019-06-03Implement rx filtering using the flow table. Now we have three flow groups,Jonathan Matthew
one that will match any packet, used in promisc mode; one that matches on the low bit of the first byte of the destination mac address, used to receive all multicast packets; and one that matches on the whole destination mac address, used to receive unicast, broadcast and specific multicast addresses. As we add multicast addresses, we create flow entries to match them, but if we run out, we create an all-multicast flow entry. ok dlg@
2019-06-03- Remove a redundant check within alc_mii_readreg_813x().Kevin Lo
The PHY address is already checked within alc_miibus_readreg(). - Remove redundant call to alc_stop_queue(). First thing alc_stop_mac() does is call alc_stop_queue(). From Brad
2019-06-03Switch from bintime_add() et al. to bintimeadd(9).cheloha
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@
2019-06-03Change pci_intr_handle_t into a struct and replace duplicated code thatMark Kettenis
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@
2019-06-02Change pci_intr_handle_t into a struct and replace duplicated code thatMark Kettenis
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@
2019-06-02KNF and sneaky whitespacesTheo de Raadt
2019-06-02Use a simple hash table to look up blocks by the fast-hash. Also useFlorian Obser
a rolling computation for the fast-hash.OB With this openrsync is on par with gpl rsync for file updates. From kristaps
2019-06-02Support prefers-color-scheme: dark.Ingo Schwarze
The :visited rule was contributed by <Armin at Besirovic dot com>. Guidance and OK tj@.
2019-06-02this list file is never usedTheo de Raadt
2019-06-02first few small steps towards unificationTheo de Raadt
2019-06-02A few architectures used a "shared ramdisk/Makefile" with invertedTheo de Raadt
reach-around for .inc files. That method is now gone.
2019-06-02have_md is initialized at startup, don't need to do it again laterTheo de Raadt
from Hiltjo Posthuma
2019-06-02spelling; from Hiltjo PosthumaTheo de Raadt
2019-06-02Repair state and flag bitmasks to match RFC, from Mitchell KromeTheo de Raadt
ok claudio
2019-06-02yacc(1) copies its union so it is not a good place to storeNicholas Marriott
TAILQ_HEADs. Allocate them instead. Found from a problem reported by sthen@.
2019-06-02In manpages, don't escape apostrophes as \'; it's rarely what you want.Anthony J. Bentley
Most of these are correct just as '. A few benefit from Ql or \(aq. But if in doubt, just use '.
2019-06-02spelling/grammar fixes; from larry hynesJason McIntyre
2019-06-02Fix incorrect character escape.Anthony J. Bentley
From Stephen Gregoratto; thanks!
2019-06-02Move initialization of limit0 into a dedicated function. This newVisa Hankala
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@
2019-06-02dump pcie Device Serial Number capability valuesDavid Gwynne
2019-06-02Complete the ld.so boot cleanup: move most libc initialization fromPhilip Guenther
_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@
2019-06-01Refactor the MAP_STACK feature, and introduce another similar variation:Theo de Raadt
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
2019-06-01Update regression test for a maximum sizeof(int32_t) length octets.rob
2019-06-01Limit maximum number of length octets to platform independent sizeof(int32_t).rob
Problem noticed by bluhm@. Discussed on hackers. ok claudio@
2019-06-01Bump VM_MAX_KERNEL_ADDRESS so that we have about 16G of KVA. SincePatrick Wildt
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@
2019-06-01Back out frame pointer elimination optimization.mortimer
2019-06-01If only one of -x or -y is given, use the calculated size for theNicholas Marriott
other. Pointed out by Ben Boeckel.
2019-06-01Do not eliminate frame pointers on i386. The entire i386 ecosystem assumesmortimer
it will be there. problem found by naddy@, "heck yeah" kettenis@
2019-06-01Revert to using the SCHED_LOCK() to protect time accounting.Martin Pieuchot
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@
2019-06-01On machines with large amounts of physical memory we fail to initialize uvmMark 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@
2019-06-01Fix warnings when building zlib with ZLIB_CONST definedJeremie Courreges-Anglas
Probably not very useful (given the lack of feedback) but feels more correct. Kernel part tested with option ZLIB_CONST.
2019-06-01Make sure that the IMSG_CTL_RESET message is sent immediately.Reyk Floeter
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.
2019-06-01update currency exchange rates;Jason McIntyre
2019-06-01Need stdlib.h, from Ben Boeckel.Nicholas Marriott
2019-06-01Recognise Cortex-A65.Jonathan Gray
ok kettenis@
2019-06-01drm: Wake up next in drm_read() chain if we are forced to putback the eventJonathan Gray
From Chris Wilson 00734a9e7329acc48e575f697ee4118998c1dac0 in linux 4.19.y/4.19.47 60b801999c48b6c1dd04e653a38e2e613664264e in mainline linux
2019-05-31drm/amd/display: Set stream->mode_changed when connectors changeJonathan Gray
From Nicholas Kazlauskas 62e79f4c6bc05c32be43e2532fe12c082429af27 in linux 4.19.y/4.19.47 b9952f93cd2cf5fca82b06a8179c0f5f7b769e83 in mainline linux
2019-05-31drm/amd/display: Fix Divide by 0 in memory calculationsJonathan Gray
From Murton Liu fc5293ab6c48710eed5df3b40e808e3a3c560e2d in linux 4.19.y/4.19.47 59979bf8be1784ebfc44215031c6c88ca22ae65d in mainline linux
2019-05-31drm/amd/display: fix releasing planes when exiting odmJonathan Gray
From Dmytro Laktyushkin 70611b1b81c4ec8ce99d3c00107e89697ec1f495 in linux 4.19.y/4.19.47 bc2193992b00488f5734613ac95b78ef2d2803ab in mainline linux
2019-05-31drm/amdgpu: fix old fence check in amdgpu_fence_emitJonathan Gray
From Christian Koenig d8a36f8418034bacef0b5b73c0822f41646d77ba in linux 4.19.y/4.19.47 3d2aca8c8620346abdba96c6300d2c0b90a1d0cc in mainline linux
2019-05-31zap trailing whitespace;Jason McIntyre