summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-12Make access to rt_llinfo consistent and remove needless initialisation.Alexander Bluhm
OK mvs@
2023-05-12Access rt_llinfo without checking RTF_LLINFO flag before. They areAlexander Bluhm
always set together with ARP mutex. OK mvs@
2023-05-12regenJonathan Gray
2023-05-12match 6.1.28 drm and remove Intel 0x5698Jonathan Gray
previously DG2-G11, Intel have now decided it is reserved for future use
2023-05-12drm/amd/display (gcc13): fix enum mismatchJonathan Gray
From Jiri Slaby 010842e88269b00b58c6deced7049ff818d73834 in linux-6.1.y/6.1.28 545094d993f4639482018becda5f2a47d126f0ab in mainline linux
2023-05-12drm/i915: Make intel_get_crtc_new_encoder() less oopsyJonathan Gray
From Ville Syrjala 0fe6ef82e4f4764e8f556632e4cd93d78d448e99 in linux-6.1.y/6.1.28 631420b06597a33c72b6dcef78d1c2dea17f452d in mainline linux
2023-05-12drm/amd/display: Fix potential null dereferenceJonathan Gray
From Igor Artemiev b75aaebac265e3f29863699d9a929fdfba13d0a4 in linux-6.1.y/6.1.28 52f1783ff4146344342422c1cd94fcb4ce39b6fe in mainline linux
2023-05-12drm/ttm/pool: Fix ttm_pool_alloc error pathJonathan Gray
From Thomas Hellstrom d2151c5d9dbe3f8fec4cae5f4784edce3ced3a7e in linux-6.1.y/6.1.28 379989e7cbdc7aa7496a00ee286ec146c7599cf0 in mainline linux
2023-05-12drm/ttm: optimize pool allocations a bit v2Jonathan Gray
From Christian Koenig 5e5a4185c66f9478a8cb2f74eed1a5b5a5000b13 in linux-6.1.y/6.1.28 735c466465eba51deaee3012d8403c10fc7c8c03 in mainline linux
2023-05-12drm/amdgpu: register a vga_switcheroo client for MacBooks with apple-gmuxJonathan Gray
From Orlando Chamberlain 78e32896ecc790994034a35a2edef0b6ae043537 in linux-6.1.y/6.1.28 d37a3929ca0363ed1dce02b2772cd5bc547ca66d in mainline linux
2023-05-12drm/probe-helper: Cancel previous job before starting new oneJonathan Gray
From Dom Cobley 809a3fb8d8fce5801300ead8aaf52a4ee102e0db in linux-6.1.y/6.1.28 a8e47884f1906cd7440fafa056adc8817568e73e in mainline linux
2023-05-12drm/i915/dg2: Drop one PCI IDJonathan Gray
From Matt Roper 46473f3bd14a8d6887d2ee56c78aff682bf5d596 in linux-6.1.y/6.1.28 3a38be31ec82920a871963c086393bc0ba26a655 in mainline linux
2023-05-12drm/amd/pm: re-enable the gfx imu when smu resumeJonathan Gray
From Tim Huang f455c9cb9eed246e398977d0d14ac57cd34cefeb in linux-6.1.y/6.1.28 f7f28f268b861c29dd18086bb636abedf0ff59ff in mainline linux
2023-05-12swsmu/amdgpu_smu: Fix the wrong if-conditionJonathan Gray
From Yu Songping d78777c1d4de809d8bc9efc697cb636cbe8e32c2 in linux-6.1.y/6.1.28 484d7dcc709da46a5976c9530eeff931e9ecba82 in mainline linux
2023-05-12drm/amd/display: fix a divided-by-zero errorJonathan Gray
From Alex Hung e43cf7abece2efaebe0a757909d258212d01c404 in linux-6.1.y/6.1.28 0b5dfe12755f87ec014bb4cc1930485026167430 in mainline linux
2023-05-12drm/amd/display: fix PSR-SU/DSC interoperability supportJonathan Gray
From Hamza Mahfooz 09c41688b6e5c038df5baacdb0f4e23c8a10ebdb in linux-6.1.y/6.1.28 13b90cf900ab69dd5cab3cc5035bc7614037e64e in mainline linux
2023-05-12drm/amd/display: limit timing for single dimm memoryJonathan Gray
From Daniel Miess 2abff94db2c6d692772fc07f39b4f9ee894c7197 in linux-6.1.y/6.1.28 1e994cc0956b8dabd1b1fef315bbd722733b8aa8 in mainline linux
2023-05-12drm/amd/display: Remove stutter only configurationsJonathan Gray
From Nasir Osman 5e1574aa0639abf811375aaba1d6799d035dc97b in linux-6.1.y/6.1.28 71c4ca2d3b079d0ba4d9b3033641fea906cebfb6 in mainline linux
2023-05-12add apple-gmux.h for 6.1.28 drmJonathan Gray
2023-05-12asn1oct: add a couple more testsTheo Buehler
2023-05-12Reduce the number of SHA-512 C implementations from three to one.Joel Sing
We currently have three C implementations for SHA-512 - a version that is optimised for CPUs with minimal registers (specifically i386), a regular implementation and a semi-unrolled implementation. Testing on a ~15 year old i386 CPU, the fastest version is actually the semi-unrolled version (not to mention that we still currently have an i586 assembly implementation that is used on i386 instead...). More decent architectures do not seem to care between the regular and semi-unrolled version, presumably since they are effectively doing the same thing in hardware during execution. Remove all except the semi-unrolled version. ok tb@
2023-05-12asn1oct: minor tweak in error messageTheo Buehler
2023-05-12Add regress coverage for {s2i,i2s}_ASN1_OCTET_STRINGTheo Buehler
2023-05-12primility -> primalityJonathan Gray
ok tb@
2023-05-12Be a bit more precise on how s2i_ASN1_OCTET_STRING handles colonsTheo Buehler
2023-05-12test ChrootDirectory in Match blockDamien Miller
2023-05-12better error messagesDamien Miller
2023-05-12staggered deployment parallelism defaults to number of *online* CPUsKlemens Nanni
vmd looks at hw.ncpuonline not hw.ncpu[found], which can differ w/o SMT.
2023-05-11Teach dump_tables about PKs and display non-readable pages as suchPhilip Guenther
2023-05-11Print the manifestNumber when warning about unrecoverable message digest ↵Job Snijders
mismatches This makes it easier to understand "when" certain error conditions arose. OK tb@
2023-05-11Retguard addition in commit 72pYktDvmJhq7OyF was based on the understandingPhilip Guenther
that the removal of the off_t padding, amd64 syscalls no longer passed a 7th or later argument. We overlooked that syscall(2) bumps the arg count by one, so six argument calls like SYS_sysctl still pass an argument on the stack. So, repush the 7th argument so it's at the expected stack offset after the retguard register is pushed. problem reported and ok bluhm@
2023-05-11Stop sending a PHY context update in iwx_run_stop()Stefan Sperling
Fixes firmware error iwx0: 0x20101A28 | ADVANCED_SYSASSERT which would occur while tearing down the state of our association to the AP. The problem occurred when we were trying to reconfigure the PHY context in a way that is incompatible with the TLC configuration. Since we will always call iwx_deauth() next, which removes the AP station and related data such as TLC from firmware before updating the PHY context yet again we can simply skip the redundant PHY context update in iwx_run_stop() to prevent this firmware error. A reliable way to reproduce the problem is an attempt to connect to an 11ac access point on a 5GHz channel while the wrong WPA key is set which happened to me because mpi@ uses a French WPA passphrase. Problem confirmed fixed by me with this simple reproducer. Helpful hints provided by Johannes Berg at Linux/Intel, thanks!
2023-05-11In valid_cert() also skip the check for CERT_IP_INHERIT objects likeClaudio Jeker
it is done for CERT_AS_INHERIT. Without this inheritance of IP address resources does not work. Problem noticed by Ties de Kock (tdekock (at) ripe.net) OK job@ tb@ benno@
2023-05-11pools are always initialised, zap overcautious NULL checkKlemens Nanni
All pools are init'd after pfattach(), none is ever destroyed, so struct pf_pool_limit's .pp always points to valid pools. Drop a check for the impossible from twenty years ago. OK sashan dlg
2023-05-11mi_syscall() can add the KTRC_CODE_SYSCALL flag to the syscall code.Alexander Bluhm
In ktrsyscall() mask the code, otherwise kdump(1) does not show the correct mib of SYS_sysctl when called by syscall(2). OK guenther@
2023-05-11tls_verify.c: give up on variable alignment in this fileTheo Buehler
The previous commit resulted in misalignment, which impacts my OCD worse than no alignment at all. Alignment wasn't consistently done in this file anyway. op tells me it won't affect current efforts in reducing the diff.
2023-05-11Document recent changes in primality testingTheo Buehler
With input from beck and jsing
2023-05-10nat-to may fail to insert state due to conflict on chosen sourceAlexandr Nedvedicky
port number. This is typically indicated by 'wire key attach failed on...' message when pf(4) debugging is enabled. The problem is caused by glitch in pf_get_sport() which fails to discover conflict in advance. In order to fix it we must also calculate toeplitz hash in pf_get_sport() to initialize look up key properly. the bug has been kindly reported by joosepm _von_ gmail _dot_ com OK dlg@
2023-05-10sort the hardware list;Jason McIntyre
2023-05-10Use is_pseudoprime instead of is_prime in bn_bpsw.cTheo Buehler
This is more accurate and improves readability a bit. Apart from a comment tweak this is sed + knfmt (which resulted in four wrapped lines). Discussed with beck and jsing
2023-05-10New udl(4) device, reported by "S V" on tech@Miod Vallat
2023-05-10regenMiod Vallat
2023-05-10New udl(4) device, reported by "S V" on tech@Miod Vallat
2023-05-10Add flag SDEV_UFI so umass_scsi_attach() can provide informationKenneth R Westerback
sufficient to get sdgetdisklabel() to correctly set d_type to DTYPE_FLOPPY in the default disklabel. installboot(8) in particular likes to know it is dealing with a floppy. ok miod@
2023-05-10Reset the io_time (io timeout value) when the timer expires. Without thisClaudio Jeker
the next connect will immediatly timeout again which is not intended. It does not matter in the other case since the connection is destroyed anyway. Problem noticed by job@ and Jelle (jelle (at) luteijn.email) OK job@ tb@
2023-05-10switch two ASN1_STRING_data() to ASN1_STRING_get0_data()Omar Polo
and while here mark as const data. This diff is actually from gilles@, in OpenSMTPD-portable bundled libtls. ok tb@, jsing@
2023-05-10Display correct type name for Microsoft basic data GPTKenneth R Westerback
partitions. Inadvertantly lost in transition to new menu logic.
2023-05-10Microsoft GPT partition attributes can appear on partitions otherKenneth R Westerback
than Basic Data partitions. e.g. Windows Recovery and Windows Reserved partitions. So tweak verbiage to make clear they are MS attributes by prepending 'MS' and always display them. No functional change other than modified fdisk -v output.
2023-05-10Add Miller-Rabin test for random bases to BPSWTheo Buehler
The behavior of the BPSW primality test for numbers > 2^64 is not very well understood. While there is no known composite that passes the test, there are heuristics that indicate that there are likely infinitely many. Therefore it seems appropriate to harden the test. Having a settable number of MR rounds before doing a version of BPSW is also the approach taken by Go's primality check in math/big. This adds a new implementation of the old MR test that runs before running the strong Lucas test. I like to imagine that it's slightly cleaner code. We're effectively at about twice the cost of what we had a year ago. In addition, it adds some non-determinism in case there actually are false positives for the BPSW test. The implementation is straightforward. It could easily be tweaked to use the additional gcds in the "enhanced" MR test of FIPS 186-5, but as long as we are only going to throw away the additional info, that's not worth much. This is a first step towards incorporating some of the considerations in "A performant misuse-resistant API for Primality Testing" by Massimo and Paterson. Further work will happen in tree. In particular, there are plans to crank the number of Miller-Rabin tests considerably so as to have a guaranteed baseline. The manual will be updated shortly. positive feedback beck ok jsing
2023-05-10Implement TCP send offloading, for now in software only. This isAlexander Bluhm
meant as a fallback if network hardware does not support TSO. Driver support is still work in progress. TCP output generates large packets. In IP output the packet is chopped to TCP maximum segment size. This reduces the CPU cycles used by pf. The regular output could be assisted by hardware later, but pf route-to and IPsec needs the software fallback in general. For performance comparison or to workaround possible bugs, sysctl net.inet.tcp.tso=0 disables the feature. netstat -s -p tcp shows TSO counter with chopped and generated packets. based on work from jan@ tested by jmc@ jan@ Hrvoje Popovski OK jan@ claudio@