Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 2a99deb5 | 2022-01-13 10:34:07 | Move parsing of incoming syslog messages to their own section. This should make it more manageable. No functional change intended, debugging output slightly changed. help from and OK bluhm@ | ||
| a5505455 | 2022-01-13 08:59:10 | Implement powerdown. This involves writing a magic bit somewhere in the address space of the SPMI PMU to prevent the machine from immediately starting up again. The implementaton makes aplpmu(4) provide powerdownfn(), which sets the magic bit and then chains into cpuresetfn(). It also makes aplsmc(4) provide cpuresetfn() to reset the machine via the SMC. Resetting via the watchdog works as well (and will powerdown the machine if the magic bit is set) but letting the SMC handle things might do some other required steps. ok patrick@ | ||
| faa1737a | 2022-01-13 08:39:24 | Tedu support for the -xsh4.2 argument to the mdoc(7) .St macro because all of the following hold: * It is an alias for a part of an ancient standard that is no longer important. * To refer to that old standard, -xpg4.2 is readily available and portable. * It is unused in OpenBSD, FreeBSD, and NetBSD. * Groff never supported it. I agreed with G. Branden Robinson that deleting this from mandoc is preferable to adding it to groff. | ||
| 576410a5 | 2022-01-13 05:10:46 | Calling MB_CUR_MAX is much more expensive than incrementing a pointer and than testing and printing a byte, so do it once up front rather than inside the inner loop. This speeds up rev(1) by about a factor of three for typical use cases. Performance issue found by cheloha@, but my fix is a bit simpler and more rigorous than Scott's original patch. While here, also add the missing handling for write errors (making them fatal, whereas read errors remain non-fatal and proceed to the next input file) and also avoid testing each byte twice, making the code more straightforward and more readable. In part using ideas from millert@ and martijn@. OK martijn@. | ||
| b7cb00ef | 2022-01-13 04:53:16 | Set LC_ALL in both local and remote shells so that sorted output matches regardless of what the user's shell sets it to. ok djm@ | ||
| 57edf436 | 2022-01-13 04:22:10 | Avoid %'s in commands (not used in OpenBSD, but used in -portable's Valgrind test) being interpretted as printf format strings. | ||
| 14baa4a2 | 2022-01-13 04:06:10 | Only sort the result array if it contains more than one element, making the mansearch() function easier to read for human auditors. No functional change on OpenBSD. As observed by Mark Millard <marklmi at yahoo dot com>, neither the latest version of POSIX 2008 nor C11 defines what qsort(3) should do for base == NULL && nmemb == 0. My impression is it is indeed undefined behaviour because the standards say that base shall point to an array, NULL does not point to an array, and while there is special wording saying that compar() shall not be called if nmemb == 0, i fail to see any similar wording stating that base shall not be accessed if nmemb == 0. Consequently, this patch is also likely to improve standard conformance and portability. Minor issue found by Stefan Esser <se at FreeBSD> with UBSAN. He sent a patch to bugs@, but my patch differs in a minor way. | ||
| 1dfe19ad | 2022-01-12 22:55:51 | zap some stray whitespace | ||
| 5a0505c8 | 2022-01-12 22:52:40 | seperators -> separators | ||
| 3de97354 | 2022-01-12 22:51:44 | zap spaces before tabs | ||
| 51b27d62 | 2022-01-12 22:49:53 | gratuitious -> gratuitous | ||
| 5018f4d3 | 2022-01-12 21:41:06 | Lift the '#ifdef RCRT0' conditional out of boot*.h to crt0.c Prep for dropping #includes from archdep.h: pull in <machine/reloc.h> and declare _dl_exit() in boot*.h ok kettenis@ | ||
| 78a2c979 | 2022-01-12 20:17:08 | fixup previous refactoring OK stsp@ (without assuming any responsibility for NFS) | ||
| 5e6f4d12 | 2022-01-12 19:55:12 | Extend the verbose logging. | ||
| b9e5e686 | 2022-01-12 17:55:45 | sync | ||
| c050635a | 2022-01-12 17:54:51 | ASN1_{,F,T}BOOLEAN_it and the encoding and decoding API will move to internal only soon. Stop documenting them. ok inoguchi jsing | ||
| eaf3b488 | 2022-01-12 15:32:15 | Enable commandl1, commandl2, and commandD1. D1 already worked. l1 and l2 fixed after analysis by seL4 <at> disroot <dot> org | ||
| 4ad58405 | 2022-01-12 15:13:36 | Make lputs use psl instead of expecting it to be null-terminated. This allows us to enable the commandl1 and commandl2 regress tests. Original analysis from seL4 <at> disroot <dot> org OK millert@ | ||
| 240c1448 | 2022-01-12 15:05:38 | toggle hw.power based on the ACDI SMR key if available ok kettenis@ | ||
| 73cd97e4 | 2022-01-12 13:09:29 | set cpuspeed to 0 if hw.cpuspeed cannot be retrieved ok kettenis@ | ||
| 7171b1ef | 2022-01-12 13:08:06 | add three new SMC sensors to get information about the power supply status and remaining time to battery full and empty and feed these values to apm(4) ok kettenis@ | ||
| a761f9ad | 2022-01-12 11:42:17 | Fix array index. Spotted by robert@ | ||
| 4582e297 | 2022-01-12 11:18:30 | Make acpi_getpropint() return uint64_t, as ACPI integers are in fact that wide and some _DSD properties depend on it. ok kettenis@ | ||
| f1d51a76 | 2022-01-12 09:11:48 | Only evp_pkey_check needs static linking | ||
| b533d5b7 | 2022-01-12 09:04:40 | Add a prototype for OBJ_bsearch_ so this test will keep working after the bump. Since this tests the public interfaces, we do not want to use LIBRESSL_INTERNAL/LIBRESSL_CRYPTO_INTERNAL here. | ||
| 67c2f6e5 | 2022-01-12 09:02:34 | Rework ecdsatest to build after the bump and link statically for now | ||
| 386a8f7d | 2022-01-12 08:59:56 | Rework dsatest to use accessors and link statically for now | ||
| 84f302f7 | 2022-01-12 08:58:12 | Rework dhtest to use accessors and link statically for now For some reason CVS didn't want to commit this the first time around. | ||
| 75249a51 | 2022-01-12 08:56:49 | Rework dhtest to use accessors and link statically for now | ||
| 290ca929 | 2022-01-12 08:54:23 | Rework test to use EVP_AEAD_CTX_{new,free}() and link statically for now | ||
| 53d0bb89 | 2022-01-12 08:52:25 | Fix typo in header guard | ||
| e292ee02 | 2022-01-12 08:45:09 | Fix asn1x509 build with opaque structures. Link statically for now. | ||
| 7c94704c | 2022-01-12 08:29:27 | Remove ieee80211_find_node_for_beacon(). The original purpose of ieee80211_find_node_for_beacon() was to avoid storing duplicate nodes with the same source MAC address in a hash table. Later on, our node table data structure was changed from a hash table to an RB tree. The RB tree can only store a single node per MAC address. However, find_node_for_beacon() was kept regardless, now documented to serve a different purpose. Its new purpose is to tell apart different nodes which happen to use the same MAC address and hence cannot both be stored in the RB tree. The idea is to filter such duplicate nodes out during a scan. But colliding nodes are told apart by RSSI and channel, and either may change over time. So this does not really prevent duplicate MAC addresses from causing issues. The code which decides which node is "better" can erroneously match an AP against itself, in case the AP uses a hidden SSID. This caused workarounds for hidden SSID to pile up over time. Just a bit further down, the code looks up the same node again and performs all of the intended node state updates. Simply skipping the ieee80211_find_node_for_beacon() check makes such state updates work. ok tobhe@ | ||
| 9773c5c8 | 2022-01-12 07:55:25 | Rework Makefile to use regress framework and link asn1basic statically. It will need this for testing {d2i,i2d}_ASN1_BOOLEAN which will be moved to internal-only in the upcoming bump. | ||
| 7b05f821 | 2022-01-12 07:18:37 | Use egrep when searching for an anchored string. | ||
| d2672555 | 2022-01-12 04:53:57 | More accurately represent cells containing horizontal lines in -T tree output. In particular, do not represent "_" as "-", and distinguish "_" from "\_" and "=" from "\=". Output tweak following a related question from Ted Bullock <tbullock at comlore dot com>. | ||
| fa3f0bd5 | 2022-01-12 04:43:21 | According to the tbl(7) manual, if a data cell contains only the two character sequence "\_" or "\=", a single or double horizontal line is supposed to be drawn inside the cell, not joining its neighbours. I am not aware of any way to do that with HTML and/or CSS. Still, it seems closer to the intent of the document author to draw a horizontal line with <hr/>, even though that line will join the neighbour cells, rather than printing a literal '_' or '=' character. Formatting tweak inspired by a related question from Ted Bullock <tbullock at comlore dot com>. | ||
| 2e063971 | 2022-01-12 04:14:20 | In one of the examples, the tbl(7) source code displayed contains a backslash that needs to be escaped, and the missing escaping resulted in very misleading formatting. Documentation bug found due to a question from Ted Bullock <tbullock at comlore dot com>. | ||
| dbcbc0bb | 2022-01-12 03:30:32 | Don't log NULL hostname in restricted agent code, printf("%s", NULL) is not safe on all platforms. with & ok djm | ||
| 8fccd469 | 2022-01-12 02:21:15 | Bug fixes and performance improvements Plus improving usage to match the man page fine deraadt@ | ||
| ef6635ad | 2022-01-12 01:19:24 | maxumum -> maximum | ||
| 3efcb5c6 | 2022-01-12 00:58:48 | Remove -target riscv64-unknown-openbsd from CMACHFLAGS. ok kettenis@ deraadt@ | ||
| 2d7f2af4 | 2022-01-11 23:59:55 | spelling | ||
| e471ee1c | 2022-01-11 23:10:11 | spelling | ||
| 1dba9d57 | 2022-01-11 22:33:16 | remove hardcoded domain and use window.location.host, so this can be run anywhere | ||
| 548b81c5 | 2022-01-11 21:41:15 | Jasper Lake eMMC needs the same 0V quirk as Apollo Lake and Gemini Lake fixes accessing eMMC on Acer Swift 1 SF114-34 problem reported and fix tested by Sven Wolf | ||
| b845e54d | 2022-01-11 20:34:22 | Make sure 'out' is initialized to 0 before adding flags. ok dv@ mlarkin@ | ||
| d16d616a | 2022-01-11 19:27:35 | forgot to zap some dead assignments | ||
| b9f7ae49 | 2022-01-11 19:20:36 | Add regress for EVP_PKEY_{,public_,param_}check() | ||
| f060e1a2 | 2022-01-11 19:08:08 | Revise for peer_cert. | ||
| ad3e8fb5 | 2022-01-11 19:06:23 | Convert relayd for opaque RSA_METHOD This is a mostly mechanical diff which will hopefully be superseded soon by work in libtls. ok jsing | ||
| 15b5e1ec | 2022-01-11 19:03:15 | Remove peer_pkeys from SSL_SESSION. peer_pkeys comes from some world where peers can send multiple certificates - in fact, one of each known type. Since we do not live in such a world, get rid of peer_pkeys and simply use peer_cert instead (in both TLSv1.2 and TLSv1.3, both clients and servers can only send a single leaf (aka end-entity) certificate). ok inoguchi@ tb@ | ||
| b3f16bd2 | 2022-01-11 18:43:00 | Simplify SSL_get_peer_certificate() ok inoguchi@ tb@ | ||
| 666c9986 | 2022-01-11 18:39:28 | Rename 'peer' to 'peer_cert' in SSL_SESSION. The 'peer' member of SSL_SESSION is the leaf/end-entity certificate provided by our peer. Rename it since 'peer' on its own is unhelpful. ok inoguchi@ tb@ | ||
| 816aef0b | 2022-01-11 18:29:10 | Revise for changes to tls_key_share_peer_public() | ||
| 7dd422f8 | 2022-01-11 18:28:41 | Plumb decode errors through key share parsing code. Distinguish between decode errors and other errors, so that we can send a SSL_AD_DECODE_ERROR alert when appropriate. Fixes a tlsfuzzer failure, due to it expecting a decode error alert and not receiving one. Prompted by anton@ ok tb@ | ||
| 9ac58602 | 2022-01-11 18:24:03 | Use SSL_AD_INTERNAL_ERROR for non-decoding alerts when parsing keyshares. ok tb@ | ||
| cf04557d | 2022-01-11 18:22:16 | Simplify tlsext_keyshare_server_parse() SSL_AD_DECODE_ERROR is the default alert for a TLS extension parsing failure - remove the various gotos and simply return 0 instead. ok tb@ | ||
| b1dcd106 | 2022-01-11 16:54:58 | Bump KVA space up to 512MB (and a bit). ok phessler@, deraadt@, miod@ | ||
| 438dcc41 | 2022-01-11 16:06:48 | Wrap long lines | ||
| 51f7a940 | 2022-01-11 15:45:00 | Check function return value | ||
| 8dbdb22e | 2022-01-11 15:05:58 | Suppress warning | ||
| 70dc8359 | 2022-01-11 15:02:34 | Compare pointer variable with NULL | ||
| dc4e41fa | 2022-01-11 14:35:14 | Remove space between '*' and pointer variable. | ||
| 5db72a14 | 2022-01-11 14:23:05 | Convert openssl(1) smime option handling Apply new option handling to openssl(1) smime and no functional changes. input and ok jsing@ | ||
| 100ded9e | 2022-01-11 13:06:07 | Change the way the parser accesses files. It now builds the file path based on information from the repository, a local path and the filename. This simplifies some code both in the main process and the parser. For this to work repositories are passed to the parser before any other entity of this repository is passed. Struct entity is extended to include the repoid and the path along the file(name). Input and OK tb@ & job@ | ||
| 23724049 | 2022-01-11 12:14:07 | Garbage collect historical setting of dsa->write_params = 1. This is always 1 with modern libs and write_params will soon go away. | ||
| c44af5cb | 2022-01-11 11:51:14 | add Synopsys Degisnware UART (dw-apb-uart) support To fix Allwinner H6's UART problem, need to add dw-apb-uart special code. ok kettenis@ | ||
| a76e37e6 | 2022-01-11 10:34:13 | Remove KASSERT(0) and default switch case. No other sc_ncm_format switch has a default case and umb_ncm_setup_format() ensures that only 16 and 32bit formats are accepted. Fixes build error without DIAGNOSTIC set. Found by and OK robert@ | ||
| 33d99505 | 2022-01-11 10:23:17 | fix RSB_DMCR_DEVICE_MODE_DATA value to enter RSB mode correctly ok kettenis@ patrick@ | ||
| d771b0cb | 2022-01-11 09:21:34 | spelling | ||
| 6c51f7d8 | 2022-01-11 09:00:17 | move allocations in DIOCSADDRULE and DIOCHANGERULE outside of locks. this diff lets pf_rule_copyin() to be called outside of PF_LOCK()/NET_LOCK(). OK bluhm@ | ||
| 6e6e940f | 2022-01-11 08:10:03 | regen | ||
| af35a2fc | 2022-01-11 08:09:14 | Unlock getpeername(2). For inet and unix sockets it follows the code which was unlocked with accept(2) unlocking. For key management and route domain sockets it just copies the read-only data. ok bluhm@ | ||
| 87ba1692 | 2022-01-11 08:03:25 | Produce alive in-flight sockets with positive "f_count == unp_msgcount" equation. Such sockets should not be killed by unp_gc() otherwise system will panic. tested by anton@; ok bluhm@ | ||
| 62aa2271 | 2022-01-11 07:31:50 | move kern_unveil.c to use DPRINTF() Changes the way printf debug is done in kern_unveil.c Currently, each printf() is enclosed in #ifdef DEBUG_UNVEIL. It moves to using DPRINTF(), and reduces the number of #ifdef inside the file. Also changes some strings to use __func__ instead of using the function name verbatim. ok visa@ | ||
| f76f04e2 | 2022-01-11 06:35:03 | Remove dead store to f and avoid use of unvalidated fd. Found by LLVM scan-build. OK millert@ deraadt@ | ||
| 1de6044a | 2022-01-11 06:23:05 | Add temporary verbose logging when remote coverage fails to attach. In the hopes of tracking down a rare bug seen on syzkaller. | ||
| dd54ee78 | 2022-01-11 06:01:15 | no need to inspect the coverage for the dying test case | ||
| c1a72b65 | 2022-01-11 06:00:41 | In revision 1.43 of kcov.c, the redundant conditional of checking for an exising kcov descriptor with the given device minor was removed since kcov is a cloning device; i.e. the device minor should always be unique. However, there's one edge case to still consider in which one thread have tracing enabled while another thread closes the same kcov descriptor. The kcov descriptor is kept alive until thread with tracing enabled exits to prevent usage after free. This does however cause the spec file layer above to flag the device minor as unused. Any subsequent open of /dev/kcov would trip on the assertion in kcovopen() until the thread with tracing enabled exits. Therefore unconditionally remove the kcov descriptor from the global list of active descriptors which is fine since the same kcov descriptor will later be freed in kcov_exit(). I have never seen this in the wild but realized while hunting another bug. | ||
| 8e544e80 | 2022-01-11 05:34:32 | spelling | ||
| 1d1249f3 | 2022-01-11 03:25:52 | Tidy up some comments requested by deraadt@ | ||
| 0d297f47 | 2022-01-11 03:13:58 | spelling ok jmc@ | ||
| e8fcb13b | 2022-01-11 02:56:19 | "void" functions should not return anything. From Tim Rice via -portable. | ||
| f3a04d5e | 2022-01-11 01:26:47 | suppress "Connection to xxx closed" messages at LogLevel >= error bz3378; ok dtucker@ | ||
| e555e64e | 2022-01-11 00:58:32 | If the install media contains non-free /*firmware*.tgz files, use fw_update to install them. This lets users usb-lift firmware on a preloaded install70.img image like this: # vnconfig install70.img vnd0 # (mount /dev/vnd0a /mnt && cd /mnt && fw_update -F iwm iwx iwn intel) # umount /mnt && vnconfig -u vnd0 The firmwares are installed after the sets, then all network drivers are re-configured in the hope that new firmwares have showed up. The install script continues to attempt a network firmware install, which might pull/update additional firmwares. work done with afresh1 | ||
| 5ee650a7 | 2022-01-11 00:48:45 | Split 2nd half of enable_network() into a sub-function enable_ifs(). This is the piece which loops over hostname.* files and runs ifconfig like the inner loop of base /etc/netstart | ||
| d6969a1f | 2022-01-11 00:37:23 | match on Intel Jasper Lake cavs/hda is pci class multimedia subclass audio so not automatically matched by azalia but confirmed to work after matched tested by Sven Wolf on Acer Swift 1 SF114-34 with Pentium Silver N6000 | ||
| caa2e0aa | 2022-01-10 23:41:12 | regen | ||
| 4707620c | 2022-01-10 23:40:37 | add Intel Jasper Lake devices from Intel Pentium Silver and Intel Celeron Processors Datasheet 633935 | ||
| 7225d6bc | 2022-01-10 23:39:48 | Convert tls_bio_cb for opaque BIO joint with jsing | ||
| ade65a49 | 2022-01-10 23:03:07 | Mechanical conversion of libcsi for opaque DH. ok jsing | ||
| dd21ecf8 | 2022-01-10 22:44:22 | Document EVP_AEAD_CTX_{new,free}() and adjust example code. looks good to jsing | ||
| f42240f4 | 2022-01-10 21:16:44 | fix SEE ALSO; | ||
| d00f618a | 2022-01-10 19:22:26 | Unbreak tree. Sorry about that. | ||
| 91654044 | 2022-01-10 18:23:39 | Return ENOMEM on malloc errors to prevent use of uninitialized stack memory. Cleanup error handling while here. ok stsp@ visa@ | ||
| 6c5a416a | 2022-01-10 17:59:45 | When rendering the \h (horizontal motion) low-level roff(7) escape sequence in -T ps and -T pdf output mode, use an appropriate horizontal distance by correctly using the term_len() utility function. Output from the -T ascii, -T utf8, and -T html modes was already correct and remains unchanged. Lennart Jablonka <hummsmith42 at gmail dot com> found and reported this unit conversion bug (misinterpreting AFM units as if they were en units) when rendering scdoc-generated manuals (which is a low quality generator, but that's no excuse for mandoc misformatting \h) on Alpine Linux. Lennart also tested this patch. | ||
| 58777e10 | 2022-01-10 16:45:09 | sync | ||
| 45294497 | 2022-01-10 16:21:19 | Initialize variables that are touched in the error path. Reminded by LLVM scan-build. | ||
| dedbc3b4 | 2022-01-10 15:14:27 | NULL out pointers after transferring them to the DSA object. |