summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-12-06Move CALLSYS_NOERROR macro from <machine/asm.h> to libc, and expand it forMiod Vallat
non-libc users. This is a two-liner macro anyway, and this will make deraadt@'s future changes in this area easier to make. NFC
2023-12-05Add more devices which may attach ukbd (and thus wskbd) but should never beMiod Vallat
considered as console keyboards.
2023-12-05Cast uvmexp.swpages to long before multiplying by 99 to avoid integerClaudio Jeker
overflows on systems with big swap partitions. OK kettenis@ miod@
2023-12-05timeout_del() the timer while stopping an interface so that no timeoutKevin Lo
is fired afterwards. ok claudio@
2023-12-05reject headers that start with a space or tabOmar Polo
If the first header starts with a space but still contains a colon character, it is added to the body mail effectively appending it to the Received header due to the folding rules. Issue reported by Crystal Kolipe ok millert@, giovanni@
2023-12-05Remove "disable auto-negotiation" workaround for Marvell Alaska PHYsUwe Stuehler
This avoids an intermediate link state (10baseT) before the interface is configured via ifconfig(8), and is consistent with other MII drivers and OSes. The original reason for this workaround is mainly thought be related to either reducing the time required for auto-negotiation to complete or indeed incorrect advertisement of link capabilities. Tested on Intel Elkhart Lake with dwqe(4) and 88E1512 PHY. Originally from stsp@ with feedback from kettenis@. ok kettenis@ claudio@
2023-12-05boot_file was removed in arm64 machdep.c rev 1.55Jonathan Gray
2023-12-05last .Nm should not have a commaJonathan Gray
2023-12-04zap trailing whitespaceTheo Buehler
2023-12-04Remove unneeded symbols.Miod Vallat
2023-12-04Account for nkmempages as well in the pmap_growkernel() call duringClaudio Jeker
initalisation. This way there is enough KVA mapped that kmeminit() succeeds even with large nkmempages. This is similar to e.g. alpha. OK miod@ kettenis@
2023-12-04protect access to the gnu warning map with a mutex to avoid random crashesRobert Nagy
discussed with, tested by and ok tb@
2023-12-04Save backtraces to show in leak dump. Depth of backtrace set byOtto Moerbeek
malloc option D (aka 1), 2, 3 or 4. No performance impact if not used. ok asou@
2023-12-04drm/i915: do not clean GT table on error pathJonathan Gray
From Andrzej Hajda 84a6e475451dfe8db44bbf4fd0969906a9bfdc2f in linux-6.1.y/6.1.65 0561794b6b642b84b879bf97061c4b4fa692839e in mainline linux
2023-12-04Make the TEMPer{1,2} devices display minus degC. From the NetBSD driver.Marcus Glocker
ok deraadt@
2023-12-03Collect .openbsd.syscalls sections into a new PT_OPENBSD_SYSCALLS segment.Mark Kettenis
This will be used soon to pin system calls to designated call sites. ok deraadt@
2023-12-03Rename all in6p local variables to inp.Alexander Bluhm
There exists no struct in6pcb in OpenBSD, this was an old kame idea. Calling the local variable in6p does not make sense, it is actually a struct inpcb. Also in6p is not used consistently in inet6 code. Having the same convention for IPv4 and IPv6 is less confusing. OK sashan@ mvs@
2023-12-03Use INP_IPV6 flag instead of sotopf().Alexander Bluhm
During initialization in_pcballoc() sets INP_IPV6 once to avoid reaching through inp_socket->so_proto->pr_domain->dom_family. Use this flag consistently. OK sashan@ mvs@
2023-12-03move to using updatedb annotation exclusivelyMarc Espie
2023-12-03add the `no-dsn' option to `listen on socket' tooOmar Polo
ok millert@
2023-12-03set the socket family too to mirror the LISTEN case; no-op in practiceOmar Polo
since AF_UNSPEC is zero.
2023-12-03enable DSN (Delivery Status Notification) for the implicit socket tooOmar Polo
DSN is implicitly enabled when using `listen on sock' but it's not for the implicit socket, avoid this incoherence by enabling it on the implicit socket too. Report and diff by Tassilo Philipp (tphilipp at potion-studios dot com) ok millert@
2023-12-03Remove misuse warnings for EVP_*Final()Theo Buehler
They make no sense. These are thin wrappers of EVP_*Final_ex() and behave exactly the same way. The minor behavior difference of Init and Init_ex is likely a historical artefact of this abomination of an API. Deprecation of the Init functions was recently removed from the manpage. The only reason to prefer the _ex versions over the normal versions is ENGINE. This is no longer an argument. The warnings were added in an attempt at adding automatic cleanup. This broke stuff and was therefore backed out. The warnings remained. discussed with schwarze
2023-12-03Make rtm_senddesync_timer() timeout(9) handler mpsafe. solock() protectsVitaliy Makkoveev
the socket and the socket's PCB data. ok bluhm
2023-12-03Make ipsp_ids_gc() timeout(9) handler mpsafe. `ipsec_flows_mtx' mutex(9)Vitaliy Makkoveev
protects related data. ok bluhm
2023-12-03match Lunar Lake, Raptor Lake and Arrow LakeJonathan Gray
2023-12-03regenJonathan Gray
2023-12-03add Intel Ethernet ids: Lunar Lake, Raptor Lake and Arrow LakeJonathan Gray
2023-12-02Fix some NULL misspellingsTheo Buehler
2023-12-02Revert a hunk of r1.23 that makes no senseTheo Buehler
The commit was about checking EVP_CIPHER_CTX_iv_length(), but the function called here is EVP_CIPHER_CTX_key_length(). The result of the computation is still correct, the check and local variable simply make no sense.
2023-12-02virtio: Fix handling of feature bits >= 32Stefan Fritsch
Fix handling of feature bits >= 32. This does not yet affect any driver as no high feature bit besides VERSION_1 is used, and that one has special handling. Also, with VIRTIO_DEBUG, simply walk through all transport and device feature names, so that we don't need to adjust the if clause whenever the standard introduces new transport features. ok jan@ bluhm@
2023-12-01pipex(4) layer is completely mp-safe, move the pipex_timer() timeout(9)Vitaliy Makkoveev
handler out of kernel lock. ok bluhm
2023-12-01Add tests to exercise the recent bug fixes.Todd C. Miller
2023-12-01relay_read_http: strip out Content-Length if we strip the body tooTodd C. Miller
We should not forward Content-Length if the body is not also forwarded.
2023-12-01Make sure we read a complete struct fsinfo even if the filesystem sectorsMiod Vallat
are smaller. bug report and ok kn@
2023-12-01Set inp address, port and rtable together with inpcb hash.Alexander Bluhm
The inpcb hash table is protected by table->inpt_mtx. The hash is based on addresses, ports, and routing table. These fields were not sychronized with the hash. Put writes and hash update into the same critical section. Move the updates from ip_ctloutput(), ip6_ctloutput(), syn_cache_get(), tcp_connect(), udp_disconnect() to dedicated inpcb set functions. There they use the same table mutex as in_pcbrehash(). in_pcbbind(), in_pcbconnect(), and in6_pcbconnect() need more work and are not included yet. OK sashan@ mvs@
2023-12-01Cast mtx to void in dummy MUTEX_ASSERT_LOCKED().Alexander Bluhm
To avoid unsued variable in ramdisk kernel, use the argument of MUTEX_ASSERT_LOCKED() also in non DIAGNOSTIC builds. OK sashan@ mvs@
2023-12-01Make internet PCB connect more consistent.Alexander Bluhm
The public interface is in_pcbconnect(). It dispatches to in6_pcbconnect() if necessary. Call the former from tcp_connect() and udp_connect(). In in6_pcbconnect() initialization in6a = NULL is not necessary. in6_pcbselsrc() sets the pointer, but does not read the value. Pass a constant in6_addr pointer to in6_pcbselsrc() and in6_selectsrc(). It returns a reference to the address of some internal data structure. We want to be sure that in6_addr is not modified this way. IPv4 in_pcbselsrc() solves this by passing a copy of the address. OK kn@ sashan@ mvs@
2023-12-01Some cleanup:Ingo Schwarze
Remove some lies and some irrelevant historical information about the non_ex variants and waste fewer words deprecating them. Telling people to type longer function names and to pass an ignored NULL argument doesn't really help anything. Also talk less about those ignored ENGINE arguments. OK tb@
2023-12-01syncTheo Buehler
2023-12-01EVP_EncryptInit(3) is among the most important "how to drive" manuals,Ingo Schwarze
but it is still excessively long and complicated. To reduce the amount of distractions a bit, split out three deprecated functions into a new manual page EVP_CIPHER_CTX_init(3). No text change. In part suggested by tb@, who agrees with the direction.
2023-12-01Prevent race between pf_test() and pf_purge_expired_states().Alexandr Nedvedicky
Packets (callers to pf_test()) must alter pf_state::timeout under protection of pf_state::mtx. We also have to make sure the packet does not update pf_state::timeout when ::timeout reaches PFTM_UNLINKED. The first report came from Johan Huldtgren, but he is not the single user who has noticed "st->timeout == PFTM_UNLINKED" assert violation. OK bluhm@
2023-12-01allow tables and filter over multiple linesOmar Polo
This augments the grammar for tables and filter listing so that a newline is allowed after a comma. i.e. these now works as expected: table foo { "one", "two" } listen on socket filter { "foo", "bar" } based on a diff from tim@ ok millert@, tim@
2023-12-01Unify various EVP_*{Update,Final}*() wrappersTheo Buehler
The correct way of wrapping foo() is 'int ret; ret = foo(); return ret;' because 'return foo();' would be too simple... Also unify branching from EVP_Cipher* into EVP_Encrypt* EVP_Decrypt*.
2023-12-01regenJonathan Gray
2023-12-01add AMD Phoenix (Family 19h Model 74h) idsJonathan Gray
based on submissions to dmesg@
2023-11-30Overhaul device identification logic in order to make matching onMiod Vallat
device-provided information easier. Add support for a few more devices. Trigger state machine updates quickly so as not to have to wait 6 seconds to get the device identified, then 6 more seconds to get the first sensor data. Tested on: TEMPerX_V3.3 by landry@ TEMPerF1.4M by sthen@ TEMPerHUM_V4.0, TEMPer2_V4.1, TEMPer1F_V4.1 and TEMPerGold_V3.4 by yours truly
2023-11-30Clean up and de-spaghettize by_file_callbackBob Beck
I had to read this for other purposes and it exceeded my muppetry tolerance. ok tb@
2023-11-30Single file to stdout without "fattr"Klemens Nanni
Regardless of SMALL and other command flags, 'ftp -o - URL [file|URL ...]' only processes the first URL and exists. Only standard output is written to and modifying 'struct stat' properties as per pledge(2) "fattr" don't apply. OK millert
2023-11-30Fold identical pledge cases, '#ifndef SMALL \n if (!resume)' equals 'else'Klemens Nanni
OK millert