1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-24 06:04:47 +00:00
Commit Graph

236029 Commits

Author SHA1 Message Date
miod
ce1663765c a.out is no longer the commonly encountered binary file format, the world has
moved to ELF.

Move the a.out specific defines and macros, but the MID_xxx values, from
<sys/exec.h> to <a.out.h>, and update the few userland binaries which really
need these defines (i.e. boot-related tools for old architectures) to
explicitly include <a.out.h> when needed.

"Fine" deraadt@
2024-10-16 18:47:47 +00:00
miod
5a69559862 Deliver SIGTRAP, rather than SIGEMT, when a TADDccTV or TSUBccTV instruction
traps. Such instructions are deprecated in v9 (64-bit) code and should never
occur in real-life code. See v9 manual A.59 and A.60 for details.
CVS ----------------------------------------------------------------------
2024-10-16 18:43:42 +00:00
miod
60ddae46be Deliver SIGTRAP, rather than SIGEMT, for trap instructions which are neither
debugger breakpoints nor compiler-generated divide by zero reports.

SIGEMT is a historical curiosity which makes no sense nowadays except on
PDP-11 and VAX hardware.

Discussed with imp@ and visa@ long ago.
2024-10-16 18:40:52 +00:00
dlg
21537d4178 cut tun_init() out, it does pointless work.
tun_init turns interface/stack config into a set of flags that
tun(4) keeps in tun_softc sc_flags, but never uses.

ok miod@ kn@
2024-10-16 11:12:31 +00:00
dlg
cca0aa0677 remove SIOCSIFDSTADDR from the network ioctls.
netintro says it's deprecated, and most of our other drivers are
doing fine without it.

ok miod@ kn@ patrick@
2024-10-16 11:03:55 +00:00
tb
9a67f0c9d9 rpki-client: sprinkle some const
EVP_PKEY_get0_* were made const correct in OpenSSL 3 and now cause the
build of rpki-client to emit warnings. Of course no one is able to see
these warnings because they are hidden in all the deprecation vomit.

Makes rpki-client build cleanly against OpenSSL 3 when configured with
--with-openssl-cflags=-DOPENSSL_SUPPRESS_DEPRECATED.

ok claudio deraadt job
2024-10-16 06:09:45 +00:00
jsg
3bf6096063 remove unneeded frame.h and riscvreg.h includes 2024-10-16 02:32:27 +00:00
tb
813289421d rpki-client/openssl: eliminate pointless OpenSSL deprecation vomit 2024-10-15 21:03:10 +00:00
tb
9445c5e0bc rust-openssl: set resolver="2" for workspace
silences an annoying warning
2024-10-15 19:41:24 +00:00
tb
26dd3e34b3 Unindent error check in EC_GROUP_set_generator() 2024-10-15 17:44:43 +00:00
claudio
53e0023678 Enable sig-stop3 regress test. It should no longer fail now. 2024-10-15 15:06:25 +00:00
claudio
85ce0bb8de Add PS_STOPPED to the flags 2024-10-15 13:49:49 +00:00
claudio
c347603754 Indicate that a process has stopped by setting PS_STOPPED flag
The checks in dowait6 and orphanpg using ps_mainproc are flawed and
fail if the mainproc called pthread_exit before the other threads.
Adding the flag in proc_stop_sweep is racy but the best we have right now.
This fixes regress/sys/kern/signal/sig-stop3.

OK mpi@
2024-10-15 13:49:26 +00:00
claudio
c9003b50c3 Fix runtime calculation. Assiging ts to spc_runtime does not work if ts
is modified.
OK tb@ jca@
2024-10-15 12:26:53 +00:00
claudio
ae3727513b Use pr instead of p->p_p like everywhere else in exit1. 2024-10-15 11:54:07 +00:00
jsg
1b761ed3fa remove unneeded pte.h include 2024-10-15 09:16:39 +00:00
tb
8b24d2c89c Switch ec_asn1_group2parameters() to get0_{order,cofactor}()
These are more ergonomic, result in more readable code, avoid a copy and
we no longer ignore a possible memory allocation error due to API misdesign
and bad code.

ok jsing
2024-10-15 06:35:59 +00:00
tb
b072588b32 Provide EC_GROUP_get0_cofactor() for internal use
While this is public API in OpenSSL, there are no plans to expose it.

ok jsing
2024-10-15 06:27:43 +00:00
jsg
ff46e7d6eb remove struct arpreq from net/if_arp.h
unused since "rewrite to merge arp and routing tables"
in CSRG if_ether.c 7.14 (Berkeley) 06/25/91

used by SIOCSARP, SIOCGARP, SIOCDARP, OSIOCGARP ioctls in Net/2
which were removed before 4.4BSD-Lite

