aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* telnet.1: Fix a typo in the manual pageGordon Bergling2023-04-111-1/+1
| | | | | | - s/addreess/address/ MFC after: 3 days
* bhyve: do not exit if LPC finds no host selectorCorvin Köhne2023-04-111-7/+10
| | | | | | | | | | | | The host selector is only required when the user likes to use the same LPC device IDs as the physical LPC device. This is an uncommon use case. For that reason, it makes no sense to exit when we don't find the host selector. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39311
* net80211: fail for unicast traffic without unicast keydomienschepers2023-04-101-5/+11
| | | | | | | | | | | | | Falling back to the multicast key may cause unicast traffic to leak. Instead fail when no key is found. For more information see the 'Framing Frames: Bypassing Wi-Fi Encryption by Manipulating Transmit Queues' paper. [ I updated the commit message to reference the paper and the code comment to record historic behaviour as discussed in private email. ] Security: CVE-2022-47522
* dhclient: add ability to ignore options in offersRob Norris2023-04-106-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | A machine might exist on multiple networks, all of which offer, say, default routes or name servers. There's no easy way to indicate in the config that those options are only valid for a single interface. Now, we can write: interface "lan0" { request routers; require routers; } interface "lan1" { ignore routers; } And only take action on default routes offered on lan0. Tested by: Jose Luis Duran <jlduran at gmail dot com> MFC after: 2 months Reviewed by: allanjude, imp Sponsored by: Zenith Electronics LLC Sponsored by: Klara, Inc. Pull Request: #693
* makefs: set the validation entry system typeEd Maste2023-04-101-1/+9
| | | | | Obtained from: NetBSD c3cb4dcc9c43 Sponsored by: The FreeBSD Foundation
* makefs: use size_t or ssize_t where appropriateEd Maste2023-04-104-12/+13
| | | | Obtained from: NetBSD af7bc97830ac
* bsd-family-tree: add OpenBSD 7.3Sergey A. Osokin2023-04-101-0/+2
| | | | MFC after: 3 days
* tcp: Rack - in the absence of LRO fixed rate pacing (loopback or interfaces ↵Randall Stewart2023-04-101-1/+53
| | | | | | | | | | | | | | | with no LRO) does not work correctly. Rack is capable of fixed rate or dynamic rate pacing. Both of these can get mixed up when LRO is not available. This is because LRO will hold off waking up the tcp connection to processing the inbound packets until the pacing timer is up. Without LRO the pacing only sort-of works. Sometimes we pace correctly, other times not so much. This set of changes will make it so pacing works properly in the absence of LRO. Reviewed by: tuexen Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39494
* mail: fix build if TIOCSTI is not definedEd Maste2023-04-101-1/+6
| | | | Sponsored by: The FreeBSD Foundation
* rack: mask and tclass are only used for INET6.John Baldwin2023-04-101-1/+2
| | | | This fixes the LINT-NOINET6 build.
* procfs: Sync a documentation comment with the code.Joseph Koshy2023-04-101-2/+3
| | | | | Approved by: gnn (mentor) Differential Revision: https://reviews.freebsd.org/D39488
* sys: Enable -Wunused-but-set-variable for GCC.John Baldwin2023-04-101-2/+1
| | | | | | | It has been enabled for clang for a while now. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39358
* zfs: Appease set by unused warnings for spl_fstrans_*mark stubs.John Baldwin2023-04-101-1/+1
| | | | | | | Use a void cast to mark the cookie value as used in spl_fstrans_unmark. Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39357
* if_mos: Remove set but unused variable.John Baldwin2023-04-101-3/+0
| | | | | | Reviewed by: hselasky Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39356
* libalias: Mark set but unused variables as unused.John Baldwin2023-04-101-1/+1
| | | | | | | This function is clearly a stub, but it seems better to leave the stub bits in place than to remove the function entirely. Differential Revision: https://reviews.freebsd.org/D39355
* udf: Remove set but unused variable from udf_getattr.John Baldwin2023-04-101-3/+0
| | | | | | Reviewed by: emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39354
* rtw88: Silence unused but set warnings from GCC for debug.c.John Baldwin2023-04-101-0/+3
| | | | | Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D39353
* iwlwifi: Silence unused but set warnings from GCC for iwl-debug.c.John Baldwin2023-04-101-0/+3
| | | | | Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D39352
* ipmi: Remove some dead code for unsupported BMCs.John Baldwin2023-04-101-5/+1
| | | | | | Reviewed by: emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39351
* procfs: Document the content of /proc/$PID/map.Joseph Koshy2023-04-101-2/+88
| | | | | Approved by: gnn (mentor) Differential Revision: https://reviews.freebsd.org/D39484
* Implement GEOM::rotation_rate for gmirrorAlan Somers2023-04-102-0/+30
| | | | | | | | | | | If all of the mirror's children have the same rotation rate, report that. But if they have mixed rotation rates, or if any child has an unknown rotation rate, report "Unknown". MFC after: 2 weeks Sponsored by: Axcient Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D39458
* ofw: fix memory leak in ofwbus_attach()Christos Margiolis2023-04-101-0/+1
| | | | | | | | PR: 269509 Reported by: Jaroslaw Pelczar <jarek@jpelczar.com> Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38903
* dtrace: handle NOP instructions in the riscv invop handlerChristos Margiolis2023-04-101-0/+3
| | | | | | | | | This will be used by a forthcoming port of the kinst provider. Reviewed by: markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39481
* bridge: Add support for emulated netmap modeMark Johnston2023-04-105-10/+134
| | | | | | | | | | | | | | | | | | | | | | | | | if_bridge receives packets via a special interface, if_bridge_input, rather than by if_input. Thus, netmap's usual hooking of ifnet routines does not work as expected. Instead, modify bridge_input() to pass packets directly to netmap when it is enabled. This applies to both locally delivered packets and forwarded packets. When a netmap application transmits a packet by writing it to the host TX ring, the mbuf chain is passed to if_input, which ordinarily points to ether_input(). However, when transmitting via if_bridge, bridge_input() needs to see the packet again in order to decide whether to deliver or forward. Thus, introduce a new protocol flag, M_BRIDGE_INJECT, which 1) causes the packet to be passed to bridge_input() again after Ethernet processing, and 2) avoids passing the packet back to netmap. The source MAC address of the packet is used to determine the original "receiving" interface. Reviewed by: vmaffione MFC after: 2 months Sponsored by: Zenarmor Sponsored by: OPNsense Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38066
* makefs: simplify filename conversion handlingEd Maste2023-04-101-24/+5
| | | | | Obtained from: OpenBSD 4095a2e01d18 Sponsored by: The FreeBSD Foundation
* epair tests: test PCP tagged packetsKristof Provost2023-04-102-0/+66
| | | | | | | PR: 270736 MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39483
* if_epair: also remove vlan metadata from mbufsKristof Provost2023-04-101-0/+6
| | | | | | | | | | | | | We already remove mbuf tags from packets transitting an if_epair, but we didn't remove vlan metadata. In certain configurations this could lead to unexpected vlan tags turning up on the rx side. PR: 270736 Reviewed by: markj MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39482
* makefs: remove some unused cd9660 types and definesEd Maste2023-04-101-23/+0
| | | | | Obtained from: OpenBSD Sponsored by: The FreeBSD Foundation
* bridge.4: Document the net.link.bridge.log_mac_flap sysctl variableZhenlei Huang2023-04-101-1/+10
| | | | | | | | It was introduced in 2d3614fb132b (bridge: Log MAC address port flapping). Reviewed by: gbe (manpages) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D39465
* stress2: Update the exclude listPeter Holm2023-04-101-2/+1
|
* DEBUG_VFS_LOCKS: use witness if availableKonstantin Belousov2023-04-093-3/+15
| | | | | | | | | | | | The assert_vop_locked messages are ignored, and file/line information is not too useful. Fixing this without changing both witness and VFS asserts KPIs is not possible. Reviewed by: markj (previous version) Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39464
* netlink: improve source ifa selection algorithm when adding routes.Alexander V. Chernikov2023-04-091-1/+13
| | | | | | | | | | Use route destination sockaddr when the gateway is eiter AF_LINK or has the different family (IPv4 over IPv6). This change ensures the nexthop IFA has the same family as the destination. Reported by: Dmitriy Smirnov <fox@sage.su> Tested by: Dmitriy Smirnov <fox@sage.su> MFC after: 3 days
* route: remove always-true expressionAlexander V. Chernikov2023-04-091-2/+1
|
* netlink: set prefix-related flags to the created nexthop.Alexander V. Chernikov2023-04-091-1/+3
| | | | | | | This fixes incorrect flag combinations when adding IPv4/IPv6 host routes. MFC after: 3 days
* netlink: do not print "unknown sa family" warnings at the default debugAlexander V. Chernikov2023-04-081-1/+1
| | | | | | level. MFC after: 2 weeks
* netlink: fix !INET6 warningAlexander V. Chernikov2023-04-081-0/+2
| | | | | Reported by: Gary Jennejohn <garyj@gmx.de> MFC after: 2 weeks
* route: switch transport protocol to Netlink.Alexander V. Chernikov2023-04-081-0/+4
| | | | All known bugs have been fixed, try to enable Netlink once again.
* Bump __FreeBSD_version to 1400086 for vn_lock_pair arg changeMateusz Guzik2023-04-081-1/+1
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* usb(4): Separate the fast path and the slow path to avoid races and ↵Hans Petter Selasky2023-04-084-41/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | use-after-free for the USB FS interface. Bad behaving user-space USB applicatoins may crash the kernel by issuing USB FS related ioctl(2)'s out of their expected order. By default the USB FS ioctl(2) interface is only available to the administrator, root, and driver applications like webcamd(8) needs to be hijacked in order for this to happen. The issue is the fast-path code does not always see updates made by the slow-path code, and may then work on freed memory. This is easily fixed by using an EPOCH(9) type of synchronization mechanism. A SX(9) lock will be used as a substitute for EPOCH(9), due to the need for sleepability. In addition most calls going into the fast-path originate from a single user-space process and the need for multi-thread performance is not present. Differential Revision: https://reviews.freebsd.org/D39373 Reviewed by: markj@ Reported by: C Turt <ecturt@gmail.com> admbugs: 994 MFC after: 1 week Sponsored by: NVIDIA Networking
* usb(4): Code refactoring as a pre-step for adding missing synchronization ↵Hans Petter Selasky2023-04-081-227/+226
| | | | | | | | | | | | | | mechanism. Move code in switch cases into own functions to make later changes easier to track. No functional change, except for removing a superfluous break statement when range checking USB_FS_MAX_FRAMES, in the USB_FS_OPEN case. It should not have been there at all. Suggested by: emaste@ MFC after: 1 week Sponsored by: NVIDIA Networking
* route: fix netlink route operations with link-local gw / dst.Alexander V. Chernikov2023-04-081-1/+18
| | | | | Extract ifindex from either gw or dst sockaddr and add it as a dedicated RTA_OIF attribute.
* stress2: Tune MAXVNODES to avoid excessive run timePeter Holm2023-04-081-2/+2
|
* openzfs: adopt to the new vn_lock_pair() interfaceKonstantin Belousov2023-04-071-1/+2
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* vn_lock_pair(): allow to request shared lockingKonstantin Belousov2023-04-076-36/+71
| | | | | | | | | | | If either of vnodes is shared locked, lock must not be recursed. Requested by: rmacklem Reviewed by: markj, rmacklem Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39444
* zfs: disable kernel fpu usage on arm and aarc64Mateusz Guzik2023-04-072-2/+2
| | | | | | | | | It is not implemented and causes panics on boot. This is a temporary measure until someone(tm) sorts it out. Reported by: many Sponsored by: Rubicon Communications, LLC ("Netgate")
* vfs: extend vn_printf with vop vectorMateusz Guzik2023-04-071-1/+2
|
* vfs: more informative panic for missing fplookup opsMateusz Guzik2023-04-073-6/+45
|
* ufs: add missing vop_fplookup ops to fifo vectorsMateusz Guzik2023-04-072-0/+6
| | | | Reported-by: syzbot+a324b64ef9a933659c1c@syzkaller.appspotmail.com
* nfscl: Fix support for doing Null RPCsRick Macklem2023-04-071-0/+5
| | | | | | | | | Although the NFS client does not currently perform Null RPCs, this fix is needed if/when it might do so. Found during testing of experimental code that uses Null RPCs to maintain/monitor TCP connections for "nconnect" mounts. MFC after: 3 months
* nfsd: Add support for the SP4_MACH_CRED case in ExchangeIDRick Macklem2023-04-076-21/+215
| | | | | | | | | | | | | | | Commit f4179ad46fa4 added support for operation bitmaps for NFSv4.1/4.2. This commit uses those to implement the SP4_MACH_CRED case for the NFSv4.1/4.2 ExchangeID operation since the Linux NFSv4.1/4.2 client is now using this for Kerberized mounts. The Linux Kerberized NFSv4.1/4.2 mounts currently work without support for this because Linux will fall back to SP4_NONE, but there is no guarantee this fallback will work forever. This commit only affects Kerberized NFSv4.1/4.2 mounts from Linux at this time. MFC after: 3 months