summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-04Merge swap-backed and object-backed inactive page lists.Martin Pieuchot
ok millert@, kettenis@
2022-05-04Variable pri is uninitialized, use msg.m_pri instead. This affectsAlexander Bluhm
the priority of userland messages with kernel or unspecified facility. broken in previous commit; fix from markus@
2022-05-04Tweak wording of a comment to reflect current reality better.Theo Buehler
2022-05-04Rewrite asn1_collect() and asn1_find_end() with CBS.Joel Sing
Use more readable variable and arguments names in the process. ok tb@
2022-05-04Avoid special handling of definite length before calling asn1_find_end().Joel Sing
The asn1_find_end() function handles definite length ASN.1, which means that there is no point in the only caller having code to explicitly handle definite length - it can just call the function. ok tb@
2022-05-04Change asn1_check_tag_cbs() out_len from long to size_t.Joel Sing
The long vs size_t checks can be handled in the asn1_check_tag() wrapper and this will help to avoid propagating long vs size_t issues into new code. ok tb@
2022-05-04Remove extra empty lineClaudio Jeker
2022-05-04regenJonathan Gray
2022-05-04update Intel ADL-S graphics ids, add ADL-N RPL-S RPL-PJonathan Gray
2022-05-04make sure stdout is non-blocking; ok djm@Markus Friedl
2022-05-04As found by n18fuhtm AT tutanota.com there are dhcp servers that send aFlorian Obser
domain name option with length 1 and a single \0. We strip trailing \0 and then end up with length 0. This is a protocol violation, the minimum length for domain name option is 1, and we ignore the lease. Since we are not going to get this fixed this server side, we might as well just pretend that we didn't receive a domain name (or host name). We only ever care about them in the installer anyway. Not getting a lease because of this corner case is not helpful. OK deraadt
2022-05-04drm/i915/adl-n: Enable ADL-N platformJonathan Gray
From Tejas Upadhyay 7e28d0b26759846485978ada860ef4a427e06c8f in mainline linux
2022-05-04drm/i915/rpl-s: Add PCI IDS for Raptor Lake SJonathan Gray
From Anusha Srivatsa 52407c220c44c8dcc6aa8aa35ffc8a2db3c849a9 in mainline linux
2022-05-04drm/i915/dg1: Add new PCI idJonathan Gray
From Jose Roberto de Souza 5f0d4214938db66969a50d4b1262307e39f4f2b2 in mainline linux
2022-05-04drm/i915/adl_s: Update ADL-S PCI IDsJonathan Gray
From Tejas Upadhyay c79b846f892d64f169d3dba18fd2500a83805e3a in mainline linux
2022-05-04Missed removing some memory scaling in vmm, vmctl.Dave Voutila
Continuation of commitid RbITgDkOsW8SMssz removing use of megabytes instead of bytes in vmm(4) and vmctl(8). Missed this spot that only manifests after a vm is started and has its runtime details inspected.
2022-05-03vmm/vmd/vmctl: standardize memory units to bytesDave Voutila
At different points in the vm lifecycle vmm(4), vmctl(8), and vmd(8) refer to a vm's memory range sizes in either bytes or megabytes. This is needlessly complex. Switch to using bytes everywhere and adjust types and constants accordingly. While this makes it possible to specify vm's with memory in fractions of megabytes, the logic requiring whole megabyte values remains. Feedback from deraadt@, mlarkin@, and Matthew Martin. ok mlarkin@
2022-05-03Rate limit uvn_flush error during pageout messages. They occurAlexander Bluhm
when a memory mapped file cannot be written to disk, e.g. if the file system is full. Too much printf() during kernel relinking slows down the system boot. OK deraadt@
2022-05-03Make pf(4) more paranoid about IGMP/MLP messages. MLD/IGMP messagesAlexandr Nedvedicky
with ttl other than 1 will be discarded. Also MLD messages with other than link-local source address will be discarded. IGMP messages with destination address other than multicast class will be discarded. feedback and OK bluhm@, cluadio@
2022-05-03sioctl_onval(3) returns int not voidAlexandre Ratchov
Fix from Carlin Bingham <cb at viennan.net>, thanks!
2022-05-03Rework display of partition types, removing unnecessary trailingKenneth R Westerback
blanks in the arrays of type names, simplifying the code and making better use of printf(). Along the way discover that "APFS Recovery" fits, so nuke the annoying "AFPS Recovry" contraction. No intentional functional change. Some "APFS Recovery" nits pointed out by jsg@
2022-05-03Activate parallel IP forwarding. Start 4 softnet tasks. Limit theAlexander Bluhm
usage to the number of CPUs. lots of testing Hrvoje Popovski; OK sashan@ sthen@
2022-05-03Retire CRYPTO_F_MPSAFE it is no longer of any use. The crypto frameworkClaudio Jeker
no longer uses a callback and so there is no need to define the callback as MPSAFE. OK bluhm@
2022-05-03Add FIDO AUTHENTICATOR section and explain a bit how FIDO works. TheFlorian Obser
wording came mostly from the 8.2 OpenSSH release notes, addapted to fit the man page. Then move the -O bits into the new section as is already done for CERTIFICATES and MODULI GENERATION. Finally we can explain the trade-offs of resident keys. While here, consistently refer to the FIDO thingies as "FIDO authenticators", not "FIDO tokens". input & OK jmc, naddy
2022-05-02Disable DMA as part of the hardware reset, preventing the device fromAnton Lindqvist
ending up in an odd state during netboot in which u-boot (in my case) hands of the device in a somewhat initialized state. ok kettenis@
2022-05-02Use the given queue id argument which happen to already be equal toAnton Lindqvist
GENET_DMA_DEFAULT_QUEUE. ok kettenis@
2022-05-02remove an obsolete rsa1 format example from an example;Jason McIntyre
from megan batty ok djm
2022-05-01syncTheo de Raadt
2022-05-01fix some integer overflows in sieve_large() that show up when tryingDamien Miller
to generate modp groups > 16k bits. Reported via GHPR#306 by Bertram Felgenhauer, but fixed in a different way. feedback/ok tb@
2022-05-01regenTed Unangst
2022-05-01no need to test for toupper function in awkTed Unangst
ok cheloha millert miod
2022-05-01Install useful btrace scripts into /usr/share/btrace directory.Alexander Bluhm
OK tedu@
2022-05-01Split a new function roff_parse_comment() out of roff_expand() because thisIngo Schwarze
functionality is not needed when called from roff_getarg(). This makes the long and complicated function roff_expand() significantly shorter, and also simpler in so far as it no longer needs to return ROFF_APPEND. No functional change intended.
2022-05-01Prevent out-of-bounds array access with binaries that use unsupportedMark Kettenis
relocations. ok guenther@
2022-05-01Check for the correct length field when checking the control transfer dataMarcus Glocker
length. Remove obsolete comment while here. ok kettenis@
2022-04-30Run IP input and forwarding with shared netlock. Also distributeAlexander Bluhm
packets from the interface receive rings into multiple net task queues. Note that we still have only one softnet task. So there will be no concurrency yet, but we can notice wrong exclusive lock assertions. Soon the final step will be to increase the NET_TASKQ define. lots of testing Hrvoje Popovski; OK sashan@
2022-04-30Provide a new function roff_req_or_macro() to parse and handle a requestIngo Schwarze
or macro, including context-dependent error handling inside tbl(7) code and inside .ce/.rj blocks. Use it both in the top level roff(7) parser and inside conditional blocks. This fixes an assertion failure triggered by ".if 1 .ce" inside tbl(7) code, found by tb@ using afl(1). As a side benefit for readability, only one place remains in the code that calls the main handler functions for the various roff(7) requests. This patch also improves column numbers in some error messages and various comments.
2022-04-30Recheck PG_BUSY after locking the page.Martin Pieuchot
Another thread can set the bit if we sleep during rw_enter(9) in which case the page shouldn't be touched. ok semarie@
2022-04-30Add comments to some of the enum roff_tok values;Ingo Schwarze
particularly useful for values that have non-obvious semantics like ROFF_MAX, ROFF_cblock, ROFF_RENAMED, and TOKEN_NONE; no code change.
2022-04-30Enforce proper memory ordering in refcnt_rele() and refcnt_finalize()Visa Hankala
Make refcnt_rele() and refcnt_finalize() order memory operations so that preceding loads and stores happen before 1->0 transition. Also ensure that loads and stores that depend on the transition really begin only after the transition has occurred. Otherwise the object destructor might not see the object's latest state. OK bluhm@
2022-04-30When performing ipsp_ids_free(), grab `ipsec_flows_mtx' mutex(9) before doVitaliy Makkoveev
`id_refcount' decrement. This should be consistent with `ipsp_ids_gc_list' list modifications, otherwise concurrent ipsp_ids_insert() could remove this dying `ids' from the list before if was placed there by ipsp_ids_free(). This makes atomic operations with `id_refcount' useless. Also prevent ipsp_ids_lookup() to return dying `ids'. ok bluhm@
2022-04-30Refactor the handler function roff_block_sub() for clarity and simplicity.Ingo Schwarze
1. Do not needlessly access the function pointer table roffs[]. Instead, simply call the block closing function directly. 2. Sort code: handle both cases of block closing at the beginning of the function rather than one at the beginning and one at the end. 3. Trim excessive, partially repetitive and obvious comments, also making the comments considerably more precise. No functional change.
2022-04-30Tweak to clarify sio_stop(3) and sio_flush() description, from jmc@Alexandre Ratchov
2022-04-30Convert the 2nd rttimer callback from struct rttimer to u_int rtableid.Claudio Jeker
The callback only needs to know the rtableid all the other info from struct rtableid is not needed. Also change the default rttimer callback to only delete routes that are RTF_HOST and RTF_DYNAMIC. This way 2 of the ICMP handlers can use NULL as the callback. OK bluhm@
2022-04-30add support for printing some extra large numbers to histogramsTed Unangst
ok mpi
2022-04-29Send IP options with maximum length to check for overflow.Alexander Bluhm
2022-04-29Cleanup makefile so that tests are similar. Link pair to build.Alexander Bluhm
2022-04-29Link pf_opts to the tree.Alexander Bluhm
2022-04-27Send packets with IPv4 option or IPv6 extension header over loopbackAlexander Bluhm
interface and check which of the packets are dropped by pf. The bad packets appear in pflog0 tcpdump. This regress is testing rules with and without allow-opts.
2022-04-29syncJonathan Gray