ok sthen@ who tested this with a ports build
2024-10-15 00:41:40 +00:00
deraadt
a5ae96e343 grow i386 media a bit 2024-10-15 00:08:27 +00:00
naddy
47f6b40abf mention SshdAuthPath option; ok djm@ 2024-10-14 23:53:34 +00:00
nicm
aaa8edad21 Set ACS flag for REP. Reported by Romain Francoise, GitHub issue 4182. 2024-10-14 20:26:45 +00:00
tb
60a247a067 Make NULL checks in ec_asn1_group2curve() explicit 2024-10-14 18:17:11 +00:00
tb
cdd7a87bdf Extend ec_asn1_test to check for correct curve coefficient encoding 2024-10-14 13:16:06 +00:00
tb
22b55b0b9c Fix field element encoding for elliptic curve coefficients
SEC 1, section 2.3.5, is explicit that the encoding of an element of the
field of definition for an elliptic curve needs to be a zero-padded octet
string whose length matches the byte size of the field's degree. So use
BN_bn2binpad() to fix this. Factor things into a simple helper to avoid
copy-pasting.

This gets rid of some of the most grotesque code in this file.

ok jsing
2024-10-14 12:50:18 +00:00
tb
5909419fb4 Drop an obvious comment and fix indent for setting the seed
Also remove a pointless cast.

ok jsing
2024-10-14 12:42:52 +00:00
tb
4eae70b15b In ec_asn1_group2curve() rename ok to ret, per usual
ok jsing
2024-10-14 12:38:11 +00:00
jsg
999a7581f8 remove unneeded vmparam.h include from pte.h
include vmparam.h in process_machdep for USER_SPACE_BITS
2024-10-14 12:02:16 +00:00
jan
456b8adfdd Fix build w/o SUSPEND option
with tweaks from miod@

ok miod@
2024-10-14 11:49:34 +00:00
jsg
d93766d5c0 remove unneeded device.h include 2024-10-14 10:08:13 +00:00
jsg
b1f183b67c remove unused struct sigstate; ok miod@ 2024-10-14 08:42:39 +00:00
jsg
118f3e42b7 remove duplicate includes and license; feedback and ok miod@ 2024-10-14 08:26:48 +00:00
jmc
812b370337 remove notes about unsupported modifiers; from nir lichtman
confirmed by miod
2024-10-14 07:05:23 +00:00
djm
9fe0b3699b regress support for split sshd-auth binary 2024-10-14 03:02:08 +00:00
deraadt
115810f983 sshd-auth also has a relink kit 2024-10-14 02:46:50 +00:00
deraadt
ece53d07cc sync 2024-10-14 02:45:44 +00:00
jsg
da325f0bc3 change mutex.h include to rwlock.h
missed when dh_mtx changed from mutex to rwlock in rev 1.6
2024-10-14 02:20:01 +00:00
djm
856b6ee813 Split per-connection sshd-session binary
This splits the user authentication code from the sshd-session
binary into a separate sshd-auth binary. This will be executed by
sshd-session to complete the user authentication phase of the
protocol only.

Splitting this code into a separate binary ensures that the crucial
pre-authentication attack surface has an entirely disjoint address
space from the code used for the rest of the connection. It also
yields a small runtime memory saving as the authentication code will
be unloaded after thhe authentication phase completes.

Joint work with markus@ feedback deraadt@

Tested in snaps since last week
2024-10-14 01:57:50 +00:00
jsg
f007d8ce71 remove unneeded proc.h include 2024-10-14 00:47:36 +00:00
djm
030ab3444b don't start the ObscureKeystrokeTiming mitigations if there has been
traffic on a X11 forwarding channel recently.

Should fix X11 forwarding performance problems when this setting is
enabled. Patch from Antonio Larrosa via bz3655
2024-10-13 22:20:06 +00:00
jsg
d586846e1f byt -> but; ok tb@ 2024-10-13 08:25:09 +00:00
jsg
6af255d52c include stdio.h for sscanf() snprintf() 2024-10-13 03:35:59 +00:00
jsg
9b75ea9efa remove unneeded timeout.h include 2024-10-13 02:27:44 +00:00
jsg
c509377308 remove unneeded limits.h and errno.h includes 2024-10-13 00:53:21 +00:00
deraadt
c0030deff4 Be more eager to install qcpas firmware (more pattern matches) 2024-10-13 00:00:41 +00:00
afresh1
fe7b35343c Make fw_update -a mean all
When downloading or installing, not just deleting.

Noticed by Paul de Weerd
Help with manual wording from jmc@
Just fix -a, deraadt@
2024-10-12 23:56:23 +00:00
jsg
8a978b4c9f remove unneeded rwlock.h include 2024-10-12 23:31:14 +00:00
jsg
e6796ada48 remove unneeded time.h include 2024-10-12 23:18:10 +00:00
jsg
2cc786cde5 remove unneeded percpu.h include 2024-10-12 23:10:07 +00:00
tb
33e95073cd Exercise the EC parameters code a bit more
Ensure all builtin curves can be roundtripped through DER as named curves,
via explicit parameterization, using uncompressed, compressed and hybrid
point formats.
2024-10-12 16:15:28 +00:00