CVS: cvs.openbsd.org: src

2024-03-29 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/03/29 23:56:22

Modified files:
usr.bin/ssh: PROTOCOL.key 

Log message:
in OpenSSH private key format, correct type for subsequent private
keys in blob. From Jakub Jelen via GHPR430



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2024/03/29 23:14:12

Modified files:
lib/libcrypto  : Symbols.namespace 
lib/libcrypto/aes: aes.c aes_core.c aes_ige.c 
Added files:
lib/libcrypto/hidden/openssl: aes.h 

Log message:
Hide symbols in aes

ok jsing



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2024/03/29 22:58:12

Modified files:
lib/libcrypto  : Symbols.namespace 
lib/libcrypto/camellia: camellia.c 
Added files:
lib/libcrypto/hidden/openssl: camellia.h 

Log message:
Hide symbols in camellia

ok tb



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 22:34:17

Modified files:
lib/libcrypto/rsa: rsa_pk1.c 

Log message:
Rewrite RSA_padding_add_PKCS1_type_{1,2}() with CBS/CBB.

ok tb@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/03/29 22:27:44

Modified files:
usr.bin/ssh: readpass.c 

Log message:
allow WAYLAND_DISPLAY to enable SSH_ASKPASS

>From dkg via GHPR479; ok dtucker@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2024/03/29 21:45:47

Modified files:
lib/libcrypto  : Symbols.namespace 
lib/libcrypto/whrlpool: whirlpool.c 
Added files:
lib/libcrypto/hidden/openssl: whrlpool.h 

Log message:
Hide symbols in whrlpool

ok tb



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 20:20:39

Modified files:
regress/lib/libcrypto/rsa: rsa_padding_test.c 

Log message:
Do multiple padding add/check iterations.

This increases the chance of triggering bugs due to input and/or randomised
padding.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2024/03/29 19:53:05

Modified files:
lib/libcrypto/cms: cms_ess.c cms_io.c cms_lib.c 
lib/libcrypto  : Symbols.namespace 
lib/libcrypto/hidden/openssl: cms.h 

Log message:
Hide symbols in CMS

ok jsing



CVS: cvs.openbsd.org: src

2024-03-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/03/29 19:13:56

Modified files:
sys/arch/sparc64/include: ctlreg.h 

Log message:
use void in function decl with no args; avoids non-ANSI smatch warnings



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 18:36:14

Modified files:
regress/lib/libcrypto/rsa: Makefile 
Added files:
regress/lib/libcrypto/rsa: rsa_padding_test.c 

Log message:
Add initial regress for RSA padding.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2024/03/29 18:35:15

Modified files:
lib/libcrypto/cms: cms.h 

Log message:
Remove pointless guard in cms header

ok jsing



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 18:34:40

Modified files:
regress/lib/libcrypto/dsa: Makefile 
regress/lib/libcrypto/rsa: Makefile 

Log message:
Tidy indentation.

Requested by tb@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 18:32:13

Modified files:
regress/lib/libcrypto/dsa: Makefile 
regress/lib/libcrypto/rsa: Makefile 

Log message:
Remove -app2_1 flags being passed to dsa and rsa regress.

Nothing does flag handling in these tests.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/03/29 16:11:34

Modified files:
sys/arch/riscv64/riscv64: sbi.c 
sys/arch/riscv64/include: sbi.h 

Log message:
Use SBI calls to reboot or power down the machine when the firmware
supports them.

ok jca@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/03/29 16:08:09

Modified files:
sys/dev/fdt: dwiic_fdt.c 

Log message:
Skip calculating timings if we can't determine the frequency of the clock.
This avoids programming the hardware with clearly wrong values.  On the
Milk-V Pioneer this means the I2C controller remains functional and
rebooting using the appropriate SBI call still works.

ok miod@



CVS: cvs.openbsd.org: www

2024-03-29 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:www
Changes by: be...@cvs.openbsd.org   2024/03/29 15:40:48

Modified files:
.  : 75.html 

Log message:
changes up to mid november



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:29:34

Modified files:
sys/arch/sparc64/dev: ebus_mainbus.c fhc.c psycho.c pyro.c 
  sbus.c schizo.c vbus.c vpci.c 
sys/arch/sparc64/include: intr.h 
sys/arch/sparc64/sparc64: clock.c intr.c machdep.c 

