aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bhyve.8: Clean up network backends sectionMateusz Piotrowski2021-04-181-16/+39
| | | | | | | | - Reformat the format lists, use appropriate mdoc macros for readability. - Add a missing Oxford comma. MFC after: 2 weeks
* bhyve.8: Improve emulation description of the -s flagMateusz Piotrowski2021-04-181-27/+27
| | | | | | | | | | | | | - Set width of the list to the longest key word for readability. - Separate descriptions of amd_hostbridge and hostbridge emulations. Also, wordsmith their descriptions for consistency with other entries. - Use Cm instead of Li for command modifiers. - Do not stylize AMD with Li, there's no need to do it. - Mention COM3 and COM4 in the definition of lpc. - Fix a typo in the definition of ahci-hd ("hard drive" instead of "hard-drive"). MFC after: 2 weeks
* bhyve.8: Clean up the slot description of -sMateusz Piotrowski2021-04-181-7/+26
| | | | | | | | Also, remove the macros of the nested list which contained slot, emulation and conf. This decreases the indention of the -s description. It was necessary to clean up the slot description. MFC after: 2 weeks
* bhyve.8: Clean-up synopsis of -sMateusz Piotrowski2021-04-181-3/+3
| | | | | | | - Document "-s help" separately for readability. - Use appropriate mdoc macros. MFC after: 2 weeks
* tcp: keep SACK scoreboard sorted when doing rescue retransmissionRichard Scheffenegger2021-04-181-2/+10
| | | | | | | Reviewed By: tuexen, kbowling, #transport MFC after: 3 days Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D29825
* bhyve.8: Fix indention in the signals tableMateusz Piotrowski2021-04-181-1/+1
| | | | MFC after: 2 weeks
* bhyve.8: Clean up description of -rMateusz Piotrowski2021-04-181-2/+2
| | | | | | There is no need to wrap those flags in Op macros. MFC after: 2 weeks
* bhyve.8: Fix the synopsis of -pMateusz Piotrowski2021-04-181-1/+1
| | | | | | Use appropriate mdoc macros. MFC after: 2 weeks
* bhyve.8: Improve the description of the -m flagMateusz Piotrowski2021-04-181-7/+15
| | | | | | | - Stylize the synopsis with proper mdoc macros - Do some wordsmithing on the description for consistency. MFC after: 2 weeks
* bhyve.8: Improve the description and synopsis of -lMateusz Piotrowski2021-04-181-8/+13
| | | | | | | | | | | - Describe "-l help" separately for readability. - List all the supported comX devices explicitly - Use Cm instead of Ar for command modifiers (i.e., literal values a user can specify as an argument to the command). - Explain where to get more information about the possible values of the conf argument. MFC after: 2 weeks
* bhyve.8: Sort the options in the OPTIONS sectionMateusz Piotrowski2021-04-181-17/+17
| | | | | | | No content change intended. Just moving the option descriptions around to follow the order suggested by style(9). MFC after: 2 weeks
* bhyve: Improve the option description in the usage messageMateusz Piotrowski2021-04-181-8/+9
| | | | | | | | - Sort options as suggested by style(9) - Capitalize some words like CPU and HLT - Add a missing description for the -G flag MFC after: 2 weeks
* bhyve: Fix synopsis in the usage messageMateusz Piotrowski2021-04-181-3/+3
| | | | | | | | | | | In particular: - Sort short options to align with style(9) - Add two missing flags: -G and -r - Drop unnecessary angle brackets for consistency - Rename the "vm" argument to vmname for consistency with the manual page MFC after: 2 weeks
* bhyve.8: Make synopsis more readableMateusz Piotrowski2021-04-181-4/+8
| | | | | | | | | There is no need to squeeze all the possible options into one synopsis entry. Let "-l help" and "-s help" be listed separately. While here, keep -s and its arguments on the same line. MFC after: 2 weeks
* Minor style tidy: if( -> if (Warner Losh2021-04-187-8/+7
| | | | | | | | Fix a few 'if(' to be 'if (' in a few places, per style(9) and overwhelming usage in the rest of the kernel / tree. MFC After: 3 days Sponsored by: Netflix
* Minor style cleanupWarner Losh2021-04-1812-19/+20
| | | | | | | | | We prefer 'while (0)' to 'while(0)' according to grep and stlye(9)'s space after keyword rule. Remove a few stragglers of the latter. Many of these usages were inconsistent within the file. MFC After: 3 days Sponsored by: Netflix
* mips/octeon SDK: Fix __cvmx_cmd_queue_lock asm for clang 11Justin Hibbits2021-04-181-2/+2
| | | | | | | | | | | | The 'ticket' and 'my_ticket' arguments are both read and written within the same asm block. Clang is stricter with the constraints than gcc4 was, so accepts the '=r' at face value and will happily overwrite registers that "should" be preserved. Mark these operands to not clobber other operands, so they get their own registers. This fixes a panic on bringing up the octe interfaces.
* jail.conf(5): emphasize where to find jail parametersFernando ApesteguĂ­a2021-04-181-4/+5
| | | | | | | | | | | | | | Some people expect jail.conf(5) to have a list of jail parameters. jail(8) contains a comprehensive list of all parameters to be used during jail invocation or in jail.conf. Highlighting where to look for jail parameters seems a reasonable solution. PR: 244569 Reported by: joneum@ Approved by: 0mp (manpages, mentor) Reviewed by: debdrup Differential Revision: https://reviews.freebsd.org/D28701
* fib algo: do not reallocate datapath index for datapath ptr update.Alexander V. Chernikov2021-04-181-0/+11
| | | | | | | | | | | | | Fib algo uses a per-family array indexed by the fibnum to store lookup function pointers and per-fib data. Each algorithm rebuild currently requires re-allocating this array to support atomic change of two pointers. As in reality most of the changes actually involve changing only data pointer, add a shortcut performing in-flight pointer update. MFC after: 2 weeks
* Fib algo: extend KPI by allowing algo to set datapath pointers.Alexander V. Chernikov2021-04-182-21/+42
| | | | | | | | | | | | | | | | Some algorithms may require updating datapath and control plane algo pointers after the (batched) updates. Export fib_set_datapath_ptr() to allow setting the new datapath function or data pointer from the algo. Add fib_set_algo_ptr() to allow updating algo control plane pointer from the algo. Add fib_epoch_call() epoch(9) wrapper to simplify freeing old datapath state. Reviewed by: zec Differential Revision: https://reviews.freebsd.org/D29799 MFC after: 1 week
* tcp: add support for TCP over UDPMichael Tuexen2021-04-1818-158/+821
| | | | | | | | | | | | Adding support for TCP over UDP allows communication with TCP stacks which can be implemented in userspace without requiring special priviledges or specific support by the OS. This is joint work with rrs. Reviewed by: rrs Sponsored by: Netflix, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29469
* c.7: Describe more recent C standardsFaraz Vahedi2021-04-182-40/+222
| | | | | | | Also, add some MLINKS and fix some typos. Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D28441
* netmap: use safer defaults for hwbuf_lenVincenzo Maffione2021-04-181-14/+32
| | | | | | | | | | | | | | | | | | | | | | | We must make sure that incoming packets will never overflow the netmap buffers, even when the user is using the offset feature. In the typical scenario, the netmap buffer is 2KiB and, with an MTU of 1500, there are ~500 bytes available for user offsets. Unfortunately, some NICs accept incoming packets even when they are larger then the MTU. This means that the only way to stop DMA from overflowing the netmap buffers, when offsets are allowed, is to choose a hardware buffer length which is smaller than the netmap buffer length. For most NICs and for 2KiB netmap buffers, this means 1024 bytes, which is unconveniently small. The current code will select the small hardware buf size even when offsets are not in use. The main purpose of this change is to fix this bug by returning to the normal behavior for the no-offsets case. At the same time, the patch pushes the handling of the offset case to the lower level driver code, so that it can be made NIC-specific (in future patches).
* Fix zgrep --versionMateusz Piotrowski2021-04-181-3/+3
| | | | | | | | | | | | | | "zgrep --version" is expected to print the version information in the same way as "zgrep -V". However, the case handling the --version flag is never reached, so "zgrep --version" prints: zgrep: missing pattern instead of: grep (BSD grep, GNU compatible) 2.6.0-FreeBSD Reviewed by: yuripv Approved by: yuripv (src) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29813
* getprogname.3: Add an exampleMateusz Piotrowski2021-04-181-1/+27
| | | | | | | | | It shows the difference between getprogname() and argv[0]. Reviewed by: yuripv Approved by: yuripv (src) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27204
* spigen.4: Fix typosMateusz Piotrowski2021-04-181-2/+2
| | | | MFC after: 3 days
* newbus: style nit: use while<space>(0)Warner Losh2021-04-181-2/+2
| | | | Sponsored by: Netflix
* stress2: Added a syzkaller reproducer. A variation of syzkaller32.shPeter Holm2021-04-182-0/+143
|
* contrib/wpa: Complete the revert of Import wpa.Cy Schubert2021-04-18574-0/+0
| | | | | | | | | | | | Remove files added by b51f459a2098622c31ed54f5c1bf0e03efce403b. The util/config.c conflicts with wpa_supplicant/config.c causing the linker error. The proper approach would have been to prepare the wpa build to build the various subdirectories into .a libraries. SRCS makes no distinction between files of the same name. The MFV accounted for this but the revert failed to remove the additional files, including the conflicting utils/config.c.
* Explain the newfs naming conventionMateusz Piotrowski2021-04-171-1/+9
| | | | | | | | | | | It might be unclear why newfs and newfs_msdos should cross-reference each other. Add a note explaining it. This is a follow-up to 74bd20769706041108a573601cf0b61c755bdc56. Reported by: kib Reviewed by: imp, kib, rpokala MFC after: 3 days
* fork.2: Add a simple use patternMateusz Piotrowski2021-04-171-1/+37
| | | | | | | | | | It seems to be a nice idea to show how fork() is usually used in practice. This may act as a guide to developers who want to quickly recall how to use the fork() function. Reviewed by: bcr, yuripv MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27626
* ports.7: Document DEBUG_FLAGS and the process of debugging portsMateusz Piotrowski2021-04-171-0/+59
| | | | | | | | Loosely based on https://wiki.freebsd.org/BenWoods/DebuggingPorts. Reviewed by: crees MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27296
* grep: Fix an incorrect description of the -C flagMateusz Piotrowski2021-04-172-14/+11
| | | | | | | | | | | It seems that the number of lines is no longer an optional parameter to the -C flag. Document it accordingly both in the manual page and the usage message. Reviewed by: yuripv Approved by: yuripv MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D28509
* ports.7: Add an example of setting variables for selected portsMateusz Piotrowski2021-04-171-1/+13
| | | | | | Reviewed by: crees MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28202
* libpfct: Fix PIC flagKristof Provost2021-04-172-2/+1
| | | | | | | | Use ${PICFLAG} rather than hard-adding -fPIC, which removes the requirement for libnv to be built PIC. MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate")
* newbus: Minor update fix.Warner Losh2021-04-171-2/+3
| | | | | | | | | | driver_t was supposed to just be a quick hack for 4.x compatibility. However, it's been documented now as the preferred API rather than the replacement kobj_class_t. Drop the note about 4.x since it's clear we're a bit late to retiring its use through the tree with almost 1500 references to driver_t. Sponsored by: Netflix
* rack: Fix ECN on finalizing session.Richard Scheffenegger2021-04-171-1/+1
| | | | | | | | | | | | Maintain code similarity between RACK and base stack for ECN. This may not strictly be necessary, depending when a state transition to FIN_WAIT_1 is done in RACK after a shutdown() or close() syscall. MFC after: 3 days Reviewed By: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D29658
* usr.sbin/wpa: complete the revert of wpa importCy Schubert2021-04-177-24/+8
| | | | This completes the revert of b51f459a2098622c31ed54f5c1bf0e03efce403b.
* Revert wpa import.Cy Schubert2021-04-17533-200748/+24
| | | | | | | b51f459a2098622c31ed54f5c1bf0e03efce403b resulted in a mismerge due to having to do a remerge because my tree was over a week out of date. Changes that were made to fix the build were lost in the remerge resulting in build errors that were fixed a week ago.
* mpt(4): Remove incorrect S/G segments limits.Alexander Motin2021-04-171-20/+0
| | | | | | | | | | First, two of those four checks are unreachable. Second, I don't believe there should be ">=" instead of ">". Third, bus_dma(9) already returns the same EFBIG if ">". This fixes false I/O errors in worst S/G cases with maxphys >= 2MB. MFC after: 1 week
* wpa: Import wpa_supplicant/hostapd commit f91680c15Cy Schubert2021-04-17576-30/+200752
|\ | | | | | | | | | | | | | | | | | | | | | | This is the April update to vendor/wpa committed upstream 2021/04/07. This is MFV efec8223892b3e677acb46eae84ec3534989971f. Suggested by: philip Reviewed by: philip MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D29744
| * wpa: Import wpa_supplicant/hostapd commit f91680c15Cy Schubert2021-04-1271-447/+2511
| | | | | | | | | | This is the April update to vendor/wpa committed upstream 2021/04/07.
| * Import wpa_supplicant/hostapd commit 9d9b42306541vendor/wpa/g9d9b42306541Philip Paeps2021-03-191011-21961/+241249
| | | | | | | | | | | | | | | | | | Start tracking upstream development of hostapd and wpa_supplicant more closely. The last upstream release is from August 2019. Keeping up with upstream development will make importing releases less exciting. Discussed with: cy Sponsored by: Rubicon Communications, LLC ("Netgate")
| * wpa: import fix for P2P provision discovery processing vulnerabilityCy Schubert2021-03-171-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Latest version available from: https://w1.fi/security/2021-1/ Vulnerability A vulnerability was discovered in how wpa_supplicant processes P2P (Wi-Fi Direct) provision discovery requests. Under a corner case condition, an invalid Provision Discovery Request frame could end up reaching a state where the oldest peer entry needs to be removed. With a suitably constructed invalid frame, this could result in use (read+write) of freed memory. This can result in an attacker within radio range of the device running P2P discovery being able to cause unexpected behavior, including termination of the wpa_supplicant process and potentially code execution. Vulnerable versions/configurations wpa_supplicant v1.0-v2.9 with CONFIG_P2P build option enabled An attacker (or a system controlled by the attacker) needs to be within radio range of the vulnerable system to send a set of suitably constructed management frames that trigger the corner case to be reached in the management of the P2P peer table. Note: FreeBSD base does not enable P2P.
* | netmap: make sure rings are disabled during resetsVincenzo Maffione2021-04-172-12/+30
| | | | | | | | | | | | | | | | Explicitly disable ring synchronization before calling callbacks that may result in a hardware reset. Before this patch we relied on capturing the down/up events which, however, may not be issued by all drivers.
* | tcp: Rename rfc6675_pipe to sack.revised, and enable by defaultRichard Scheffenegger2021-04-177-27/+31
| | | | | | | | | | | | | | | | | | | | As full support of RFC6675 is in place, deprecating net.inet.tcp.rfc6675_pipe and enabling by default net.inet.tcp.sack.revised. Reviewed By: #transport, kbowling, rrs Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D28702
* | ixgbe: Clarify index name in ixgbe_mc_filter_applyKevin Bowling2021-04-171-4/+4
| | | | | | | | | | | | | | | | | | | | "It looks like it would be less confusing to rename 'count' to something like 'idx', since that's what it's used for in this function." Reviewed by: erj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29798
* | tcp_respond(): fix assertion, should have been done in 08d9c920275.Gleb Smirnoff2021-04-161-1/+1
| |
* | Remove extra space at start of file.Warner Losh2021-04-161-1/+1
| | | | | | | | Sponsored by: Netflix
* | newbus: style nitWarner Losh2021-04-161-1/+1
| | | | | | | | Sponsored by: Netflix