summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-04shell scripts should use getopts instead of getoptChristian Weisgerber
Add a prominent deprecation notice to getopt.1. Add examples of the getopts idiom to sh.1 and ksh.1. Requested by and ok espie@, ok jmc@
2021-05-04As the unbouded feature in sysctl_int_bounded() is no longer used,Alexander Bluhm
remove it. This also fixes a defective check of the dynamic boundary in sysctl_sysvshm(). OK mvs@ gnezdo@
2021-05-04sigpending(2) will never fail. Optimize the syscall stub accordingly likeMark Kettenis
we do on other architectures. ok mpi@
2021-05-04Rename shutdown_all() to shutdown_peers() for consistency.Theo Buehler
2021-05-04syscalls.c, init_sysent.c, syscall.h, syscallargs.h: regencheloha
Regen after unlocking getitimer(2) and setitimer(2). ok anton@, mpi@
2021-05-04getitimer(2), setitimer(2): unlock syscallscheloha
With the changes in kern_time.c v1.150, neither getitimer(2) nor setitimer(2) need the kernel lock anymore. ok anton@, mpi@
2021-05-04The clock on RISC-V is architectural, so we really don't need theMark Kettenis
whole abstraction layer to support multiple timers. And we don't really need a separate driver. Replace timer(4) with code based on the powerpc64 implementation of the randomized statclock code. Fixes hangs seen on real hardware. ok jsg@, drahn@
2021-05-04Fix 2nd and 3rd arguments' cast in atomic_cas_ptr().Kenji Aoyama
This fixes compile errors (actually warnings) on m88k in sys/net/pf.c revision 1.1116 changes. Diff from Miod Vallat, tested on GENERIC and GENERIC.MP by me.
2021-05-04Create memory pressure in test. Allocate heap and stack in childAlexander Bluhm
processes and threads. Then exit has more work to do.
2021-05-04Add a boot hart ID check in the function that matches secondary CPUsMark Kettenis
as well. ok jsg@
2021-05-04gzread(3) doesn't always set errno, so use gzerror(3)dv
Compression errors from libz don't set errno. OK mlarkin@
2021-05-04Move unused task queue stuff to the attic.dv
Was added about 4 years ago, but hasn't been used and linked into the build. Discussed with dlg@ and mlarkin@. mlarkin@: "Let's remove for now..."
2021-05-04Init debug logging state before attempting to log.dv
Error messages related to bad configuration were not flushing to stderr. OK mlarkin@
2021-05-04okay, prevent pkg_* from looking into /usr/local BUT special-case quirksMarc Espie
2021-05-04Initialize `ipsec_policy_pool' within pfkey_init() instead of doing thatmvs
in runtime within pfkeyv2_send(). Also set it's interrupt protection level to IPL_SOFTNET. ok bluhm@ mpi@
2021-05-04Remove unused `spd_tables' declaration.mvs
ok bluhm@ mpi@
2021-05-04More comment changes to reflect reality. No functional change.Claudio Jeker
2021-05-04Update comment to match reality.Claudio Jeker
2021-05-04not yet, need to figure out how to fix quirks firstMarc Espie
2021-05-04and do the same thing to pkg_mklocatedbMarc Espie
2021-05-04prevent the base pkg tools from looking under /usr/localMarc Espie
2021-05-04Similar to rsync repo delay deletes for rrdp repos to after processingClaudio Jeker
all files. Now RRDP has a weak sync mechanism and therefor not all unreferenced files can be removed, instead look at the list of removes which were part of the delta processing and remove those files. Warn and keep the file if a delta specifies to remove a file which is actually still referenced. OK benno@
2021-05-04Check that fdt hart id matches boot hart id before associating an fdtJonathan Gray
node with the primary cpu. Prompted by the polarfire icicle where hart 0 is an mmuless e51 core. ok drahn@ mlarkin@
2021-05-04Remove cerror dependancy from riscv64 asm syscalls.Dale Rahn
Directly update cerror as offset of thread pointer, with optimizations on error brnaching ok kettenis@
2021-05-04riscv64 brk()/sbrk() implementations,Dale Rahn
based off a combination of aarch64/powerpc64 ok kettenis@
2021-05-03Use limits.h instead of sys/limits.h in dtlstest.c for portableKinichiro Inoguchi
discussed and input from jsing@
2021-05-03Modify regress ssl_get_shared_ciphers for portableKinichiro Inoguchi
- Split out the intermediate path (../certs/) to Makefile - Change 'shutdown' to 'shutdown_all' ok tb@
2021-05-03Sync changes from arm64 version.Mark Kettenis
ok patrick@
2021-05-03Hook openssl-ruby test to regress treeTheo Buehler
2021-05-03Add scaffold to run the ruby/openssl regression testsTheo Buehler
This test depends on the ruby/ruby-openssl-tests port that bundles the sources and tests of the Ruby OpenSSL gem below /usr/local. The Makefile compiles the openssl.so shared object below obj/ that provides Ruby bindings for the OpenSSL API. Once this is built, the regression tests are run. There are currently 4 failing tests, all related to the new verifier. At least one libssl bug is hidden behind a pend. All this will hopefully be fixed during this release cycle. This adds a decent amount of test coverage without being overly expensive. This way, regressions should be spotted during development so jeremy will no longer have to chase and work around them. Joint work with jeremy, positive feedback from bcook and jsing.
2021-05-03tweak one description to make it uniqueTheo Buehler
2021-05-03Prefix the hybrid_corner_case test with test_ for consistency.Theo Buehler
2021-05-03Exercise the point conversion bit for octet string representationsTheo Buehler
of points on secp256r1.
2021-05-03Add a test that exercises the point conversion bit of the octetTheo Buehler
string representations of points on the binary curve sect571k1.
2021-05-03Fix corner case for compressed points on binary curvesTheo Buehler
Per X9.62 4.4.1.b., the compressed representation of a point with zero x coordinate on a binary curve must have y_bit unset. Error out in that case of ec_GF2m_set_compressed_coordinates() instead of ignoring y_bit. ok jsing
2021-05-03When negotiating multiprotocol capabilities only fall ack to AID_INET whenClaudio Jeker
no capability was sent to the peer (this happens if the multiprotocol capability got disabled). It is possible that local and remote systems end up with no shared AFI/SAFI pair. In this case the connection will not send or should not receive any UPDATE messages. The previous behaviour of falling back to AID_INET in that case can result in problematic behaviour when sessions are missconfigured. OK benno@, deraadt@
2021-05-03Print the timestamps both formatted and as a time in seconds field inClaudio Jeker
the various JSON object that have time values. OK benno@
2021-05-03When parsing a variable value within double quotes, allow parenthesisMark Lumsden
to be accomodated for.
2021-05-03Like in the session engine do not inline the addr2sa call into connect andClaudio Jeker
bind. The len argument is modified by addr2sa but is also used as argument in the call and it is undefined if the value of len in connect is set to the value "returned" by addr2sa(). Should fix connect issues seen on Linux system. OK denis@
2021-05-03Make sdhc(4) attachment work on Zynq-7000.Visa Hankala
OK kettenis@
2021-05-03When parsing a variable value within double quotes, allow an escapedMark Lumsden
\" to be accomodated for. Also, move the variable structure to be global in scope within mg.
2021-05-03fix typo from previous commitStefan Sperling
2021-05-03Mention in CAVEATS that iwn(4) doesn't support 40MHz channels yet.Stefan Sperling
2021-05-03iwm(4) supports Tx aggregation now.Stefan Sperling
2021-05-03Use the EFI memory map (if available) to determine available physicalMark Kettenis
memory. This brings the code closer to arm64 but some key differences remain. The most notable difference is that the riscv64 currently uses its own private direct map of physical memory. Therefore it needs to know the RAM address range which we derive from the /memory node in the FDT. The code also needs to work around some bugs/flaws in the firmware: * Newer OpenSBI versions no longer add a "no-map" property to the reserved memory block that covers the memory used by OpenSBI itself. This makes it appear as EfiBootServicesData in the EFI memory map, which means it is available for general use. * The OpenSBI shipped with the beaglev prototype boards doesn't reserve the memory used by OpenBSI at all. The workaround for the first issue is to remove all reserved memory blocks specified in the FDT. In its current implementation this may remove too much memory on certain boards. The workaround for the second issue is to remove 2MB before the memory where the kernel lives. This workaround is fragile since it relies on a specific memory layout. Hopefully the beaglev firmware gets fixed and we can remove this hack. ok jsg@
2021-05-03remove old gcc/g++ binaries at update time; covers the most common caseStuart Henderson
where people will run into problems on amd64 now we don't build gcc. (the gcc-lib files are already removed by bsd.rd upgrades, and gcc/g++ don't work without them).
2021-05-03recognise a small number of riscv relocations in readelfJonathan Gray
ok kettenis@
2021-05-03Tweak the heuristic net80211 RA is using to decide whether enoughStefan Sperling
statistics have been gathered for a candidate Tx rate. The goal is to avoid Tx rate choices that might turn out to be too optimistic. In practice this only affects the case where we probe upwards. If the current Tx rate starts seeing loss we will still scale down very quickly. Based on a larger collection of patches by Christian Ehrhardt. I have made stylistic tweaks for consistency. Tested: iwn 6205: stsp, Josh Grosse iwm 7265: stsp iwm 8265: Matthias Schmidt iwm 9260: phessler
2021-05-03Add 802.11n Tx aggregation support to iwm(4).Stefan Sperling
Makes packets go swoosh swoosh swoosh. Welcome to actual 802.11n! Tested: 7260: dv, florian 7265: trondd, dv, landry, stsp 8260: bket 8265: Matthias Schmidt, stsp 9260: kettenis 9560: phessler, stsp
2021-05-03work around an athn(4) device problem with bogus Michael MIC failuresStefan Sperling
Clients using Tx aggregation against an athn(4) hostap will send block ack request control frames whenever they need to sync their Tx block ack window. athn(4) dropped such frames due to bogus Michael MIC failures reported by the hardware decryption engine. Ignore such failures for control frames in order to fix athn(4) hostap mode against clients which use Tx aggregation. Additionally, only report Michael MIC failures to the net80211 stack if the offending client is actually using TKIP, which would also have prevented the problem since we require CCMP as group cipher in our default configuration. Problem reported and fix tested by kettenis@