summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-17Reimplement bn_sqr_comba{4,8}().Joel Sing
Use bignum primitives rather than the current mess of macros.The sqr_add_c macro gets replaced with bn_mulw_addtw(), while the sqr_add_c2 macro gets replaced with bn_mul2_mulw_addtw(). The variables in the comba functions have also been reordered, so that the patterns are easier to understand - the compiler can take care of optimising the inputs and outputs to avoid register moves. ok tb@
2023-02-17Remove now-unused compat bit SSH_BUG_RSASIGMD5. The code to set thisDarren Tucker
was removed in OpenSSH 7.7 when support for SSH implementations dating back to before RFC standardization were removed. "burn it all" djm@
2023-02-17Remove now-unused compat bit SSH_BUG_BIGENDIANAES. This wasDarren Tucker
previously set for OpenSSH 2.3 (released in 2000) but this check was removed in OpenSSH 7.7 (2018). ok djm@ deraadt@
2023-02-16- remove a leftover .ElJason McIntyre
- escape "An" as this is also a macro
2023-02-16Remove obsolete __HAVE_VM_PAGE_MD define - all platforms provide vm_page_mdMiod Vallat
those days, and nothing checks for that symbol anymore.
2023-02-16Update references in STANDARDS section to use Rs blocksJob Snijders
Also drop largely irrelevant references like IPv6 and CIDR (as we didn't reference IPv4 either), remove obsoleted RFCs and add their successors.
2023-02-16Rewrite bsort() from hand-rolled recursive to simpler iterative reusing codeKlemens Nanni
ksh(1) can sort itself and addel() ensures uniqueness, so reuse both to get a much simpler shell version of `sort -u' that is bug-for-bug compatible with the old one but shorter and easier to tweak/reason about. OK afresh1
2023-02-16Enable dwqe(4).Mark Kettenis
2023-02-16Fix MAC address register offsets.Mark Kettenis
ok patrick@
2023-02-16Revert r1.63.Theo Buehler
GEN_OTHERNAME is the type of a GENERAL_NAMES, not of a DIST_POINT_NAME, which needs naked numbers as there is no enum nor defines describing it. claudio agrees
2023-02-16Add missing RFC 6487 section 4.8.6 CRLDP compliance checksJob Snijders
OK tb@ claudio@
2023-02-16Enable s2n-bignum word_clz() on amd64.Joel Sing
The BN_num_bits_word() function is a hot path, being called more than 80 million times during a libcrypto regress run. The word_clz() implementation uses five instructions to do the same as the generic code that uses more than 60 instructions. Discussed with tb@
2023-02-16Use bn_addw() in bn_mulw(), rather than duplicating add with carry code.Joel Sing
2023-02-16Change include from _internal_s2n_bignum.h to s2n_bignum_internal.h.Joel Sing
2023-02-16Include the ISC license from s2n-bignum's LICENSE file.Joel Sing
2023-02-16Bring in word_clz.S from s2n-bignum for amd64.Joel Sing
2023-02-16Rename bn_umul_hilo() to bn_mulw().Joel Sing
This keeps the naming consistent with the other bignum primitives that have been recently introduced. Also, use 1/0 intead of h/l (e.g. a1 instead of ah), as this keeps consistency with other primitives and allows for naming that works with double word, triple word and quadruple word inputs/outputs. Discussed with tb@
2023-02-16zap stray empty lineTheo Buehler
2023-02-16Remove SSH_BUG_PASSWORDPAD compat bit since it's no longer used.Darren Tucker
ok markus@
2023-02-16Add missing masks to accumulator version of bn_umul_hilo()Joel Sing
2023-02-16regenClaudio Jeker
2023-02-16utrace(2) can run without kernel lock. Now ktruser() will take theClaudio Jeker
lock only when needed. OK miod@ cheloha@
2023-02-16Like other ktrace functions make ktruser() callable without kernel lockClaudio Jeker
by takeing the lock around ktrwrite2(). OK miod@ cheloha@
2023-02-16libressl *_namespace.h: adjust *_ALIAS() to require a semicolonTheo Buehler
LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon. This does not conform to style(9), breaks editors and ctags and (most importantly) my workflow. Fix this by neutering them with asm("") so that -Wpedantic doesn't complain. There's precedent in libc's namespace.h fix suggested by & ok jsing
2023-02-16Remove SSH_BUG_IGNOREMSG compat flag since it's only applicable to SSH1Darren Tucker
and thus no longer used. ok markus@ "kill it with fire" djm@
2023-02-16syncTheo de Raadt
2023-02-16Document pinsyscall(2). The ld.so and kernel enforcement code is notTheo de Raadt
commited ye -- waiting for enough people to run kernels which support the system call. ok jmc
2023-02-16syncTheo de Raadt
2023-02-16Reimplement bn_add_words() and bn_sub_words() using bignum primitives.Joel Sing
This removes the effectively duplicate BN_LLONG version of bn_add_words() and simplifies the code considerably. ok tb@
2023-02-16Add pinsyscall(2). With this you can tell the kernel the locationTheo de Raadt
(start,len) of the syscall stub in libc.so for a specified syscall (using SYS_* notation). Only SYS_execve is supported at this time. ok gnezdo mortimer kettenis
2023-02-16explain why ARIN TAL is not included.Theo de Raadt
ok job
2023-02-16remove the '(R)' from the intel cpu match patternJonathan Gray
Intel(R) does not appear in cpu0: Intel Atom(R) x6425RE Processor @ 1.90GHz, 1895.90 MHz, 06-96-01 reported by patrick@ ok deraadt@
2023-02-16Regen en_US.UTF-8.src for Unicode 14.0.0Andrew Fresh
That comes with perl 5.36. OK millert@
2023-02-16WhitespaceAndrew Fresh
I am pretty sure it was schwarze@ who pointed this out long ago.
2023-02-15proc_ispeer() is not used anywhere anymore so remove it everywhere.Tobias Heider
ok florian@ bluhm@ ok for vmd mlarkin@
2023-02-15Relax kernel lock assertion within tsleep(9). The `nowake' channel isVitaliy Makkoveev
the special case which doesn't expect wakeup(9), so allow to use it without kernel lock held. Discussed with and ok by claudio@
2023-02-15pfsync(4) panics on NULL pointer dereference if thereAlexandr Nedvedicky
are no data ready for bulk transfer. reported and fix kindly tested by hrvoje@ OK bluhm@
2023-02-15Place bn_mul_add_words() after bn_mul_words().Joel Sing
2023-02-15bgpd no longer immediatly opens the connection to its peers so insteadClaudio Jeker
use 'bgpctl nei RDOMAIN2 up' to force the connection up. While there use the same timeouts everywhere. May need further tuning but this works for me. Issue noticed by anton@
2023-02-15The GMAC on the Rockchip RK356x and RK3588 SoCs can only do 32-bit DMAMark Kettenis
so set the appropriate DMA constraint. ok patrick@
2023-02-15Don't print the version twice, but do print a newline before attaching theMark Kettenis
PHY. Put the DMA address of the mbuf into the rx descriptors (instead of the length). Use the correct value when setting the tx ring tail pointer. This make sending and receiving packets work as long as the interface is in promiscuous mode. ok patrick@
2023-02-15Add GMAC-related RK356x clocks.Mark Kettenis
ok patrick@
2023-02-15Use correct order of arguments for shutdown(2).Florian Obser
Luckily routesock would never be <= 2 so shutdown would always failing with EINVAL and not shutting down random other sockets. The kernel was just uselessly piling up route messages that we were never reading. This mistake first showed up in slaacd(8) and then was copied to the other daemons. Reported & fixed by Josiah Frentsos (jfrent at tilde.team), thanks! OK kn
2023-02-15Now Puffy comes on luna88k bootloader!Kenji Aoyama
"Of course!" miod@
2023-02-15drm/i915: Fix VBT DSI DVO port handlingJonathan Gray
From Ville Syrjala 7fa83855852e4b13dd05702569f3f0bb3e1c624d in linux-6.1.y/6.1.12 6a7ff131f17f44c593173c5ee30e2c03ef211685 in mainline linux
2023-02-15drm/i915: Initialize the obj flags for shmem objectsJonathan Gray
From Aravind Iddamsetty baaed8c92927e2530a799daf2e909e6688dc2943 in linux-6.1.y/6.1.12 44e4c5684fcc82d8f099656c4ea39d9571e2a8ac in mainline linux
2023-02-15drm/i915: Move fd_install after last use of fenceJonathan Gray
From Rob Clark bfa700d12274bd3509b64fd545d1046eef89d564 in linux-6.1.y/6.1.12 251e8c5b1b1fadcc387a8e618c7437d330bdac3e in mainline linux
2023-02-15drm/amd/display: fix cursor offset on rotation 180Jonathan Gray
From Melissa Wen 5af27a53a881ed49e071875c10760b0fc13996a1 in linux-6.1.y/6.1.12 49d0555976f0972af68397ed996375c135b38ba7 in mainline linux
2023-02-15drm/amd/display: properly handling AGP aperture in vm setupJonathan Gray
From Alex Deucher 8d81e1c6865e7114d9829b0f3c73a66cd3a0963d in linux-6.1.y/6.1.12 5c4e8c71d1202cd84d870e7e5cb8d6b52f9c3507 in mainline linux
2023-02-15drm/amdgpu/smu: skip pptable init under sriovJonathan Gray
From Jane Jian 4609e1773222670af42e71c3a7bbf0453438d74a in linux-6.1.y/6.1.12 c6ac406cd8ff610a2d5da298b1d3071acfcde7f0 in mainline linux