summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2020-02-04Enable rge(4).Kevin Lo
Tested on rockpro64. ok sthen@
2020-02-02Reapply post-svc-sled in a repaired fashion. The SYS_sigreturn-relatedTheo de Raadt
sigcoderet label must point directly after the svc instruction, because the sigreturn() checks it as SROP mitigation, so place the sled after the label. tested by naddy
2020-02-02Back out previous "insert two nop instructions after svc instructionsChristian Weisgerber
for SYS_exit and SYS_sigreturn in the sigtramp"; init has trouble spawning processes.
2020-02-01Also insert two nop instructions after svc instructions for SYS_exitTheo de Raadt
and SYS_sigreturn in the sigtramp. As these control-flow into a jump or process termination, we never do the +8 dance over the instructions, however the speculation prevention (once these nops are replaced with a speculation barrier) is required. oversight noticed by Anthony Steinhauser.
2020-02-01Back out previous. Nothing wrong with the diff per se but I should haveanton
asked for more oks; my bad!
2020-02-01Grab the kernel lock in pgsigio() as it's strictly needed whileanton
operating on the process structure and issuing signals. This is similar to what sigio_setown() already does. With this in place, the pipe subsystem is no longer required to grab the kernel lock before calling pgsigio(). ok visa@
2020-02-01replace vlan instance SRP lists with SMR_SLISTsJonathan Matthew
As vlan instances obtained from the lists are passed to if_vinput(), which may sleep (with PF locking enabled), we only traverse the vlan lists inside the SMR critical section, and keep the existing reference counting in place. ok visa@ sashan@
2020-02-01Make writes to the f_flag field of `struct file' MP-safe using atomicanton
operations. Since the type of f_flag must change in order to use the atomic(9) API, reorder the struct in order to avoid padding; as pointed out by tedu@. ok mpi@ visa@
2020-01-31actually set the link state down when the /dev entry is closed.David Gwynne
this means a route message is sent when the interface is closed and goes down, but also causes another route message to be sent when the interface comes up on the next open. this is important for things like ospfd and the ospfd regress test because they want to know when link comes up. the regression was pointed out by bluhm, who also helped me isolate the problem.
2020-01-31Remove an unused function.Mike Larkin
Noticed and reported by Adam Steen.
2020-01-30device poll handlers should return POLL flags, not errnos.David Gwynne
this restores restores returning POLLERR when the device is gone. ENXIO doesn't make much sense as part of a pollfd revents field.
2020-01-30Acquire fdplock when updating fd_cmask. This moves the codeVisa Hankala
toward MP-safety. OK mpi@, anton@
2020-01-30Update lock annotations of struct filedesc.Visa Hankala
Requested by and OK mpi@ OK anton@
2020-01-30regenVisa Hankala
2020-01-30Unlock close*(2) and dup*(2).Visa Hankala
Tested by krw@, anton@ OK mpi@, anton@
2020-01-30Split `p_priority' into `p_runpri' and `p_slppri'.Martin Pieuchot
Using different fields to remember in which runqueue or sleepqueue threads currently are will make it easier to split the SCHED_LOCK(). With this change, the (potentially boosted) sleeping priority is no longer overwriting the thread priority. This let us get rids of the logic required to synchronize `p_priority' with `p_usrpri'. Tested by many, ok visa@
2020-01-29Add support for notifications about audio(4) controls changes.Alexandre Ratchov
Whenever a "mixer" control is changed by a program or with volume keys, its index may be read from the /dev/audioctlN device using the read(2) syscall. Only one reader at a time is allowed.
2020-01-28Simplify filterops routines where klist_invalidate() is used.Visa Hankala
klist_invalidate() detaches knotes from the list and rewires them synchronously so that the original filterops routines do not get called after the invalidation. OK anton@, mpi@
2020-01-28The default-brightness-level property actually contains an indexPatrick Wildt
into the brightness-levels array.
2020-01-28Make acpivout(4) call ws_[gs]et_param instead of directlyPatrick Wildt
calling the ACPI methods. On some machines, like my X395, those ACPI methods don't allow changing the brightness, so this allows acpivout(4) to e.g. use amdgpu(4)'s code. In comparison to the previously committed and backed out version we now schedule the brightness change on the ACPI task queue so that we don't run into any recursive locking issues. Additionally the diff has been modified according to the recent commit where we make sure that a 5% brightness change does not result in the same brightness level. ok jcs@ kn@
2020-01-28drm/radeon: fix bad DMA from INTERRUPT_CNTL2Jonathan Gray
From Sam Bobroff 6fab6dbff4a5843b8f44f87a2454450961c1f0bc in linux 4.19.y/4.19.99 62d91dd2851e8ae2ca552f1b090a3575a4edf759 in mainline linux
2020-01-28drm/panel: make drm_panel.h self-containedJonathan Gray
From Jani Nikula e34d8d2b2e2f49d1aa933a1e5f15d3e9ee9aa54b in linux 4.19.y/4.19.99 bf3f5e98559360661a3d2af340d46522512c0b00 in mainline linux
2020-01-28drm/fb-helper: generic: Call drm_client_add() after setup is doneJonathan Gray
From Noralf Tronnes 6c5df6f63e8f98fe89c41c879385105bd0952248 in linux 4.19.y/4.19.99 6e3f17ee73f7e3c2ef0e2c8fd8624b2ece8ef2c9 in mainline linux
2020-01-28drm/fb-helper: generic: Fix setup error pathJonathan Gray
From Noralf Tronnes 66779aa306b37b3789e7acae0b60017b7c3a51d3 in linux 4.19.y/4.19.99 6e1490cf439aa86b104e5124c36275b964238e1f in mainline linux
2020-01-28drm/dp_mst: Skip validating ports during destruction, just refJonathan Gray
From Lyude Paul 035e304f95c3b3ed11ef8a0de48269ef4faad2e7 in linux 4.19.y/4.19.99 c54c7374ff44de5e609506aca7c0deae4703b6d1 in mainline linux
2020-01-27update bpf_iflist in bpfsdetach instead of bpfdetach as some driversJoshua Stein
like USB only use the former and bpf_iflist was otherwise retaining references to a freed bpf_if. ok sashan
2020-01-27Improve use of SMR in dt(4) by changing the time when smr_barrier()Visa Hankala
is invoked. This enables threads to continue gathering events without interruption when another thread starts or stops recording. OK mpi@
2020-01-27Make urtwn(4) attach to tp-link tl-wn823n (RTL8192EU).Stefan Sperling
Tested by me; Hardware provided by Titus Richartz and Theo Richartz, thanks!
2020-01-27regenStefan Sperling
2020-01-27add USB device ID for tp-link tl-wn823nStefan Sperling
2020-01-27Rename advminphys function to adv_minphys. The prototype and one usage wereStuart Henderson
changed in r1.40 but the function itself was missed. Unbreaks i386 build - no other arch enables adv(4).
2020-01-27Send APM_POWER_CHANGE events to userland after refreshing battery infoJeremie Courreges-Anglas
Tested by and ok jcs@
2020-01-27add some comments to tun_destroy, and try be a bit more paranoid.David Gwynne
2020-01-27Make the commonalities of cdminphys, sdminphys and stminphys moreKenneth R Westerback
obvious by consistently using the variable names and idiom of sdminphys. No functional change.
2020-01-27Prototypes should not name the parameters.Kenneth R Westerback
2020-01-27Prototypes should not name the parameters.Kenneth R Westerback
2020-01-26Use long for temporary variables handling b_bcount values in physio().Kenneth R Westerback
Add a KASSERTMSG() to check that strategy functions didn't screw b_resid up too much. ok beck@ tedu@
2020-01-26Set the default brightness level upon attach.Patrick Wildt
2020-01-26The enable-gpios property is an optional property, so don't error out ifPatrick Wildt
it's not there. This allows pwmbl(4) to attach and work on the Pinebook Pro.
2020-01-26add define for IPTOS_DSCP_LE; "low effort" DSCP codepoint standardisedDamien Miller
in RFC8622; ok job@
2020-01-26Pull in drm_bridge.c from linux 4.19.y.Patrick Wildt
ok jsg@
2020-01-26Add simplepanel(4), a driver for simple display panels. This onePatrick Wildt
is good enough to enable the Pinebook Pro's panel. It would be nice to make use of the DRM's BSD-licensed panel code, which has an extensive list of panels and its settings. ok kettenis@
2020-01-26regenTed Unangst
2020-01-26add a new __tmpfd system call that creates a new unnamed file in /tmp.Ted Unangst
intended for shm/fd passing, but for programs that may otherwise like filesystem access. ok beck deraadt kettenis
2020-01-26try disconnecting old world boot.mac bootloader for a bitTed Unangst
2020-01-26vsdk -> vdsk in a panic messageTed Unangst
2020-01-26invert some if logic to shortcircuit some loops and reduce nesting.Ted Unangst
no function change.
2020-01-26Fix comment.Mark Kettenis
2020-01-26Fix spacing issue.Mark Kettenis
2020-01-26Shuffle some names around to make reading the code less headacheKenneth R Westerback
inducing. Rename scsi_adapter member 'scsi_minphys' to 'dev_minphys' to reflect what it is supposed to do. Use consistent naming convention (<dev>_minphys) for the actual device functions. No functional change.