summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-02drm/i915: Fix a memory leak with reused mmap_offsetJonathan Gray
From Nirmoy Das 0bdc4b4ba7206c452ee81c82fa66e39d0e1780fb in linux-6.1.y/6.1.9 0220e4fe178c3390eb0291cdb34912d66972db8a in mainline linux
2023-02-02drm/drm_vma_manager: Add drm_vma_node_allow_once()Jonathan Gray
From Nirmoy Das 67444f8ca31cdaf45e0b761241ad49b1ae04bcf9 in linux-6.1.y/6.1.9 899d3a3c19ac0e5da013ce34833dccb97d19b5e4 in mainline linux
2023-02-02drm/amdgpu/display/mst: update mst_mgr relevant variable when long HPDJonathan Gray
From Wayne Lin af8e87f72f9ea4c6915506098e506c4e08d3d49c in linux-6.1.y/6.1.9 f85c5e25fd28fe0bf6d6d0563cf83758a4e05c8f in mainline linux
2023-02-02drm/amdgpu/display/mst: limit payload to be updated one by oneJonathan Gray
From Wayne Lin be6bf2321343592f879176f8a02bfbea2b615826 in linux-6.1.y/6.1.9 cb1e0b015f56b8f3c7f5ce33ff4b782ee5674512 in mainline linux
2023-02-02drm/amdgpu/display/mst: Fix mst_state->pbn_div and slot count assignmentsJonathan Gray
From Lyude Paul 5891a419031d2d319623ee2a92db536bdda75d92 in linux-6.1.y/6.1.9 1119e1f9636b76aef14068c7fd0b4d55132b86b8 in mainline linux
2023-02-02drm/amdgpu: remove unconditional trap enable on add gfx11 queuesJonathan Gray
From Jonathan Kim 60cd9bb28b973764b43dfa836fc0ac26745d54bd in linux-6.1.y/6.1.9 2de3769830346e68b3de0f4abc0d8e2625ad9dac in mainline linux
2023-02-02drm/amd/pm: add missing AllowIHInterrupt message mapping for SMU13.0.0Jonathan Gray
From Evan Quan 076f7a8798f5d87037ff6bc9aa077f854b6459fa in linux-6.1.y/6.1.9 15b207d0abdcbb2271774aa99d9a290789159e75 in mainline linux
2023-02-02drm/display/dp_mst: Correct the kref of port.Jonathan Gray
From Wayne Lin 335ef7d0777c5609d5fadb5b73b96c538fa8fc93 in linux-6.1.y/6.1.9 d8bf2df715bb8ac964f91fe8bf67c37c5d916463 in mainline linux
2023-02-02drm/amdgpu: complete gfxoff allow signal during suspend without delayJonathan Gray
From Harsh Jain 3964b0c2e843334858da99db881859faa4df241d in linux-6.1.y/6.1.9 4b31b92b143f7d209f3d494c56d4c4673e9fc53d in mainline linux
2023-02-02drm/i915: Allow alternate fixed modes always for eDPJonathan Gray
From Ville Syrjala 2c8fb41ed0e64fd58b9381843106fb9ae8e0dc27 in linux-6.1.y/6.1.9 55cfeecc2197de68e9cc30f77c711dcbcdf27510 in mainline linux
2023-02-02drm/i915: Allow panel fixed modes to have differing sync polaritiesJonathan Gray
From Ville Syrjala 7fa092a05791b17414e8888a07b1e3ef3f86633e in linux-6.1.y/6.1.9 2bd0db4b3f0bd529f75b32538fc5a3775e3591c0 in mainline linux
2023-02-02drm/amdkfd: Fix NULL pointer error for GC 11.0.1 on mGPUJonathan Gray
From Eric Huang ca6263dc22acafc04c0d164900e5662a0e920a8a in linux-6.1.y/6.1.9 a6941f89d7c6a6ba49316bbd7da2fb2f719119a7 in mainline linux
2023-02-02drm/amdkfd: Add sync after creating vram boJonathan Gray
From Eric Huang 92af2d3b57a1afdfdcafb1c6a07ffd89cf3e98fb in linux-6.1.y/6.1.9 ba029e9991d9be90a28b6a0ceb25e9a6fb348829 in mainline linux
2023-02-02drm: Add orientation quirk for Lenovo ideapad D330-10IGLJonathan Gray
From Patrick Thompson 68f5d286aa3def44086d8f4e59f8e950dd1f2075 in linux-6.1.y/6.1.9 0688773f0710528e1ab302c3d6317e269f2e2e6e in mainline linux
2023-02-02drm/amd/display: fix issues with driver unloadJonathan Gray
From Hamza Mahfooz b0b029ee04ef3dd6c7da0922204fb9e47a0b9010 in linux-6.1.y/6.1.9 e433adc60f7f847e734c56246b09291532f29b6d in mainline linux
2023-02-02drm/i915/selftests: Unwind hugepages to drop wakeref on errorJonathan Gray
From Chris Wilson d5fb544b4ce56316bdfd542511dcd34c5798c3b8 in linux-6.1.y/6.1.9 93eea624526fc7d070cdae463408665824075f54 in mainline linux
2023-02-02unify spacing for LOAD FLAGS linesTheo de Raadt
2023-02-02i386 and alpha ld.so also work with X-only text LOAD. There is noTheo de Raadt
hardware enforcement for this, but uvm can some of it's own tricks on occasion.
2023-02-02Restore incorrectly deleted test for default partitions intrudingKenneth R Westerback
into the OpenBSD area that is about to be auto-allocated. Fixes resizing partitions on an auto-allocated disk that had a boot partition. Found by dv@
2023-02-01Despite only testing the low-order bit of its operand, the blbc and blbsMiod Vallat
instructions always fetch a 32-bit word when operand is a memory address. This works unless the address is within the last 3 bytes of a page, with the next page being invalid, something which can happen with small malloc'ed structures (I'm looking at you, perl). Work around the problem by requiring a register operand in all cases; the register load will be a zero-extension load of the right width. This is my entry into the "fix a 30-year old bug" contest of 2023.
2023-02-01Move all data blocks from .text to .rodata and cleanup up and homogeneize codeMiod Vallat
responsible from getting the proper address of those blocks. ok tb@ jsing@
2023-02-01Backport gnu/gcc/gcc/c-typeck.c r1.3 to the gcc 3 code base:Miod Vallat
Adjust how gcc3 handles the "missing braces around initializer" warning. In c99 any value can be initalised using a { 0 } constructor independent of the type. Now if a struct's first member is another struct then gcc4 issues the above warning but it should not do that. Move the warning check from push_init_level() to pop_init_level() and check if either { 0 } or { } was used. If additional implicit braces were added surpress the warning. Inspired by gcc PR#64709 light testing by me, serious testing by aoyama@
2023-02-01For xonly, move sha512-ppc.pl's table from text to rodataGeorge Koehler
OpenBSD/macppc will enforce xonly on PowerPC G5, then libcrypto's sha256 would crash by SIGSEGV, because it can't read text. Use ELF relocations "@ha" and "@l" to find the table in rodata. This might break the PowerPC asm on a not-ELF platform (like AIX or Mac OS) if someone would try it there. ok kettenis@ deraadt@
2023-02-01Don't run session tests with openssl 3.0 - these tests aren't TLSv1.3 readyTheo Buehler
2012-10-13import OpenSSL-1.0.1cDamien Miller
2010-10-01import OpenSSL-1.0.0aDamien Miller
2023-02-01Hopefully the last one.Theo Buehler
2023-02-01One more openssl 1.0.2 thing missed.Theo Buehler
2023-02-01Switch from eopenssl to eopenssl30. Missed in both previous commitsTheo Buehler
for some reason.
2023-02-01Fix spellingJob Snijders
2023-02-01Retire OpenSSL 1.0.2 interopTheo Buehler
Now that the OpenSSL 1.0.2 port is gone, there's no need to keep the interop tests anymore. anton's and bluhm's regress tests will switch to testing interoperability with OpenSSL 3.0.
2023-02-01Pull the MONT_WORD define to the top.Joel Sing
Reordering functions with defines hiding in the middle leads to fun outcomes... and apparently the non-MONT_WORD code is broken, at least on aarch64.
2023-02-01Move BN_MONT_CTX_* functions to the top of the file.Joel Sing
No functional change.
2023-02-01Print the pid in lastcomm(1) output for post mortem analysis. PutAlexander Bluhm
it in brackets after the command name, like syslogd does it in log files. A while ago the process id was added to process accounting in the kernel, so no ABI break this time. OK deraadt@
2023-01-31Fix a typo in a comment and spacingAlexandre Ratchov
from weerd@
2023-01-31Remove "deletetunnel" command (marked as "remove during 6.4-current").Theo Buehler
The "-tunnel" command of course remains.
2023-01-31amd64: lapic_timer_trigger: disable interrupts while configuring timerScott Soule Cheloha
lapic_timer_oneshot() does three writes. We need to disable interrupts to ensure the timer lands in a valid state. Link: https://marc.info/?l=openbsd-tech&m=167482851403841&w=2 ok mlarkin@
2023-01-31Not only reset the connection when a fatal error is received (or sent)Claudio Jeker
but also reset the cache and start totally fresh. The RFC is exceptionally vague about error handling but in most cases the cache state is enough off after an error that a fresh restart makes most sense. With and OK job@
2023-01-31On systems without xonly mmu hardware-enforcement, we can still mitigateTheo de Raadt
against classic BROP with a range-checking wrapper in front of copyin() and copyinstr() which ensures the userland source doesn't overlap the main program text, ld.so text, signal tramp text (it's mapping is hard to distinguish so it comes along for the ride), or libc.so text. ld.so tells the kernel libc.so text range with msyscall(2). The range checking for 2-4 elements is done without locking (because all 4 ranges are immutable!) and is inexpensive. write(sock, &open, 400) now fails with EFAULT. No programs have been discovered which require reading their own text segments with a system call. On a machine without mmu enforcement, a test program reports the following: userland kernel ld.so readable unreadable mmap xz unreadable unreadable mmap x readable readable mmap nrx readable readable mmap nwx readable readable mmap xnwx readable readable main readable unreadable libc unmapped? readable unreadable libc mapped readable unreadable ok kettenis, additional help from miod
2023-01-31Fix RTR error reporting: length fields in Error Reports are 32 bitsJob Snijders
OK claudio@
2023-01-31Improve whitespace alignment of RTR error reportsJob Snijders
OK claudio@
2023-01-31typo, fix variable nameMarc Espie
2023-01-31Remove the last ones route lock references from comments.Vitaliy Makkoveev
No functional change.
2023-01-31Route lock was reverted, adjust forgotten commentary.Vitaliy Makkoveev
No functional changes.
2023-01-31Remove the now empty bn_asm.c.Joel Sing
This rather misnamed file (bn_asm.c) previously contained the C code that was needed to build libcrypto bignum on platforms that did not have assembly implementations of the functions it contained.
2023-01-31Simplify bn_div_3_words().Joel Sing
Make use of bn_umul_hilo() and remove the tangle of preprocessor directives that implement different code paths depending on what defines exist. ok tb@
2023-01-31Provide inline assembly bn_umul_hilo() for alpha/powerpc64/riscv64.Joel Sing
These should work, but are currently untested and disabled. ok tb@
2023-01-31Provide inline assembly versions of bn_umul_hilo() for aarch64/amd64/i386.Joel Sing
ok tb@
2023-01-31Provide bn_umul_hilo().Joel Sing
The bignum code needs to be able to multiply two words, producing a double word result. Some architectures do not have native support for this, hence a pure C version is required. bn_umul_hilo() provides this functionality. There are currently two implementations, both of which are branch free. The first uses bitwise operations for the carry, while the second uses accumulators. The accumulator version uses fewer instructions, however requires more variables/registers and seems to be slower, at least on amd64/i386. The accumulator version may be faster on architectures that have more registers available. Further testing can be performed and one of the two implementations can be removed at a later date. ok tb@
2023-01-31Correctly detect b < a in BN_usub().Joel Sing
BN_usub() requires that a >= b and should return an error in the case that b < a. This is currently only detected by checking the number of words in a versus b - if they have the same number of words, the top word is not checked and b < a, which then succeeds and produces an incorrect result. Fix this by checking for the case where a and b have an equal number of words, yet there is a borrow returned from bn_sub_words(). ok miod@ tb@