aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* iflib: add support for netmap offsetsVincenzo Maffione2021-04-051-4/+8
| | | | | | Follow-up change to a6d768d845c173823785c71bb18b40074e7a8998. This change adds iflib support for netmap offsets, enabling applications to use offsets on any driver backed by iflib.
* nfsd: make the server repeat CB_RECALL every couple of secondsRick Macklem2021-04-052-6/+16
| | | | | | | | | | | | | | | | | | | | | | | Commit 01ae8969a9ee stopped the NFSv4.1/4.2 server from implicitly binding the back channel to a new TCP connection so that it conforms to RFC5661, for NFSv4.1/4.2. An effect of this for the Linux NFS client is that it will do a BindConnectionToSession when it sees NFSV4SEQ_CBPATHDOWN set in a sequence reply. This will fix the back channel, but the first attempt at a callback like CB_RECALL will already have failed. Without this patch, a CB_RECALL will not be retried and that can result in a 5 minute delay until the delegation times out. This patch modifies the code so that it will retry the CB_RECALL every couple of seconds, often avoiding the 5 minute delay. This is not critical for correct behaviour, but avoids the 5 minute delay for the case where the Linux client re-binds the back channel via BindConnectionToSession. MFC after: 2 weeks
* readelf: return error in case of invalid fileEd Maste2021-04-051-14/+22
| | | | | | | | | | | | | | | | | GNU readelf exits with an error for a number of invalid file cases. Previously ELF Tool Chain readelf always exited with 0. Now we exit 1 upon detecting an error with one or more input files, but in any case all of them are processed. This should catch common failure cases. We still do not report an error for some types of malformed ELF files, but this is consistent with GNU readelf. PR: 252727 Reviewed by: jkoshy, markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29377
* nfsd: fix BindConnectionToSession so that it clears "cb path down"Rick Macklem2021-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Commit 01ae8969a9ee stopped the NFSv4.1/4.2 server from implicitly binding the back channel to a new TCP connection so that it conforms to RFC5661, for NFSv4.1/4.2. An effect of this for the Linux NFS client is that it will do a BindConnectionToSession when it sees NFSV4SEQ_CBPATHDOWN set in a sequence reply. It will do this for every RPC reply until it no longer sees the flag. Without that patch, this will happen until the client does an Open, which will clear LCL_CBDOWN. This patch clears LCL_CBDOWN right away, so that NFSV4SEQ_CBPATHDOWN will no longer be sent to the client in Sequence replies and the Linux client will not repeat the BindConnectionToSession RPCs. This is not critical for correct behaviour, but reduces RPC overheads for cases where the Open will not be done for a while. MFC after: 2 weeks
* amd64 fabs.S: use '.section .rodata' instead of '.rodata'Konstantin Belousov2021-04-041-1/+1
| | | | | | | | Seems to be an issue with older gnu as Reported by: rscheff Sponsored by: The FreeBSD Foundation MFC after: 6 days
* jail: fix jail(8) synposis and usage message to match reality.Jamie Gritton2021-04-042-3/+3
| | | | | | Reported by: yuri PR: 254741 MFC after: 5 days
* Add sysctl debug.uma_reclaimKonstantin Belousov2021-04-041-0/+20
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* StyleKonstantin Belousov2021-04-041-3/+4
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* stress2: Added a new regression testPeter Holm2021-04-041-0/+83
|
* stress2: update the list of test not to runPeter Holm2021-04-041-11/+3
|
* stress2: Add note about problems found.Peter Holm2021-04-042-3/+9
|
* loader: we should support pools without featuresToomas Soome2021-04-031-2/+10
| | | | | | | nvlist_check_features_for_read() does return error when there are no features for read. MFC after: 5 days
* amd64 fabs.S: put signbit into rodata instead of textKonstantin Belousov2021-04-041-0/+1
| | | | | | Noted by: jrtc27 MFC after: 1 week Sponsored by: The FreeBSD Foundation
* libc/<arch>/sys/cerror.S: fix typoKonstantin Belousov2021-04-034-4/+4
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* amd64 fabs(3): move signbit to .textKonstantin Belousov2021-04-031-1/+1
| | | | | | | There is no reason for signbit quad to be writeable. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Remove kgmon(8)Konstantin Belousov2021-04-0311-714/+7
| | | | | | | | | Follow-up to the removal of the mcov from kernel. Noted by: mckusick Reviewed by: mckusick Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D29563
* ffsinfo: Update example to avoid to-be-deprecated vinumEd Maste2021-04-031-2/+2
| | | | | | | Reviewed by: mckusick MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29478
* libc: use standard LF line endings, not CRLFEd Maste2021-04-033-805/+805
|
* lock_delay(9): improve interaction with restrict_starvationEdward Tomasz Napierala2021-04-031-5/+5
| | | | | | | | | | | | After e7a5b3bd058, the la->delay value was adjusted after being set by the starvation_limit code block, which is wrong. Reported By: avg Reviewed By: avg Fixes: e7a5b3bd058 Sponsored By: NetApp, Inc. Sponsored By: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D29513
* pam: add option to not prompt for password if it's set to emptyEdward Tomasz Napierala2021-04-033-1/+22
| | | | | | | | | | | Add a new option to pam_unix(8), "emptyok", which makes it not prompt for password, if it's set to an empty one. It is similar to "nullok", which makes it not prompt for password if the hash itself is empty. Reviewed By: markj Sponsored By: NetApp, Inc. Sponsored By: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D27569
* Fix typo in xhci nvlist node name, and also increment device counter.Peter Grehan2021-04-031-1/+2
| | | | | | | | | This allows the xhci tablet device to be recognized and a PCI device instantiated. Reviewed by: jhb Fixes: 621b5090487d Refactor configuration management in bhyve. MFC after: 3 months.
* fbt: Remove some handling for multiple CTF containersMark Johnston2021-04-021-35/+9
| | | | | | | | | | | | | This was ported from illumos but not completely done. Currently we do not perform type deduplication between KLDs and the kernel, i.e., kernel modules have a complete type graph. So, remove it for now since it's not functional and complicates the task of modifying various CTF type definitions, and we are hitting some limits in the current format which necessitate an update. No functional change intended. MFC after: 2 weeks
* dtrace: Document the libdir, nolibs and syslibdir optionsDomagoj Stolfa2021-04-021-1/+9
| | | | | MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29541
* sendfile: Fix error initialization in sendfile_getobj()Mark Johnston2021-04-021-1/+1
| | | | | | | | Reviewed by: chs, kib Reported by: jhb Fixes: faa998f6ff695 MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D29540
* Ensure that all allocated data structures in fsck_ffs are freed.Kirk McKusick2021-04-024-19/+40
| | | | | | | | | | | | | | | | | | | | Several large data structures are allocated by fsck_ffs to track resource usage. Most but not all were deallocated at the end of checking each filesystem. This commit consolidates the freeing of all data structures in one place and adds one that had previously been missing. It is important to clean up these data structures as they can be large. If the previous allocations have not been freed, fsck_ffs can run out of address space when many large filesystems are being checked. An alternative would be to fork a new instance of fsck_ffs for each filesystem to be checked, but we choose to free the small set of large structures to save the fork overhead. Reported by: Chuck Silvers Tested by: Chuck Silvers MFC after: 7 days Sponsored by: Netflix
* fix typo in 38ea2bd0698eRichard Scheffenegger2021-04-021-1/+0
|
* Use sbuf_drain unconditionallyRichard Scheffenegger2021-04-021-8/+1
| | | | | | | | | | After making sbuf_drain safe for external use, there is no need to protect the call. MFC after: 2 weeks Reviewed By: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D29545
* Make sbuf_drain safe for external useRichard Scheffenegger2021-04-021-2/+6
| | | | | | | | | | | | | | While sbuf_drain was an internal function, two KASSERTS checked the sanity of it being called. However, an external caller may be ignorant if there is any data to drain, or if an error has already accumulated. Be nice and return immediately with the accumulated error. MFC after: 2 weeks Reviewed By: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D29544
* netmap: update unit tests with libnetmap testsVincenzo Maffione2021-04-022-13/+309
|
* libnetmap: reset errno in nmreq_register_decode()Vincenzo Maffione2021-04-021-0/+2
| | | | | | | The reset is necessary at the beginning of the function, because of the errno logic in the error path (set errno to EINVAL if not set). If errno is already set when calling the function, and the function fails, the previous errno value will be inherited.
* config(8): remove support for -pKonstantin Belousov2021-04-027-47/+1
| | | | | | | | | and other equivalent ways to request mcount-based profiling, like 'profile N' in kernel config. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D29529
* x86: remove gcov kernel supportKonstantin Belousov2021-04-0242-1914/+79
| | | | | | Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D29529
* nullfs: protect against user creating inconsistent stateKonstantin Belousov2021-04-021-4/+15
| | | | | | | | | | | | | | | | | | | | | | | The VFS conventions is that VOP_LOOKUP() methods do not need to handle ISDOTDOT lookups for VV_ROOT vnodes (since they cannot, after all). Nullfs bypasses VOP_LOOKUP() to lower filesystem, and there, due to user actions, it is possible to get into situation where - upper vnode does not have VV_ROOT set - lower vnode is root - ISDOTDOT is requested User just needs to nullfs-mount non-root of some filesystem, and then move some directory under mount, out of mount, using lower filesystem. In this case, nullfs cannot do much, but we still should and can ensure internal kernel structures are consistent. Avoid ISDOTDOT lookup forwarding when VV_ROOT is set on lower dvp, return somewhat arbitrary ENOENT. PR: 253593 Reported by: Gregor Koscak <elogin41@gmail.com> Test by: Patrick Sullivan <sulli00777@gmail.com> Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
* netmap: restore commit a56e6334d1b7ed6e6faaa8b4612d948005ba74f5Vincenzo Maffione2021-04-021-1/+2
| | | | | The fix in a56e6334d1b7ed6e6faaa8b4612d948005ba74f5 was accidentally reverted by commit 45c67e8f6b56b9744f01142747fadf291fe3fad2.
* LinuxKPI: treat firmware file names more lenientBjoern A. Zeeb2021-04-021-2/+8
| | | | | | | | | | | | | A lot of firmware files have a "-" in the name. That "-" is a problem when dealing with shell variables or loader (e.g., auto-loading .ko). It may thus often be convenient to generate firmware kernel object files with s/-/_/g in the name. In order to automatically find them from drivers using LinuxKPI also substitue the '-' for a '_' like we do for '/' and '.' already. Reviewed-by: hselasky, manu (ok) MFC-after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29514
* mlx5: remove dependency on ifnet specifics of linux/netdevice.hBjoern A. Zeeb2021-04-023-15/+16
| | | | | | | | | | | | Rename the last remaining bits depending on ifnet from linux/netdevice.h instead of using the compat macros. This helps clearing up struct netdevice being struct ifnet from linux/netdevice.h. Sponsored-by: The FreeBSD Foundation MFC-after: 2 weeks Reviewed-by: hselasky, kib X-D-R: D29366 Differential Revision: https://reviews.freebsd.org/D29497
* Partially revert r248770.Dmitry Chagin2021-04-021-1/+1
| | | | | | | | | | Under geom(4) nvme_ns_bio_process() is on the path where sleep is prohibited as g_io_shedule_down() calls THREAD_NO_SLEEPNG() before geom->start(). Reviewed By: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29539
* netmap: several typo fixesVincenzo Maffione2021-04-0218-55/+65
| | | | No functional changes intended.
* netmap: fix typo bug in netmap_compute_buf_lenVincenzo Maffione2021-04-022-2/+2
|
* cache: add high level overviewMateusz Guzik2021-04-021-0/+125
| | | | Differential Revision: https://reviews.freebsd.org/D28675
* cache: fix resizing in face of lockless lookupMateusz Guzik2021-04-021-5/+106
| | | | | Reported by: pho Tested by: pho
* vfs: add vfs_smr_quiesceMateusz Guzik2021-04-021-0/+1
| | | | | This can be used to observe all CPUs not executing while within vfs_smr_enter.
* stats(3): Improve t-digest merging of samples which result in mu adjustment ↵Lawrence Stewart2021-04-021-2/+36
| | | | | | | | | | | | | | underflow. Allow the calculation of the mu adjustment factor to underflow instead of rejecting the VOI sample from the digest and logging an error. This trades off some (currently unquantified) additional centroid error in exchange for better fidelity of the distribution's density, which is the right trade off at the moment until follow up work to better handle and track accumulated error can be undertaken. Obtained from: Netflix MFC after: immediately
* Remove bt.4 man page.Cy Schubert2021-04-023-175/+3
| | | | | | | | r339568 (a1db7455b75d7557fd171a537e2d95aceb20846e) removed bt(4). This revision removes the man page Reviewed by: emaste (previous version) Differential Revision: https://reviews.freebsd.org/D29480
* ACPICA: Fix build with options ACPI_DEBUGJung-uk Kim2021-04-021-0/+2
|
* Merge ACPICA 20210331.Jung-uk Kim2021-04-0170-480/+2757
| | | | (cherry picked from commit 1e02e5b0ba8634758c128dcb43c67342c7219cd4)
* cryptocheck: Expand the set of sizes tested by -z.John Baldwin2021-04-011-3/+9
| | | | | | | | | | Test individual sizes up to the max encryption block length as well as a few sizes that include 1 full block and a partial block before doubling the size. Reviewed by: cem, markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29518
* ossl: Don't encryt/decrypt too much data for chacha20.John Baldwin2021-04-011-3/+6
| | | | | | | | | | | | | | | | | | | The loops for Chacha20 and Chacha20+Poly1305 which encrypted/decrypted full blocks of data used the minimum of the input and output segment lengths to determine the size of the next chunk ('todo') to pass to Chacha20_ctr32(). However, the input and output segments could extend past the end of the ciphertext region into the tag (e.g. if a "plain" single mbuf contained an entire TLS record). If the length of the tag plus the length of the last partial block together were at least as large as a full Chacha20 block (64 bytes), then an extra block was encrypted/decrypted overlapping with the tag. Fix this by also capping the amount of data to encrypt/decrypt by the amount of remaining data in the ciphertext region ('resid'). Reported by: gallatin Reviewed by: cem, gallatin, markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29517
* nfsv4 client: factor loop contents out into a separate functionRick Macklem2021-04-011-25/+38
| | | | | | | | | | | | Commit fdc9b2d50fe9 replaced a couple of while loops with LIST_FOREACH() loops. This patch factors the body of that loop out into a separate function called nfscl_checkown(). This prepares the code for future changes to use a hash table of lists for open searches via file handle. This patch should not result in a semantics change. MFC after: 2 weeks
* nfsd: silence rpcb_unset noise for NFSv4 only serversRick Macklem2021-04-011-7/+13
| | | | | | | | | | | | | | | | | | An NFSv4 only configuration does not register with rpcbind(). Without this patch a failure to rpcb_unset() is reported when the daemon is terminated for this case. This is harmless noise, but this patch avoids calling rpcb_unset() for the NFSv4 only case, avoiding the noise. When called with "-d", it still does the rpcb_unset(), assuming that the configuration might have been changed to NFSv4 only and unregistering with rpcbind() might still be needed. Reviewed by: freqlabs MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29449