summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-28fatal out if allocating banner string fails to avoid potential nullDarren Tucker
deref later in sscanf. Spotted by Coverity, ok deraadt@
2023-02-28+syncStuart Henderson
2023-02-28add 7.4 fw keyStuart Henderson
2023-02-28Rewrite/simplify BN_from_montgomery_word() and BN_from_montgomery().Joel Sing
Rename BN_from_montgomery_word() to bn_montgomery_reduce() and rewrite it to be simpler and clearer, moving further towards constant time in the process. Clean up BN_from_montgomery() in the process. ok tb@
2023-02-28Explicitly skip the json_web* tests now.Theo Buehler
2023-02-28Add a few missing NIDs for new Wycheproof tests.Theo Buehler
2023-02-28Skip FRP256v1 curve in ECDH tests. We do not support it.Theo Buehler
2023-02-28Adjust default_print() to not run over snapend.Claudio Jeker
Kill default_print_unaligned() and adjust default_print() to also work with unaligned buffers. There is no need for two functions doing the same thing. Pass the right length in nsh_print to default_print(). Fixes on place that makes tcpdump crash. Reported by Peter J. Philipp (pjp at delphinusdns dot org) OK mbuhl@
2023-02-28Explicitly ignore return from fchmod similar to other calls toDarren Tucker
prevent warning.
2023-02-27Plug mem leak on globbed ls error path. Spotted by Coverity, ok deraadt@Darren Tucker
2023-02-27use the correct size of the execve syscall stubTheo de Raadt
2023-02-27Calculate the size of the static (and profiled static) execve syscall stubTheo de Raadt
and store it in a const variable for use by crt0. help from kettenis and miod
2023-02-27sort VEB and add "rules"; ok stspJason McIntyre
2023-02-27Add missing documentation of veb(4) ioctls to the ifconfig(8) VEB section.Stefan Sperling
These ifconfig commands are supported by veb(4) but were undocumented: deladdr flushrule maxaddr rule rulefile static timeout up As was done before, copy relevant prose from the BRIDGE section. ok jmc@
2023-02-27Pass MII flags depending on the phy mode specified in the device tree.Jonathan Matthew
With this, the WAN port on the Turris Omnia works. tested on Turris MOX by kettenis@ ok patrick@
2023-02-27Turn off TSO if interface is added to layer 2 devices.Jan Klemkow
ok bluhm@, claudio@
2023-02-27There is no reason to-be-cleared chunks cannot participate in delayedOtto Moerbeek
freeing; ok tb@
2023-02-27drm/i915: Remove __maybe_unused from mtl_infoJonathan Gray
From Lucas De Marchi 44610f4c3093bbce3061b77d37bdf1bed8e379da in linux-6.1.y/6.1.14 fff758698842fb6722be37498d8773e0fb47f000 in mainline linux
2023-02-27drm/edid: Fix minimum bpc supported with DSC1.2 for HDMI sinkJonathan Gray
From Ankit Nautiyal 0deb50618944aed143269214daea0ba2ddf2222d in linux-6.1.y/6.1.14 18feaf6d0784dcba888859109676adf1e0260dfd in mainline linux
2023-02-27syncTheo de Raadt
2023-02-27Include varags types in sys/syscalls.h commentAndrew Fresh
Separated with the existing "..." requested by deraadt@ OK gnezdo@
2023-02-26clockintr: add a kernel-facing APIScott Soule Cheloha
We need an API for creating, scheduling, and rescheduling clock interrupts. - Add struct clockintr, a schedulable clock interrupt callback. - Add clockintr_establish(). Allocates a new struct clockintr and binds it to the given clockintr_queue. - Add clockintr_expiration(). Returns the clockintr's absolute expiration uptime. - Add clockintr_nsecuptime(). Returns the clockintr's parent queue's cached uptime. Using a cached timestamp is cheaper than calling nsecuptime(9) repeatedly when we don't absolutely need to. - Add clockintr_schedule(). Schedules the clock interrupt to run at or after the given absolute uptime. - Add clockintr_advance(). Reschedules the clock interrupt in the future on the given period relative to the parent queue's cached uptime. With the above pieces in place we can push most of the scheduling code for hardclock()/statclock()/schedclock() from clockintr_dispatch() into the wrapper functions clockintr_hardclock(), clockintr_statclock(), and clockintr_schedclock(). These wrappers are temporary. I don't want to muck up the wrapped functions while things are still moving around. For the moment these interfaces are internal to kern_clockintr.c. In a later patch we will move the prototypes into <sys/clockintr.h> so anyone can use them. We first need to add a data structure for sorting the clockintr structs. We also need to add a mutex to clockintr_queue to allow arbitrary threads to safely manipulate clock interrupts established on other CPUs. Shown on hackers@. Tweaked by mlarkin@. ok mlarkin@, "no objections" kettenis@
2023-02-26Add a few missing bounds checks when processing terminal escape sequences.Miod Vallat
Without them, the kernel could be made to crash or reboot after receiving some specially crafted terminal escape sequences. Reported by David Leadbeater (dgl, dgl dot cx)
2023-02-26Defragment mbufs in the tx path to work around a (not fully understood)Mark Kettenis
issue on the StarFive JH7100 SoC where packets spanning multiple mbufs are corrupted. Makes ethernet work reliably on the StarFive VisionFive 1 board. ok patrick@
2023-02-26RK3588 support.Mark Kettenis
ok patrick@
2023-02-26Modern Rockchip SoCs, such as the RK356x and RK3588, use a differentMark Kettenis
register layout where the upper 16 bits decide which of the lower 16 bits apply when writing to a register. Handle this new variant. ok patrick@
2023-02-25Use separate lines instead of semicolons.Brent Cook
macOS aarch64 assembly dialect treats ; as comment instead of a newline ok tb@, jsing@
2023-02-25regenVitaliy Makkoveev
2023-02-25Unlock select(2), pselect(2), poll(2) and ppoll(2).Vitaliy Makkoveev
The assertion within tsleep(9) was relaxed to allow calls on special `nowake' channel without kernel lock held. So the sisguspend(2) like cases "select(0, NULL, NULL, NULL, NULL)" and "poll(NULL, 0, INFTIM)" should not trigger it. Commit reverted diff back. ok claudio@
2023-02-24Change to use the default bsd.prog.mk "install" target.Kenji Aoyama
This also brings to install boot.8 man page correctly. ok miod@
2023-02-24Try to warn about syscall() possibly being deleted from libc in theTheo de Raadt
future. The ports team is already running around with axes and mops, but don't worry such an action won't happen quickly. with tb
2023-02-24switch mips64 ld.lld to execute-only, in case someone uses itTheo de Raadt
(the mips64 default is still ld.bfd)
2023-02-24disable jump tables by default on sparc64, in prep for xonly by defaultTheo de Raadt
ok miod
2023-02-24Do not held the vm_map lock while flushing pages in msync(2) and madvise(2).Martin Pieuchot
Mark the VM map as busy instead to prevent any sibling thread to request an exclusive version of the vm_map. This is necessary to let any PG_BUSY page, found in the UVM vnode object, to be released by a sibling in the middle of a page-fault. Note: the page-fault handler releases & re-grab a shared version of the vm_map lock and expect it to be available to make progress. Prevent a 3-Threads deadlock between msync(2), page-fault and mmap(2). The deadlock reported on bugs@ by many occured as follow: ..ThreadA faults & grabs the shared `vmmaplk' then release it before calling ..uvn_get() which might sleep to allocate pages and mark them as PG_BUSY. ..Once the lock is released, threadB calls uvn_flush(). It sees at least a ..PG_BUSY page and sleeps on the `vmmaplk' waiting for threadA to un-busy ..the page. ..At the same time threadC asked for an exclusive version of the lock and ..sleeps until all reader are done with it. This prevents threadA to ..acquire a shared-version of the lock and finish the page fault. This issue is similar to NetBSD's PR #56952 and the fix is from Chuck Silvers. Tested by many on bugs@, thanks! ok kettenis@
2023-02-23Remove dangerous user-settable "addr" variable from MI boot loader, andMiod Vallat
only compile tty-related code (stty command, tty variable) on platforms where it makes sense for the boot loader to control it, rather than the PROM/firmware/whatever.
2023-02-23Introduce X509_get0_uids() accessor functionJob Snijders
By introducing X509_get0_uids(), one can add RPKI profile compliance checks to conform the absence of the issuerUID and subjectUID. OK tb@ jsing@
2023-02-23openssl speed: avoid bad pluralTheo Buehler
Remedy a case of twitching eyes caused by seeing "Doing ... rsa's for 10s". If this breaks someone's script, so be it. ok jsing sthen
2023-02-23Make bootloader 'time' command work correctly on luna88k.Kenji Aoyama
Now the correct date is displayed instead of January 1, 1970. Tested on LUNA-88K2 and nono emulator by me. "make sense" miod@
2023-02-23rpki-client: simplify parse_load_crl_from_mft()Theo Buehler
Now that we always inspect both locations if necessary, we can do away with the loop and simply have the only caller call twice. Removes a bunch of clever complexity and streamlines the code quite a bit. ok claudio job
2023-02-23When parsing MFT the CRL referenced by the MFT is loaded and verified atClaudio Jeker
the same time. So in case of a valid crl pass the CRL filename as entity message to the parent process together with the MFT. This way the MFT and CRL end up both in the valid cache even if some files in the MFT are missing. On severe errors (like X.509 verify errors) the CRL is not moved since it is not considered valid. With and OK job@, tb@
2023-02-23Use explicit .text instead of .previous to please Windows/MinGW on amd64Theo Buehler
ok miod
2023-02-23Fix up the .rodata segment's name for Windows as well.Theo Buehler
Here we need .rdata with some alignment goo. Fortunately, this was already present for .pdata and .xdata, so the change is easy. Also, this is a code path that doesn't affect OpenBSD at all. ok jsing miod
2023-02-23Fix ethertype for NSH. RFC 8300 states ethertype 0x894F has beenMoritz Buhl
allocated for NSH. Found by bluhm. ok dlg.
2023-02-23drm/i915/gen11: Wa_1408615072/Wa_1407596294 should be on GT listJonathan Gray
From Matt Roper 2fc3ff76e96f48e5e4dd705f6794b8483f7c1624 in linux-6.1.y/6.1.13 d5a1224aa68c8b124a4c5c390186e571815ed390 in mainline linux
2023-02-23drm/amd/display: Fail atomic_check early on normalize_zpos errorJonathan Gray
From Leo Li 020eccac747e30a35f1fdd4dc6f18425ff1a5870 in linux-6.1.y/6.1.13 2a00299e7447395d0898e7c6214817c06a61a8e8 in mainline linux
2023-02-23drm/amd/amdgpu: fix warning during suspendJonathan Gray
From Jack Xiao dbe3529e816ee77a19fb6636e762b1dadbd02d10 in linux-6.1.y/6.1.13 8f32378986218812083b127da5ba42d48297d7c4 in mainline linux
2023-02-23drm/amd/display: Properly handle additional cases where DCN is not supportedJonathan Gray
From Alex Deucher b4e79d0c7f9bb938525716b3e05cfca6418e2bae in linux-6.1.y/6.1.13 6fc547a5a2ef5ce05b16924106663ab92f8f87a7 in mainline linux
2023-02-23drm/amdgpu: Enable vclk dclk node for gc11.0.3Jonathan Gray
From Yiqing Yao fc64b04297a0674f4e5aff50622efdce46715fe1 in linux-6.1.y/6.1.13 ac7170082c0e140663f0853d3de733a5341ce7b0 in mainline linux
2023-02-23drm/amdgpu: enable HDP SD for gfx 11.0.3Jonathan Gray
From Evan Quan e9cbb2b0d9f679d7e25b9415cf9d7345441a95c5 in linux-6.1.y/6.1.13 bb25849c0fa550b26cecc9c476c519a927c66898 in mainline linux
2023-02-23drm/amd/display: Reset DMUB mailbox SW state after HW resetJonathan Gray
From Nicholas Kazlauskas 488770cbddd8a873fb3bb8866e8a46211570c367 in linux-6.1.y/6.1.13 154711aa5759ef9b45903124fa813c4c29ee681c in mainline linux