Log message:
Drop the first argument of intr_establish().

Instead, require all callers to put the right value in the ih_pil field, and
have intr_establish() trust them rather than assigning this field again from
its first argument.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:27:53

Modified files:
sys/arch/sparc64/include: cpu.h proc.h 
sys/arch/sparc64/sparc64: db_interface.c genassym.cf locore.s 
  machdep.c pmap.c vm_machdep.c 

Log message:
Store the physical address of each pcb in struct mdproc, and use this in
order to speed up window spills, rather than doing an inline pmap_extract
(well, pseg_get).

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:26:38

Modified files:
sys/arch/sparc64/sparc64: clock.c cpu.c machdep.c pmap.c 

Log message:
Remove truly unneeded includes (not included indirectly).

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:25:55

Modified files:
sys/arch/sparc64/sparc64: locore.s 

Log message:
Check for %otherwin being nonzero earlier in rft_user.

There is one code path using it in %g2 and another using it in %g7.
There is no reason for them to use different registers, and fixing
this allows the check to be performed a bit earlier.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:23:17

Modified files:
sys/arch/sparc64/sparc64: locore.s 

Log message:
Simplify two more places where we don't need to check for unbiased stacks.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:20:03

Modified files:
sys/arch/sparc64/sparc64: locore.s 

Log message:
STACKFRAME macro is always invoked on a well-formed 64-bit stack, no need
to check for missing BIAS.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:19:30

Modified files:
sys/arch/sparc64/sparc64: trap.c 

Log message:
Text faults should not invoke uvm_grow() since the fault address is not on
stack. Remove duplicated "panic if uvm_fault() fails and we are in kernel mode"
blocks.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:18:19

Modified files:
sys/arch/sparc64/dev: pyro.c vpci.c 
sys/arch/sparc64/include: intr.h 
sys/arch/sparc64/sparc64: clock.c intr.c locore.s 

Log message:
send_softint() was designed as being able to target a particular cpu, but the
code for this was never written and all uses target the running cpu anyway,
so stop pretending it may do things it won't do and drop that cpu argument.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:17:13

Modified files:
sys/arch/sparc64/dev: zs.c 
sys/arch/sparc64/include: z8530var.h 
sys/arch/sparc64/sparc64: autoconf.c conf.c intr.c locore.s 
  machdep.c pmap.c trap.c 

Log message:
Update/fix/remove obsolete or just plainly wrong comments.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:16:38

Modified files:
sys/arch/sparc64/include: signal.h 
sys/arch/sparc64/sparc64: locore.s 

Log message:
Stop including  in locore and remove _LOCORE guards
from this header file.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:16:01

Modified files:
sys/arch/sparc64/include: intr.h 
sys/arch/sparc64/sparc64: intreg.h 

Log message:
Move C declarations from intreg.h to  which includes it.

This makes intreg.h locore-friendly - it only contains the MAXINTNUM define
after that.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:14:56

Modified files:
sys/arch/sparc64/sparc64: genassym.cf 

Log message:
Get rid of unnecessary defines in assym.h.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:14:31

Modified files:
sys/arch/sparc64/fpu: fpu.c fpu_extern.h 
sys/arch/sparc64/include: reg.h 
sys/arch/sparc64/sparc64: emul.c genassym.cf process_machdep.c 
  trap.c 

Log message:
Clean the fpu trap code:
- since there are no hardware fpu operation queues on real sparc64 hardware,
don't bother declaring the relevant struct and fields.
- when an fpu instruction needs to be emulated, pass it directly to
fpu_cleanup rather than fake its appearance in the fpu queue. While there,
also pass the ready-to-use union sigval computed in trap() in case a
signal needs to be delivered.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:12:59

Modified files:
sys/arch/sparc64/sparc64: vm_machdep.c 

Log message:
Be sure to reset p->p_md.md_fpstate to NULL after freeing it in cpu_exit().
There should hopefully be no further faults on this proc causing an fpu
state to be handled, but better play safe than sorry.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:11:32

Modified files:
sys/arch/sparc64/conf: files.sparc64 
sys/arch/sparc64/sparc64: cache.h cpu.c locore.s machdep.c 
  pmap.c 
Removed files:
sys/arch/sparc64/sparc64: cache.c 

