summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
5 daysec_lib: zap a useless commentTheo Buehler
5 daysdescribe the endianness of tun_hdrDavid Gwynne
5 daysMinor simplifications in ec_cmp()Theo Buehler
6 daysminor grammar/macro fixes;Jason McIntyre
6 daysRewrite EC_GROUP_cmp()Theo Buehler
Use better variable names (cf. https://jmilne.org/math/tips.html#4) and avoid the weird style of assigning to r (what does r stand for anyway?) and short circuiting subsequent tests using if (r || ...). Also, do not reuse the variables for order and cofactor that were previously used for the curve coefficients. ok jsing
6 daystry documenting tun_hdrDavid Gwynne
6 daysmake a first pass at documenting the network offload support.David Gwynne
the ioctls are here, the offload header is next.
6 daysprovide network offloads between the kernel and userland againDavid 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@ sthen@ backed this out cos of confusion with the ioctl numbers i picked to controlling this feature. i've picked new numbers that don't conflict this time.
6 daysAdd qccpucp(4), a driver for the CPUSS Control Processor (CPUCP) mailboxTobias Heider
controller. It is used as doorbell for the arm-scmi perf protocol and a prerequisite for cpu frequency management on X Elite chips. ok patrick@
6 daysDo not call layout_fix_panes if wp is NULL (that is, a popup).Nicholas Marriott
6 daysSimplify signature of ec_wNAF_mul()Theo Buehler
The only caller passes in num = 1 and is itself called in a path that ensures that the multiplier of the generator is != NULL. Consequently we don't need to deal with an array of points and an array of scalars so rename them accordingly. In addition, the change implies that numblocks and num_scalar are now always 1, so inline this information and take a first step towards disentangling this gordian knot. ok jsing
6 daysProvide a SHA-256 assembly implementation for amd64 using SHA-NI.Joel Sing
This provides a SHA-256 assembly implementation for amd64, which uses the Intel SHA Extensions (aka SHA New Instructions or SHA-NI). This provides a 3-5x performance gain on some Intel CPUs and many AMD CPUs. ok tb@
6 daysRemove sha512-x86_64.pl.Joel Sing
Now that we have replacement SHA-256 and SHA-512 assembly implementations for amd64, sha512-x86_64.pl can go the way of the dodo.
6 daysProvide a replacement assembly implementation for SHA-512 on amd64.Joel Sing
Replace the perlasm generated SHA-512 assembly with a more readable version and the same C wrapper introduced for SHA-256. As for SHA-256, on a modern CPU the performance is largely the same. ok tb@
6 daysAdjust deep logic in cursig() to handle sig_stop specially.Claudio Jeker
If any other signal is pending the stop signal should be deferred. Now cursig() uses ffs() to select the signal and so higher numbered signals like SIGUSR1 would be ignored when going to sleep. So handle default stop signals specially in the deep case, stash them and only use them if no other signal is pending. Fix for signal-stress regress (problem reported by anton@) With and OK mpi@
6 daysAdd CPU capability detection for the Intel SHA extensions (aka SHA-NI).Joel Sing
This also provides a crypto_cpu_caps_amd64 variable that can be checked for CRYPTO_CPU_CAPS_AMD64_SHA. ok tb@
6 daysRemove unreachable check for orphaned process groups in cursig.Claudio Jeker
setsigctx() now does this check and clears sig_stop in that case and instead set sig_ignore. So the check in cursig that is based on sig_stop can never be true. OK mpi@
6 daysSpecify size for K256 symbol.Joel Sing
Missing sizes spotted by guenther@
6 daysMerge ec_kmeth into ec_keyTheo Buehler
6 daysShuffle the global default_ec_key_meth down a few linesTheo Buehler
6 daysMove the default EC_KEY_METHOD to the end of the fileTheo Buehler
6 daysDo not dereference `pve' after releasing `pv_mtx'.Martin Pieuchot
Prevent a race where anything can happen on `pve' resultint in an incorrect locking of a given pmap. Found the hardway by sthen@. ok jsg@, miod@, kettenis@, jca@
7 daysUse a better curve and a better hash for the ECDSA_do_sign() exampleTheo Buehler
(Many examples in this directory are really bad. This is no exception.)
7 dayswait for ice(4) software interrupt to occur when flushing queue interruptsStefan Sperling
This codes runs under IPL_NET. Interrupt processing would get delayed until the ioctl handler was done which is probably not what the device is expecting.
7 daysfix build without ICE_DEBUGStefan Sperling
7 daysimplement the ice(4) Rx interrupt handlerStefan Sperling
7 daysin ice(4), ensure that vsi->max_frame_size gets setStefan Sperling
dlg@ advised me that our drivers should always configure the largest frame size supported by hardware
7 daysAdd no-detach-on-destroy client option (useful for control modeNicholas Marriott
clients). From laur dot aliste at gmail dot com, GitHub issue 4242.
7 daysAdd two new style parameters, width and pad, which apply to scrollbars.Nicholas Marriott
From Michael Grant, GitHub issue 4241.
7 daysec_mult: fix includesTheo Buehler
7 daysTurn off scrollbar when pane is in alternate screen, from Michael Grant,Nicholas Marriott
GitHub issue 4231.
7 daysEC_KEY_copy() don't leave stale private keys in placeTheo Buehler
As most other objects, EC_KEYs can be as sparsely and invalidly populated as imagination permits and the competent designers of EC_KEY_copy() chose to just copy over what's available (yeah, what kind of copy is that?) and leave in place what happens to be there. In particular, if the dest EC key was used with a different group and has a private key, but the source key doesn't, the dest private key remains intact, as invalid, incompatible and unusable as it may be. Fix this by clearing said private key. ok jsing
8 daysadd placeholder for GC 11.5.2 APUJonathan Gray
8 daysprocmap(8) -> procmap(1); spotted by Avon RobertsonJonathan Gray
8 dayssparce -> sparseJonathan Gray
8 daysdrm/amdgpu: prevent NULL pointer dereference if ATIF is not supportedJonathan Gray
From Antonio Quartulli a613a392417532ca5aaf3deac6e3277aa7aaef2b in linux-6.6.y/6.6.61 a6dd15981c03f2cdc9a351a278f09b5479d53d2e in mainline linux
8 daysdrm/amdgpu: Fix DPX valid mode check on GC 9.4.3Jonathan Gray
From Lijo Lazar 3930715c1aefe8e5cbca94144081aa08b466d571 in linux-6.6.y/6.6.61 3ce3f85787352fa48fc02ef6cbd7a5e5aba93347 in mainline linux
8 daysdrm/amdgpu: Adjust debugfs register access permissionsJonathan Gray
From Alex Deucher e2574b57990d482cb4310f8d571e728741c711c8 in linux-6.6.y/6.6.61 b46dadf7e3cfe26d0b109c9c3d81b278d6c75361 in mainline linux
8 daysdrm/amdgpu: add missing size check in amdgpu_debugfs_gprwave_read()Jonathan Gray
From Alex Deucher 8906728f2fbd6504cb488f4afdd66af28f330a7a in linux-6.6.y/6.6.61 4d75b9468021c73108b4439794d69e892b1d24e3 in mainline linux
8 daysdrm/amdgpu: Adjust debugfs eviction and IB access permissionsJonathan Gray
From Alex Deucher 5a8ae5fa576c3315c0b3ce0b0aec2e5d1aadebc9 in linux-6.6.y/6.6.61 f790a2c494c4ef587eeeb9fca20124de76a1646f in mainline linux
8 dayscompatibiliy -> compatibilityJonathan Gray
8 daysMove the stack 1GB higher, closer to the end of the userland address space.Miod Vallat
ok kettenis@
8 daysx509_policy.c: point at RFC 9618Theo Buehler
8 daysrevert tun(4) changes for now, breaks in kdump build (TUNSCAP/TIOCEXT clash)Stuart Henderson
tb@ agrees
8 daysrpki-client: use macros for skipping rather than hardcoded numbersTheo Buehler
ok claudio
8 dayseck_prn: some more air to breatheTheo Buehler
8 dayseck_prn: fix includesTheo Buehler
8 daysec_prn: use pkey rather than pk for an EC_KEYTheo Buehler
8 dayseck_prn: use group rather than x for an EC_GROUPTheo Buehler
8 dayseck_prn: use ec_key rather than x for an EC_KEYTheo Buehler