summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
13 daysprovide a way to negotiate network offloads between the kernel and userland.David Gwynne
userland can request that network packets that are read from or written to the device special file get prepended with a "tun_hdr" struct. this struct contains bits which say what offloads are requested for the packet, including things like ip/tcp/udp/icmp checksums, tcp segmentation offloads, or ethernet vlan tags. userland can write a packet with any of these offloads requested into the kernel at any time, but has to request which ones it's able to handle coming from the kernel. enabling the tun_hdr struct and which offloads userland can handle is done with a new TUNSCAP ioctl. this is based on the virtio_net_hdr in linux, which jan@ actually implemented and had working with vmd. however, claudio@ and i strongly opposed to what feels like a layer violation by pulling virtio structures into the tun driver, and then trying to emulate virtio/linux semantics in our network stack, and playing catch up when the "upstream" projects decide to change the shape or meaning of these bits. tun_hdr is specific to the openbsd network stack and it's semantics, which simplifies our kernel implementation. jan has been pretty gracious about the extra work on the vmd side of things. tested by and ok jan@ ok claudio@
13 daysAES_{decrypt,encrypt}() don't return void internal functionTheo Buehler
"A return statement with an expression shall not appear in a function whose return type is void." ok deraadt miod
13 daysimplement ice_down(); ifconfig ice0 down/up is working nowStefan Sperling
13 dayssyncTheo de Raadt
13 daysTake into account how long the dns probe takes before decding toOtto Moerbeek
punt. A single res_query() call can return immediately (e.g. success or the nameservers are unreachable), or take quite some time, depending on how many nameservers are configured. So measure the actual time it takes and decide wat to do based on that. Early version from beck@; ok claudio@ deraadt@
13 daysEnable ixv(4) in RAMDISK_CDYASUOKA Masahiko
ok stu deraadt
13 daysmerge tap(4) into tun(4). it's the one driver providing both interfaces.David Gwynne
ok and tweaks from claudio@ and jmc@
13 daysSecond sweep of foosz -> num_foos and friendsTheo Buehler
Binary change in main.o and tal.o due to an assertion change and in spl.o due to line number changes looks good to claudio, ok clang + sha256
13 dayspowerpc/pci/pci_machdep.h moved to machine/pci_machdep.h in 2013Jonathan Gray
14 dayssyncTheo de Raadt
14 daysThe subject of a certificate is not optionalTheo Buehler
A certificate must have a subject, so X509_get_subject_name() cannot return NULL on a correctly parsed certificate, even if the subject is empty (which is allowed). So if X509_get_subject_name() returns NULL, error instead of silently ignoring it in tls_check_common_name(). This is currently no issue. Where it matters, the match against the common name will fail later, so we fail closed anyway. ok jsing
14 daysFix simplefb colours for BPP16 and BPP24 by specifiying colourTobias Heider
offsets for RGB formats explicitly. From Paul Fertser ok patrick@ miod@ kettenis@
14 daysAdds support for BPP16 16-bit color EFI framebuffer format as offeredTobias Heider
by u-boot. From Paul Fertser ok patrick@ miod@ kettenis@
14 daysUpdate libexpat to version 2.6.4.Alexander Bluhm
Relevant for OpenBSD are security fix #915, other changes #905 #902 #904 #317 #918 #914. Major library bump is necessary as new error constant has been added to a public header file. CVE-2024-50602 OK matthieu@ tb@ deraadt@
14 daysLink the new manual page EVP_PKEY_new_CMAC_key(3) to the buildIngo Schwarze
and purge the superseded information from the algorithm-independent page EVP_PKEY_new(3).
14 daysDocument EVP_PKEY_new_CMAC_key(3) in sufficient detail such that readersIngo Schwarze
stand a chance of using the API correctly. Admittedly, having so much text below EXAMPLES is somewhat unusual. While all that information is required to use the function correctly, strictly speaking, it is not part of the specification of what EVP_PKEY_new_CMAC_key(3) does, so it woundn't really belong in the DESCRIPTION. Now, designing an API function in such a way that using it correctly requires lots of information about *other* functions and such that all that additional information does not belong into the manual pages of those other functions (both because that would cause distractions in various other manual pages and because it would scatter required information around lots of different pages) is certainly not stellar API design. But we can't help that because these APIs were all originally designed by OpenSSL. Significant feedback and OK tb@.
2024-11-12Add comment for crypto_cpu_caps_aarch64.Joel Sing
2024-11-12Use multipliers for stack offsets and tweak comment.Joel Sing
2024-11-12Check the correct variable in cpuid().Joel Sing
2024-11-12Garbage collect a reference to ecp_mont.c, rewrap commentTheo Buehler
spotted by jsing
2024-11-12ecp_methods.c: rewrap some linesTheo Buehler
2024-11-12Lose the ugly GFp_simple_ and GFp_mont_ infixesTheo Buehler
2024-11-12Make ec_GFp_simple_* staticTheo Buehler
These functions are no longer shared between multiple files, so they can be static in ecp_methods.c and the long list of prototypes can go away.
2024-11-12Merge ecp_mont.c into ecp_methods.cTheo Buehler
2024-11-12KNF nit for end of comment markerTheo Buehler
2024-11-12Rename ecp_smpl.c to ecp_methods.cTheo Buehler
While not the greatest of names, ecp_methods.c is better than ecp_smpl.c. It matches the naming ecx_methods.c and in a subsequent commit it will become the new home of the stuff in ecp_mont.c as well. discussed with jsing
2024-11-12Tidy up loop, from Alexander Arch.Nicholas Marriott
2024-11-12Mouse support on the scrollbars, from Michael Grant.Nicholas Marriott
2024-11-12Rename ips/as and ipsz/asz to ips/ases, num_ips/num_asesTheo Buehler
Having a single letter to distinguish a length from a pointer is error prone. This results in binary change only in validate.c and cert.c due to a line wrap resulting in line number changes and in cert.c there's in addition two asserts that change. checked with/ok job
2024-11-12remove unused arm64_machdep.hJonathan Gray
2024-11-12rename bus space files to match other archsJonathan Gray
ok miod@
2024-11-12bump the type used to specify traffic queue bandwidth to 64bit.David Gwynne
this should let people specify interface and queue bandwidths greater than ~4Gbit. this changes the pf ioctls used to specify queues, so if you want to try this you'll need a new kernel, new headers, and a new pfctl (and systat). or upgrade using a snapshot. the effort and benefit of providing compat isn't worth it. putting it in now so people can kick it around.
2024-11-12Fix a brainfart that happened to me in 2020:Ingo Schwarze
It is impossible to use EVP_DigestInit_ex(3) for CMAC. Besides, EVP_PKEY_CTX_new_id(3) does not produce an EVP_MD_CTX object. Instead, mention the easiest way to actually get the job done using EVP_PKEY_new_CMAC_key(3) and EVP_DigestSignInit(3). OK tb@
2024-11-12add wd to nam2blk to match bdevswJonathan Gray
2024-11-11order nam2blk by major numberJonathan Gray
2024-11-11remove unused mainbus.h; ok miod@Jonathan Gray
2024-11-11Prevent completely empty interface blocks.Florian Obser
This is meaningless in dhcpleased(8) and *not* needed to receive leases for an interface. In fact dhcpleased(8) works just fine without any configuration file at all. man page diff & OK kn
2024-11-11offset the display for the hexadecimal set by one blank space toJason McIntyre
preserve alignment with other sets; diff from chohag at jtan com, but i chose to indent by first column rather than second;
2024-11-11If nostop is set properly ignore stop signals with default handlers.Claudio Jeker
The check right now is in the wrong spot so fix this. OK mpi@
2024-11-11Add an option to control the input buffer size, from Ken Lau.Nicholas Marriott
2024-11-11sync with arm64.htmlJonathan Gray
2024-11-10drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencingJonathan Gray
From Srinivasan Shanmugam 10c20d79d59cadfe572480d98cec271a89ffb024 in linux-6.6.y/6.6.60 15c2990e0f0108b9c3752d7072a97d45d4283aea in mainline linux
2024-11-10remove vmx_pmap_find_pte_ept(), used by removed EPT mprotect ioctlJonathan Gray
ok mlarkin@
2024-11-10Lock send socket buffer for fstat syscall.Alexander Bluhm
In soo_stat() lock send socket buffer mutex around access to sb_state. Althoug not strictly necessary as this is only a single read access, make clear where parallel variable access happens. As this is not performance critical, use mutex instead of read once wrapper. This is also consistent to the receive socket buffer a few lines above. OK mvs@
2024-11-10all archs now have ci_idepth, remove ifdefsJonathan Gray
2024-11-10replace uvm.h includes with uvm_extern.h where possibleJonathan Gray
2024-11-10no need to include both uvm.h and uvm_extern.hJonathan Gray
2024-11-10Wrap comment badly mistreated by an autoformatter due to missing /*-Theo Buehler
2024-11-10Do not call uvm_swap_finicrypt_all() a second time in dumpsys().Jonathan Gray
a change mpi@ committed to all architectures in 2015
2024-11-10remove unused XINTR() defineJonathan Gray