aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* getdirentries.2: remove unnecessary spacePiotr Pawel Stefaniak2021-04-111-1/+1
|
* Balance parentheses in sysctl descriptionsPiotr Pawel Stefaniak2021-04-113-8/+8
|
* rtld_lock.h: add some comments about versioning of struct RtldLockInfoKonstantin Belousov2021-04-111-0/+13
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 6 days
* sh: fix debug buildPiotr Pawel Stefaniak2021-04-113-8/+5
| | | | Approved by: jilles
* vnode_pager_setsize.9: Some clarifications on the manpageKa Ho Ng2021-04-111-18/+23
| | | | | | | | | | | | | | A number of changes: - Clarifies the locking rules when calling the routine. - Correct the description regarding the content range to be purged. - Document the effects on page fault handler. MFC after: 3 days MFC with: 86a52e262a6f Sponsored by: The FreeBSD Foundation Reviewed by: bcr, kib Approved by: philip (mentor) Differential Revision: https://reviews.freebsd.org/D29637
* zfs: avoid memory allocation in arc_prune_asyncMateusz Guzik2021-04-111-6/+10
|
* zfs: make vnlru_free_vfsops use conditional on versionMateusz Guzik2021-04-111-0/+10
| | | | Diff reduction against upstream.
* nfsd: fix replies from session cache for multiple retriesRick Macklem2021-04-101-4/+30
| | | | | | | | | | | | | | | | | | | | | | Recent testing of network partitioning a FreeBSD NFSv4.1 server from a Linux NFSv4.1 client identified problems with both the FreeBSD server and Linux client. Commit 05a39c2c1c18 fixed replying with the cached reply in in the session slot if same session slot sequence#. However, the code uses the reply and, as such, will fail for a subsequent retry of the RPC. A subsequent retry would be an extremely rare event, but this patch fixes this, so long as m_copym(..M_NOWAIT) does not fail, which should also be a rare event. This fix affects the exceedingly rare case where a NFSv4 client retries a non-idempotent RPC, such as a lock operation, multiple times. Note that retries only occur after the client has needed to create a new TCP connection, with a new TCP connection for each retry. MFC after: 2 weeks
* zfs: change format string in zio_fini to get rid of the castMateusz Guzik2021-04-101-2/+2
|
* Fix direct route installation with net/bird.Alexander V. Chernikov2021-04-101-5/+6
| | | | | | | | Slighly relax the gateway validation rules imposed by the 2fe5a79425c7, by requiring only first 8 bytes (everyhing before sdl_data to be present in the AF_LINK gateway. Reported by: olivier
* rtld: make dlerror() thread-localKonstantin Belousov2021-04-105-19/+84
| | | | | | | | PR: 95339 Discussed with: arichardson Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29633
* rtld: workaround for broken ABIKonstantin Belousov2021-04-104-2/+30
| | | | | | | | | | | | | | | | Right now, libthr does not initialize RtldLockInfo.rtli_version when calling _rtld_thread_init(), which makes versioning the interface troublesome. Add a workaround: if the calling object of _rtld_thread_init() exports the "_pli_rtli_version" symbol, then consider rtli_version initialized. Otherwise, forcibly set it to RTLI_VERSION_ONE, currently defined as RTLI_VERSION. Export "_pli_rtli_version" from libthr and properly initialize rtli_version. Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29633
* rtld: unstaticise lockinfo and obj_from_addr()Konstantin Belousov2021-04-104-3/+5
| | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29633
* Only use -fp-exception-behavior=maytrap on x86, for nowDimitry Andric2021-04-101-1/+2
| | | | | | | | | | | | | | | After 3b00222f156d, it turns out that clang only supports strict floating point semantics for SystemZ and x86 at the moment, while for other architectures it is still experimental. Therefore, only use -fp-exception-behavior=maytrap on x86 for now, otherwise this option results in "error: overriding currently unsupported use of floating point exceptions on this target [-Werror,-Wunsupported-floating-point-opt]" on other architectures. Fixes: 3b00222f156d PR: 254911 MFC after: 1 week
* Appease -Wsign-compare in radix.cAlexander V. Chernikov2021-04-101-1/+1
| | | | | | Differential Revision: https://reviews.freebsd.org/D29661 Submitted by: zec MFC after 2 weeks
* Allow to specify debugnet fib in sysctl/tunable.Alexander V. Chernikov2021-04-101-1/+5
| | | | | | Differential Revision: https://reviews.freebsd.org/D29593 Reviewed by: donner MFC after: 2 weeks
* Always use inp fib in the inp_lookup_mcast_ifp().Alexander V. Chernikov2021-04-101-5/+3
| | | | | | | | | | | | | | inp_lookup_mcast_ifp() is static and is only used in the inp_join_group(). The latter function is also static, and is only used in the inp_setmoptions(), which relies on inp being non-NULL. As a result, in the current code, inp_lookup_mcast_ifp() is always called with non-NULL inp. Eliminate unused RT_DEFAULT_FIB condition and always use inp fib instead. Differential Revision: https://reviews.freebsd.org/D29594 Reviewed by: kp MFC after: 2 weeks
* libnv: Use PICFLAG rather than -fPICKristof Provost2021-04-101-1/+1
| | | | | | Suggested by: andrew MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate")
* Avoid raising unexpected floating point exceptions in libmDimitry Andric2021-04-101-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | When using clang with x86_64 CPUs that support AVX, some floating point transformations may raise exceptions that would not have been raised by the original code. To avoid this, use the -fp-exception-behavior=maytrap flag, introduced in clang 10.0.0. In particular, this fixes a number of test failures with ctanhf(3) and ctanf(3), when libm is compiled with -mavx. An unexpected FE_INVALID exception is then raised, because clang emits vdivps instructions to perform certain divides. (The vdivps instruction operates on multiple single-precision float operands simultaneously, but the exceptions may be influenced by unused parts of the XMM registers. In this particular case, it was calculating 0 / 0, which results in FE_INVALID.) If -fp-exception-behavior=maytrap is specified however, clang uses vdivss instructions instead, which work on one operand, and should not raise unexpected exceptions. Reported by: olivier Reviewed by: arichardson PR: 254911 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29686
* Adjust .arcconfig to land onto 'main' by defaultDimitry Andric2021-04-101-1/+3
| | | | | | Otherwise, commands like "arc land" will default to 'master' instead. MFC after: immediately
* libpfctl: Fix u_* countersKristof Provost2021-04-103-13/+9
| | | | | | | | | | | | | | struct pf_rule had a few counter_u64_t counters. Those couldn't be usefully comminicated with userspace, so the fields were doubled up in uint64_t u_* versions. Now that we use struct pfctl_rule (i.e. a fully userspace version) we can safely change the structure and remove this wart. Reviewed by: glebius MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29645
* libpfctl: Switch to pfctl_ruleKristof Provost2021-04-1012-262/+416
| | | | | | | | | | | Stop using the kernel's struct pf_rule, switch to libpfctl's pfctl_rule. Now that we use nvlists to communicate with the kernel these structures can be fully decoupled. Reviewed by: glebius MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29644
* pf: Move prototypes for userspace functions to userspace headerKristof Provost2021-04-103-8/+11
| | | | | | | | | | | These functions no longer exist in the kernel, so there's no reason to keep the prototypes in a kernel header. Move them to pfctl where they're actually implemented. Reviewed by: glebius MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29643
* bsnmp: Use libpfctlKristof Provost2021-04-102-1/+6
| | | | | | | Reviewed by: glebius MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29642
* (t)ftp-proxy: use libpfctlKristof Provost2021-04-104-9/+23
| | | | | | | Reviewed by: glebius MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29641
* pfctl: Move ioctl abstraction functions into libpfctlKristof Provost2021-04-1011-256/+276
| | | | | | | | Introduce a library to wrap the pf ioctl interface. MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29562
* libnv: Build PICKristof Provost2021-04-101-0/+1
| | | | | | | | | Build libnv as position independent code so we can use it from shared libraries. MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29561
* pfctl: Use the new DIOCGETRULENV ioctlKristof Provost2021-04-105-7/+396
| | | | | | | | | | Create wrapper functions to handle the parsing of the nvlist and move that code into pfctl_ioctl.c. At some point this should be moved into a libpfctl. MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29560
* pf: Implement nvlist variant of DIOCGETRULEKristof Provost2021-04-105-6/+473
| | | | | | MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29559
* pfctl: Move to DIOCADDRULENVKristof Provost2021-04-102-12/+207
| | | | | | | | Start using the new nvlist based ioctl to add rules. MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29558
* pf: Introduce nvlist variant of DIOCADDRULEKristof Provost2021-04-107-140/+697
| | | | | | | | | | This will make future extensions of the API much easier. The intent is to remove support for DIOCADDRULE in FreeBSD 14. Reviewed by: markj (previous version), glebius (previous version) MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29557
* Cross-reference camcontrol(8) and zonectl(8) man pages.Edward Tomasz Napierala2021-04-102-1/+5
|
* rc: kldxref only needs to depend on rootfs, not FILESYSTEMSEdward Tomasz Napierala2021-04-101-1/+1
| | | | | | | | | This makes it run a bit earlier in the startup, which will be useful for the linux rc script later on. Reviewed By: imp (earlier version) Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29589
* Regen src.conf.5 after 9d178c925fb9Ed Maste2021-04-101-210/+210
|
* Drop 'Set to' from most src.conf(5) knobsEd Maste2021-04-10250-251/+251
| | | | | | | | | The description is clearly what effect the knob has when set, so the additional text was unnecessary. Reviewed by: jhb, se Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29583
* amd64: clear debug registers on execing 32bit Linux binaryKonstantin Belousov2021-04-101-0/+2
| | | | | | | Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29687
* amd64: clear debug registers on execing 32bit native binaryKonstantin Belousov2021-04-101-0/+2
| | | | | | | Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29687
* amd64 linux64: use x86_clear_dbregs()Konstantin Belousov2021-04-101-21/+1
| | | | | | | | | instead of manually inlining it Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29687
* x86: use x86_clear_dbregs() on forkKonstantin Belousov2021-04-102-12/+2
| | | | | | | | | | | | instead of manual zeroing of the debug registers file in pcb. This centralizes the cleaning code, but the practical difference is that PCB_DBREGS flag is cleared, saving some operations on context switching. Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29687
* x86: add x86_clear_dbregs() helperKonstantin Belousov2021-04-103-42/+59
| | | | | | | | | | Move the code from exec_setregs() to reset debug registers state on exec, to the x86_clear_dbregs() helper Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29687
* Fix a typo in a comment: frame -> framework.John Baldwin2021-04-091-1/+1
| | | | | MFC after: 1 week Sponsored by: Chelsio Communications
* nlmrsa: Remove this deprecated driver.John Baldwin2021-04-094-551/+0
| | | | | Relnotes: yes Sponsored by: Chelsio Communications
* efivar: use bool for booleansWarner Losh2021-04-091-23/+22
| | | | | | | | | Rather than int flags we ++, use booleans for all command line args. No functional change intended. Reviewed by: markj@ Sponsored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D29621
* efivar: Attempt to fix setting/printing/deleting EFI vars with '-' in their nameWarner Losh2021-04-091-9/+18
| | | | | | | | | | | | Due to how we're parsing UUIDs, we were disallowing setting, printing or deleting any UEFI variable with a '-' in it when you attempted to do that operation with the exact name (wildcard reporting was unaffected). Fix the parser to loop over all the dashes in the name and only give up when all possible matches are exhausted. Reviewed by: markj@ Sponsored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D29620
* efivar: Add --quiet to not report errorsWarner Losh2021-04-092-17/+55
| | | | | | | | | Add -q/--quiet flag to the command line. With it, errors are not reported at all. Instead nothing is printed and the exit code is non-zero. Reviewed by: markj Sponsored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D29619
* tcp_hostcache: make THC_LOCK/UNLOCK macros to work with hash head pointer.Gleb Smirnoff2021-04-091-14/+14
| | | | Not a functional change.
* tcp_hostcache: style(9)Gleb Smirnoff2021-04-091-26/+27
| | | | Reviewed by: rscheff
* tcp_hostcache: remove extraneous check.Gleb Smirnoff2021-04-091-6/+0
| | | | | | All paths leading here already checked this setting. Reviewed by: rscheff
* tcp_hostcache: implement tcp_hc_updatemtu() via tcp_hc_update.Gleb Smirnoff2021-04-091-30/+5
| | | | | | | Locking changes are planned here, and without this change too much copy-and-paste would be between these two functions. Reviewed by: rscheff
* rtld: use _get_tp() in __tls_get_addr()Konstantin Belousov2021-04-094-72/+13
| | | | | | | | | | This eliminates some non-trivial amount of code duplication, where done. Only x86 and mips are handled right now. Tested by: bdragon (powerpc), mhorne (riscv) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29623