Log message:
Clean-up cache-related definitions and routines.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:09:49

Modified files:
sys/arch/sparc64/sparc64: machdep.c ofw_machdep.c 

Log message:
Comment out unused routines. They might become used in the future, so they
are better not moved to the Attic yet.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:09:04

Modified files:
sys/arch/sparc64/dev: z8530kbd.c zs.c 
sys/arch/sparc64/include: cpu.h 
sys/arch/sparc64/sparc64: autoconf.c intr.c locore.s trap.c 

Log message:
Remove dead code. Some of it had been dead since the very beginning of the
sparc64 port.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:08:11

Modified files:
sys/arch/sparc64/fpu: fpu.c fpu_add.c fpu_compare.c fpu_div.c 
  fpu_explode.c fpu_implode.c fpu_subr.c 
sys/arch/sparc64/include: reg.h 
sys/arch/sparc64/sparc64: genassym.cf trap.c 

Log message:
No longer include  from , and have the few
users which need both explicitly include both.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:07:11

Modified files:
sys/arch/sparc64/fpu: fpu.c fpu_add.c fpu_compare.c fpu_div.c 
  fpu_emu.h fpu_explode.c fpu_extern.h 
  fpu_implode.c fpu_mul.c fpu_sqrt.c 
  fpu_subr.c 

Log message:
De-register fpu completion code.

There are pending changes to some of these files, and this would get in the
way.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:06:14

Modified files:
sys/arch/sparc64/include: autoconf.h conf.h cpu.h idprom.h pte.h 
  vmparam.h 
sys/arch/sparc64/sparc64: clock.c locore.s machdep.c 
  ofw_machdep.c pmap.c trap.c 

Log message:
Remove dead defines, prototypes and data, and duplicate or misleading comments.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:05:34

Modified files:
sys/arch/sparc64/include: asm.h 

Log message:
Remove unconditional define of _LOCORE.

This was used to get once-protected-by-_LOCORE defines from
, but is now completely unnecessary and possibly dangerous.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:04:37

Modified files:
sys/arch/sparc64/include: frame.h 

Log message:
Now that this file is no longer used by any libc C file, get rid of checks
for the _LIBC preprocessor symbol.

Also move the CC64FSZ and BIAS defines earlier in order to only have one
!_LOCORE block.

ok claudio@ kettenis@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 15:02:11

Modified files:
lib/libc/arch/sparc64/fpu: fpu_add.c fpu_compare.c fpu_div.c 
   fpu_explode.c fpu_implode.c fpu_mul.c 
   fpu_sqrt.c fpu_subr.c 

Log message:
Do not include  in libc sparc64 fpu routines, they don't
need any of its contents.
ok claudio@ kettenis@



CVS: cvs.openbsd.org: www

2024-03-29 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:www
Changes by: be...@cvs.openbsd.org   2024/03/29 14:30:56

Modified files:
.  : 75.html 

Log message:
formating and polishing of a few sentences



CVS: cvs.openbsd.org: src

2024-03-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/03/29 06:45:13

Modified files:
sys/dev/fdt: dwpcie.c 

Log message:
Fix writing the prefetchable mmio window base/limit.

ok patrick@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 05:19:01

Modified files:
lib/libcrypto/aes: aes_core.c 

Log message:
Tweak defines since the Td4 table is only used for AES_{encrypt,decrypt}



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 05:00:58

Modified files:
lib/libcrypto/aes: aes_core.c 
lib/libcrypto/aes/asm: aes-586.pl aes-armv4.pl aes-mips.pl 
   aes-parisc.pl aes-ppc.pl aes-sparcv9.pl 
   aes-x86_64.pl 
lib/libcrypto/arch/amd64: Makefile.inc 
lib/libcrypto/arch/arm: Makefile.inc 
lib/libcrypto/arch/hppa: Makefile.inc 
lib/libcrypto/arch/i386: Makefile.inc 
lib/libcrypto/arch/mips64: Makefile.inc 
lib/libcrypto/arch/sparc64: Makefile.inc 

Log message:
Always use C functions for AES_{encrypt,decrypt}().

Always provide AES_{encrypt,decrypt}() via C functions, which then either
use a C implementation or call the assembly implementation.

ok tb@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2024/03/29 04:40:07

