aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* DEFAULTS: move intrng to DEFAULTS for its platforms.Warner Losh2022-10-247-5/+3
| | | | | | Sponsored by: Netflix Reviewed by: manu, kevans Differential Revision: https://reviews.freebsd.org/D37107
* stand/efi: Simpler constructWarner Losh2022-10-241-7/+1
| | | | | | | Use 'sizeof(long) == 8' for a compile time constant that can be used as an initializer rather than #ifdefs. Sponsored by: Netflix
* man4: Hook mac_ddb.4 up to the buildMark Johnston2022-10-241-0/+1
| | | | | | Fixes: 287d467c5db5 ("mac: add new mac_ddb(4) policy") Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc.
* zfs: Fix a pair of bugs in zfs_fhtovp()Mark Johnston2022-10-241-1/+2
| | | | | | | | | | | | | | This cherry-picks upstream ed566bf1cd0bdbf85e8c63c1c119e3d2ef5db1f6 - Add a zfs_exit() call in an error path, otherwise a lock is leaked. - Remove the fid_gen > 1 check. That appears to be Linux-specific: zfsctl_snapdir_fid() sets fid_gen to 0 or 1 depending on whether the snapshot directory is mounted. On FreeBSD it fails, making snapshot dirs inaccessible via NFS. PR: 266236 MFC after: 3 days
* acpi_ged: fix build with ACPI_DEBUGGleb Smirnoff2022-10-241-1/+1
|
* RELNOTES: Add an entry for if_bridge l3 filtering default changeKristof Provost2022-10-241-0/+5
|
* cache: add cache_assert_no_entriesMateusz Guzik2022-10-242-0/+15
|
* acpi_ged: fix build, as module and non INTRNG case.Takanori Watanabe2022-10-242-2/+2
| | | | | | Reviewed-by: cy Differential Revision: https://reviews.freebsd.org/D37104
* bsd-family-tree: OpenBSD 7.2 and DragonFly BSD 6.0.1Sergey A. Osokin2022-10-241-2/+6
| | | | | | | | | Add two releases to the tree. While I'm here correct DragonFly BSD 6.2.1 position, it's been released after FreeBSD 12.3. MFC after: 3 days
* OpenBSM: fix free() in au_read_rec error caseEd Maste2022-10-241-1/+1
| | | | | | | | | buf is a char ** and *buf is the allocated buffer. PR: 267050 Reported by: Robert Morris <rtm@lcs.mit.edu> MFC after: 3 days Sponsored by: The FreeBSD Foundation
* acpi_ged: New driver to ACPI generic event deviceTakanori Watanabe2022-10-246-1/+345
| | | | | | | | | | | | | | | | New driver to ACPI generic event device, defined in ACPI spec. Some ACPI power button may not work without this. In qemu arm64 with "virt" machine, with ACPI firmware, enable devd check devd message by and invoke following command in qemu monitor (qemu) system_powerdown and make sure some power button input event appear. (setting sysctl hw.acpi.power_button_state=S5 is not work, because ACPI tree does not have \_S5 object.) Reviewed by: andrew, hrs Differential Revision: https://reviews.freebsd.org/D37032
* bridge: default to not filtering L3Kristof Provost2022-10-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Change the default for net.link.bridge.pfil_member and net.link.bridge.pfil_bridge to zero. That is, default to not calling layer 3 firewalls on the bridge or its member interfaces. With either of these enabled the bridge will, during L2 processing, remove the Ethernet header from packets, feed them to L3 firewalls, re-add the Ethernet header and send them out. Not only does this interact very poorly with firewalls which defer packets, or reassemble and refragment IPv6, it also causes considerable confusion for users, because the firewall gets called in unexpected ways. For example, a bridge which contains a bhyve tap and the host's LAN interface. We'd expect traffic between the LAN and bhyve VM to pass, no matter what (layer 3) firewall rules are set on the host. That's not the case as long as pfil_bridge or pfil_member are set. Reviewed by: Zhenlei Huang MFC: never Differential Revision: https://reviews.freebsd.org/D37009
* arm64: Hyper-V: fix couple more commit errors caused by duplicated linesWei Hu2022-10-242-288/+0
| | | | | | | | Remove those duplicated lines. Reported by: Souradeep Chakrabarti <schakrabarti@microsoft.com> Fixes: 6cf00ef80c20148 Sponsored by: Microsoft
* if_ovpn: add sysctls for netisr_queue() and crypto_dispatch_async()Kristof Provost2022-10-241-3/+24
| | | | | | | | | Allow the choice between asynchronous and synchronous netisr and crypto calls. These have performance implications, but depend on the specific setup and OCF back-end. Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D37017
* stress2: Added a regression test for D37024Peter Holm2022-10-241-0/+72
|
* stress2: Update tool to list both DATA and HOLES in a file.Peter Holm2022-10-242-22/+114
| | | | Added a regression test.
* LinuxKPI: add MSEC_PER_SECBjoern A. Zeeb2022-10-231-0/+2
| | | | | | | Sponsored by: The FreeBSD Foundation Reviewed by: imp, emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D37087
* LinuxKPI: 802.11: add MO tracingBjoern A. Zeeb2022-10-233-16/+62
| | | | | | | | | | | Add a macro to each implemented mac80211 operation. This currently turns into a printf if LINUXKPI_80211_DEBUG is defined but in the future could become a different probe as well. This is helpful for quick analysis and boot-time problem debugging when DTrace and other frameworks may be harder to use. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* bhyve: Handle snapshots of unconfigured virtio-net devicesVitaliy Gusev2022-10-231-1/+3
| | | | | | | | | | | In case of device reset or not configured - features_negotiated is not set, calling calling pci_vtnet_neg_features is wrong and resume gets "Segmentation fault". Reviewed by: markj Sponsored by: vStack MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D36244
* time(3): Fix spelling.Hans Petter Selasky2022-10-231-2/+2
| | | | | | Noted by: Gary Jennejohn <garyj@gmx.de> MFC after: 1 week Sponsored by: NVIDIA Networking
* bhyve: Annotate an unused function as suchMark Johnston2022-10-231-1/+1
| | | | | | No functional change intended. MFC after: 1 week
* bhyve: Make hda_ops function tables constMark Johnston2022-10-233-6/+6
| | | | | | No functional change intended. MFC after: 1 week
* bhyve: Put the prototype for vga_render() in a headerMark Johnston2022-10-232-3/+2
| | | | | | No functional change intended. MFC after: 1 week
* bhyve: Put the prototype for vmexit_task_switch() in a headerMark Johnston2022-10-232-2/+5
| | | | | | No functional change intended. MFC after: 1 week
* bhyve: Fix some warnings in the snapshot codeMark Johnston2022-10-232-18/+19
| | | | | | | | | | | | - Qualify unexported symbols with "static". - Drop some unnecessary and incorrect casts. - Avoid arithmetic on void pointers. - Avoid signed/unsigned comparisons in loops which use nitems() as a bound. No functional change intended. MFC after: 1 week
* bhyve: Avoid arithmetic on void pointersMark Johnston2022-10-2310-37/+40
| | | | | | No functional change intended. MFC after: 1 week
* bhyve: USB device model structures can be qualified with "static"Mark Johnston2022-10-231-2/+2
| | | | | | No functional change intended. MFC after: 1 week
* bhyve: Use the proper type for string literalsMark Johnston2022-10-232-2/+2
| | | | | | No functional change intended. MFC after: 1 week
* bhyve: Fix some warnings in the ps2 emulation codeMark Johnston2022-10-232-60/+63
| | | | | | | | | | | | - Include headers containing prototypes for exported functions. - Initialize all fields of the extended translation table. - Qualify an unexported translation table as static. - Fix error handling for a read(2). - Fix some style bugs. No functional change intended. MFC after: 1 week
* bhyve: Address some warnings in bhyverun.cMark Johnston2022-10-231-5/+5
| | | | | | | | | - Annotate unused parameters as such. - Avoid shadowing the global "vmexit". No functional change intended. MFC after: 1 week
* acpi: Create cppc_notify sysctl before it is checkedTom Jones2022-10-231-8/+8
| | | | | | Reported by: Henrix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D37081
* time(3): Optimize tvtohz() function.Hans Petter Selasky2022-10-233-46/+70
| | | | | | | | | | | | | List of changes: - Use integer multiplication instead of long multiplication, because the result is an integer. - Remove multiple if-statements and predict new if-statements. - Rename local variable name, "ticks" into "retval" to avoid shadowing the system "ticks" global variable. Reviewed by: kib@ and imp@ MFC after: 1 week Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D36859
* time(3): Declare the minimum and maximum hz values supported.Hans Petter Selasky2022-10-232-0/+18
| | | | | | | Reviewed by: kib@ and imp@ MFC after: 1 week Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D37072
* stand/efi: Call md_copymodules based on __LP64__ to fix 32-bit armWarner Losh2022-10-231-2/+8
| | | | | | | | | | | | | When I refactored everything, I neglected to pass in the proper is64 value on 32-bit platforms. This corrects that. This prevented armv7 and armv6 platforms from booting due to misaligned data in the kernel. The only platform we support 32-bit booting in armv[67], which I apparently neglected to test before commiting my refactoring. Tested by: skibo Fixes: 5d1531d9d4e7d Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37095
* stand/kboot: hostdisk isn't a DEVT_DISK, use a different value.Warner Losh2022-10-232-4/+12
| | | | | | | | | | | | We assume in all the code that a DEVT_DISK uses common/disk.c and/or common/part.c and we can access a struct disk_devdesc. hostdisk.c opens raw devices directly, so has no such structures. Define a kboot-specific DEVT_HOSTDISK and use that instead. In addition, disk_fmtdev assumes it is working with a struct disk_devdesc, so write hostdisk_fmtdev as well. Sponsored by: Netflix
* geli: Move check for DEVT_DISK into geli_probe_and_attachWarner Losh2022-10-232-3/+4
| | | | | | | We only work on DEVT_DISK disks, so move that into the probe to drive the point home better. Sponsored by: Netflix
* LinuxKPI: 802.11: add changes to support debugfs in iwlwifiBjoern A. Zeeb2022-10-221-11/+22
| | | | | | | | Add new fields (also have to move a struct up, no changes there) in order to make iwlwifi debugfs support compile. Sposnored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: prepare to support debugfsBjoern A. Zeeb2022-10-227-6/+870
| | | | | | | | | | | | | Import two files left out initially from the driver needed for debugfs support [1]. Adjust the driver further to make it compile on FreeBSD. This is currently turned off and needs more LinuxKPI/lindebugfs work. Being in the tree will allow us to collaboratively work on it and then we can enable it for good. Obtained from: Linux wireless-testing (tag: wt-2022-10-19) [1] 2c9078b9abcb884e27360340aaa7dfd4c0de29b3 Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi: constify another argument of iwl_print_hex_dump()Bjoern A. Zeeb2022-10-222-0/+8
| | | | | | | | This is needed when enabling debugfs as it passes a const in which would otherwise be dropped. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* sh: when loading profile, read only .sh files.Dag-Erling Smørgrav2022-10-221-8/+3
| | | | | | | | Reviewers: jilles, eugen_grosbein.net, cy Subscribers: imp Differential Revision: https://reviews.freebsd.org/D37034
* linprocfs: Add net/route.John Grafton2022-10-222-1/+80
| | | | | | | PR: 266482 Reviewed by: melifaro, me Differential revision: https://reviews.freebsd.org/D36949 MFC after: 1 week
* x86/busdma: Limit reserved pages if low nsegsColin Percival2022-10-221-0/+1
| | | | | | | | | | | | | | | | | | | When bus_dmamap_create is called, if bouncing might be required we reserve enough pages for a maximum-length request, subject to the MAX_BPAGES constraint (32 MB on amd64; 32 MB or 2 MB on i386 depending on the amount of RAM). Since pages used for bouncing are typically non-consecutive, each bounced page will typically constitute a busdma segment; as such, we are unlikely to ever successfully use more pages than the nsegments limit. Limit the number of pages reserved to nsegments. On FreeBSD/Firecracker, this reduces bounce page memory consumption from 32 MB to 512 kB, making VMs with 128 MB of RAM usable. Reviewed by: imp, mav Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D37082
* rtld: remove unused macro FPTR_TARGETKonstantin Belousov2022-10-221-4/+0
| | | | | | | It is a remnant from the ia64 removal Sponsored by: The FreeBSD Foundation MFC after: 3 days
* ctld: if adding a target fails, retry it on the next reloadAlan Somers2022-10-221-1/+3
| | | | | | | | | | | | | | | | | | If the admin creates more CTL ports than kern.cam.ctl.max_ports, then adding some will fail. If he then removes some ports and does "service ctld reload", he would expect that the new ports would get added in the newly-freed port space. But they don't, because ctld assigned them port numbers during their first creation attempts. Fix this bug by removing newly created ports from ctld's internal list if the kernel rejects them for any reason. That way, a subsequent config reload will attempt to add them again, possibly with new port numbers. MFC after: 2 weeks Sponsored by: Axcient Reviewed by: jhb, mav Differential Revision: https://reviews.freebsd.org/D36974
* stabd/geli: Bail out if you can't get the disks sizeWarner Losh2022-10-211-1/+2
| | | | | | | | If the DIOCGMEDIASIZE ioctl fails, assume the disk doesn't have geli encryption. While all disks should implement this, fail safe for disks / partitions that do not. Sponsored by: Netflix
* Increase the maximum size of the journaled soft-updates journal.Kirk McKusick2022-10-212-2/+0
| | | | | | | | | | | | | | The size of the journaled soft-updates journal should be big enough to hold two minutes of filesystem metadata-update activity. The maximum size of the soft updates journal was set in the 1990s. At the time it was assummed that disk arrays would top out at 16 drives and disk writes per drive would top out at 500 per second. Today's I/O subsystems are considerably bigger and faster than those limits. Thus this delta removes the hard upper limit and lets tunefs(8) and newfs(8) set the upper bound based on the size of the filesystem and its cylinder groups. Sponsored by: The FreeBSD Foundation
* Add a description of soft updates journaling to newfs(8).Kirk McKusick2022-10-211-1/+41
| | | | | | | | | | Add a descrition to the newfs(8) -j (journal enablement) flag that explains what soft updates journaling does, the tradeoffs to using it, and the limitations that it imposes. Copied from the description in tunefs(8). PR: 261944 Sponsored by: The FreeBSD Foundation
* w: cosmetic fixes.Dag-Erling Smørgrav2022-10-212-27/+26
| | | | Sponsored by: Klara, Inc.
* arm64: Hyper-V: fix a commit error caused duplicated lines in vmbus_aarch64.cWei Hu2022-10-211-157/+0
| | | | | | | | Remove those duplicated lines. Reported by: Souradeep Chakrabarti <schakrabarti@microsoft.com> Fixes: 6cf00ef80c20148 Sponsored by: Microsoft
* arm64: Hyper-V: enablement for ARM64 in Hyper-V (Part 2)Souradeep Chakrabarti2022-10-214-0/+670
| | | | | | | | | | | This is the second part of the ARM64 Hyper-V enablement. These changes here are mostly with Make, release changes and also changes required in vmbus.c hyperv.c and common files in hyperv. Reviewed by: whu Tested by: Souradeep Chakrabarti <schakrabarti@microsoft.com> Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D36467