Modified files:
regress/usr.bin/ssh: sftp-cmds.sh 

Log message:
Use egrep instead of grep -E.  Some plaforms don't have the latter so this
makes things easier in -portable.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2024/03/29 02:19:40

Modified files:
sys/dev/ic : dwqe.c 

Log message:
skip dwqe_tx_proc() processing while the interface is not up

Prevents a crash seen by bluhm@ while running flood ping in parallel
to looping ifconfig dwqe0 down up:
kernel: protection fault trap, code=0
Stopped at  m_tag_delete_chain+0x30:movq0(%rsi),%rax

ok kettenis@ dlg@ patrick@ deraadt@



Re: CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo Buehler
On Thu, Mar 28, 2024 at 05:16:32AM -0600, Joel Sing wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   js...@cvs.openbsd.org   2024/03/28 05:16:32
> 
> Modified files:
>   lib/libcrypto  : x86_64cpuid.pl 
> 
> Log message:
> Remove .init section that calls OPENSSL_cpuid_setup on amd64.
> 
> OPENSSL_cpuid_setup() is already called from OPENSSL_crypto_init(), hence
> we do not need or want automatic initialisation on library load.
> 
> ok tb@
> 

This was discovered after investigating a diff by Viktor Szakats who
tracked down strange crashes on MinGW when experimenting with CET on
this platform to be related to an endbr64 in the .init section.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2024/03/29 01:53:32

Modified files:
usr.bin/kdump  : kdump.c 

Log message:
SYS_msyscall will go away soon.  kdump does not need a special handler
for it.
ok tb



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 01:45:36

Removed files:
lib/libcrypto/idea: i_cbc.c 

Log message:
Remove previously missed idea file.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 01:36:38

Modified files:
lib/libcrypto  : Makefile 
Added files:
lib/libcrypto/cast: cast.c 
Removed files:
lib/libcrypto/cast: c_cfb64.c c_ecb.c c_enc.c c_ofb64.c c_skey.c 
cast_s.h 

Log message:
Consolidate cast code.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 01:26:21

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/camellia: camellia.c 
Removed files:
lib/libcrypto/camellia: cmll_cbc.c cmll_cfb.c cmll_ctr.c 
cmll_ecb.c cmll_local.h cmll_misc.c 
cmll_ofb.c 

Log message:
Consolidate camellia code.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 01:24:09

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/arch/aarch64: Makefile.inc 
lib/libcrypto/arch/alpha: Makefile.inc 
lib/libcrypto/arch/amd64: Makefile.inc 
lib/libcrypto/arch/arm: Makefile.inc 
lib/libcrypto/arch/hppa: Makefile.inc 
lib/libcrypto/arch/i386: Makefile.inc 
lib/libcrypto/arch/mips64: Makefile.inc 
lib/libcrypto/arch/powerpc: Makefile.inc 
lib/libcrypto/arch/powerpc64: Makefile.inc 
lib/libcrypto/arch/riscv64: Makefile.inc 
lib/libcrypto/arch/sparc64: Makefile.inc 

Log message:
Move camellia to primary Makefile.

These files are now built on all platforms.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2024/03/29 01:13:38

Modified files:
regress/lib/libcrypto: Makefile 
Added files:
regress/lib/libcrypto/whirlpool: Makefile whirlpool_test.c 

Log message:
Add table-driven Whirlpool tests

ok tb



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 01:09:37

Removed files:
lib/libcrypto/camellia/asm: cmll-x86.pl cmll-x86_64.pl 

Log message:
Remove now unused camellia assembly implementations.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2024/03/29 01:08:45

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2024/03/29 01:08:18

src/regress/lib/libcrypto/whirlpool

Update of /cvs/src/regress/lib/libcrypto/whirlpool
In directory cvs.openbsd.org:/tmp/cvs-serv50534/whirlpool

Log Message:
Directory /cvs/src/regress/lib/libcrypto/whirlpool added to the repository



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 01:06:21

Modified files:
lib/libcrypto/arch/amd64: Makefile.inc 
lib/libcrypto/arch/i386: Makefile.inc 

Log message:
Stop building camellia assembly on amd64 and i386.

This is a legacy algorithm and the assembly is only marginally faster than
the C code.

Discussed with beck@ and tb@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2024/03/29 00:54:13

Modified files:
usr.sbin/procmap: procmap.1 procmap.c 

Log message:
Stop printing the "syscall" bit related to msyscall(2), since the subsystem
is being deleted.



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 00:52:50

Modified files:
gnu/usr.bin/gcc: Makefile.bsd-wrapper 
gnu/usr.bin/cc : Makefile 
Removed files:
gnu/usr.bin/cc/cc1obj: Makefile 

Log message:
No longer build the objective-C compiler (cc1obj). Its standard library
(libobjc) had been removed from the build years ago, there is no need to
keep the compiler.
ok beck@ joshua@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 00:50:06

Modified files:
sys/kern   : kern_sysctl.c 

Log message:
Remove one global variable duplicating uvmexp.pagesize.
ok guenther@ deraadt@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/03/29 00:49:00

Modified files:
lib/libm   : Makefile 

Log message:
Simplify the conditionals for architectures which do not need any particular
md files lists.
ok guenther@ deraadt@



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2024/03/29 00:48:04

Modified files:
lib/libc/sys   : Makefile.inc sigaltstack.2 
Removed files:
lib/libc/sys   : msyscall.2 

Log message:
the msyscall(2) manual page can be deleted.
Also, the details described in sigaltstack(2) are no longer true.
ok jmc



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2024/03/29 00:47:05

Modified files:
sys/sys: syscall_mi.h 

Log message:
Remove the at-syscall-time check for msyscall(2)'s behaviour.  msyscall(2)
was a big coding effort to ensure that system calls could only be performed
from static-binary/ld.so/libc.so/sigtramp regions of memory, by caching a
uvm entry with a serial number; new mmap/mprotect calls would increment
the map serial, and the entry would need to be looked up again.  So the
cost was O(1) in the usual case, but O(log n) with some locking if a map
change required a new lookup.
In the new world order, such regions are immutable so they cannot be
changed/split by mmap/mprotect; also we know the precise entry locations
of the syscalls due to system call pinning (ELF OPENBSD_SYSCALL and
pinsyscalls(2)), and this is all done as O(1) without any locking.

All the other parts of the subsystem will be ripped out but please
run a kernel with this before I make changes to ld.so..
ok kettenis



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/03/29 00:43:12

Modified files:
lib/libcrypto/man: CMS_add1_signer.3 CMS_sign.3 CMS_verify.3 

Log message:
Sprinkle a few references to RFC 8419



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/03/29 00:42:42

Modified files:
regress/lib/libcrypto/cms: cmstest.c 

Log message:
Add regress coverage for EdDSA in CMS



CVS: cvs.openbsd.org: src

2024-03-29 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/03/29 00:41:58

Modified files:
lib/libcrypto/cms: cms_sd.c 
lib/libcrypto/ec: ecx_methods.c 

Log message:
Implement Ed25519 signatures for CMS (RFC 8419)

This adds support for Edwards curve digital signature algorithms in the
cryptographic message syntax, as specified in RFC 8419. Only Ed25519 is
supported since that is the only EdDSA algorithm that LibreSSL supports
(this is unlikely to change ever, but, as they say - never is a very
long time).

This has the usual curly interactions between EVP and CMS with poorly
documented interfaces and lots of confusing magic return values and
controls. This improves upon existing control handlers by documenting
what is being done and why. Unlike other (draft) implementations we
also happen to use the correct hashing algorithm.

There are no plans to implement RFC 8418.

joint work with job at p2k23

ok jsing



CVS: cvs.openbsd.org: src

2024-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/03/29 00:03:21

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/arch/aarch64: Makefile.inc 
lib/libcrypto/arch/alpha: Makefile.inc 
lib/libcrypto/arch/amd64: Makefile.inc 
lib/libcrypto/arch/arm: Makefile.inc 
lib/libcrypto/arch/hppa: Makefile.inc 
lib/libcrypto/arch/i386: Makefile.inc 
lib/libcrypto/arch/mips64: Makefile.inc 
lib/libcrypto/arch/powerpc: Makefile.inc 
lib/libcrypto/arch/powerpc64: Makefile.inc 
lib/libcrypto/arch/riscv64: Makefile.inc 
lib/libcrypto/arch/sparc64: Makefile.inc 

Log message:
Move aes_core.c to the primary Makefile.

This is now built on all platforms.