aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* linprocfs: Add support for proc/sysvipc/{msg,sem,shm}HEADmainRicardo Branco26 min.1-0/+182
| | | | | | Signed-off-by: Ricardo Branco <rbranco@suse.de> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1218
* usb: Remove uneeded revision verbosity from quirks listAhmad Khalifa30 min.1-434/+382
| | | | | | | | | | | | Seperate usb quirks that target specific revisions from those that dont. Alot of the quirks dont use lo_rev and hi_rev, so we can abstract the 0x0000, 0xffff into a macro. [[ This commit is a bit more churn than we like. I carefully reviewed each one and they are all good. The end product is better -- imp ]] Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1153
* usb: Fix quirks listAhmad Khalifa31 min.2-27/+19
| | | | | | | | | | | In some cases, the USB_QUIRK_VP macro was being misused. Instead of setting quirks to the intended value, the first two supplied quirks would go into lo_rev and hi_rev. Replace it with USB_QUIRK_VO which only takes the needed args. This also makes the Dummy products, which where being used to correctly set vendor only quirks, not necessary. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1153
* /bin/rmdir: Exit with status 2 for invalid argumentsHenrich Hartzer50 min.3-11/+12
| | | | | | | | PR: 277677 Signed-off-by: Henrich Hartzer <henrichhartzer@tuta.io> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1161
* nvmecontrol: Appease a meaningless signed error warning thingWarner Losh60 min.1-2/+2
| | | | | | | | | Consistently use the weird ssize_t type for things I know are unsigned, but which none-the-less need to be compared to signed things to prevent a bogus warning. Sigh, these aren't bugs, can't possibly be bugs and a waste of time to fix. Sponsored by: Netflix
* stand: Spell LUA_COMPILE_SET correctly.Warner Losh114 min.1-1/+1
| | | | | MFC After: 2 days Sponsored by: Netflix
* nvmecontrol: Implement telemetry-log command.Warner Losh114 min.3-1/+200
| | | | | | | | | | This produces the same data as the Linux nvme-cli 'nvme telemetry-log' command. It extracts the telemetry log from drive. This is a variable length log, so we read the first page and find out how much of the log to grab. There's 3 levels of details available, and we grab the level of detail specified on the command line. Sponsored by: Netflix
* nvme: Add telemetry page definitionsWarner Losh114 min.1-0/+24
| | | | | | | | | Add definition for page types 7 and 8 for host initiated telemetry and controller initiated telemetry (they differ by one byte, but that byte that's defined in the host version is reserved in the controller version). Sponsored by: Netflix
* tcp rack: improve handling of front statesMichael Tuexen6 hours1-1/+2
| | | | | | | | | | | When the RACK stack wants to send a FIN, but still has outstanding or unsent data, it sends a challenge ack. Don't do this when the TCP endpoint is still in the front states, since it does not make sense. Reviewed by: rrs MFC after: 3 days Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D45122
* arm64: add page-to-pte convenience macrosDoug Moore14 hours1-59/+48
| | | | | | | | | Define macros to perform pte to vm_page and vm_page to pte conversions without composing two macros, and use the convenience macros wherever possible. Reviewed by: alc Differential Revision: https://reviews.freebsd.org/D44699
* intr: Document how to get the interrupt frameWarner Losh22 hours1-1/+4
| | | | | | | | | | Document that the only way to get the interrupt thread is to use curthread->td_intr_frame, rather than the old-style of having a NULL pointer for the interrupt thread. As of 38c35248fe3b, support for that has been removed. I neglected to update that commit message with these details. Suggested by: mhorne
* kern/intr: remove support for passing trap frame as argumentElliott Mitchell22 hours1-11/+4
| | | | | | | | | | | While otherwise a handy potential approach, getting the trap frame via the argument isn't documented and isn't supposed to be used. With all uses removed, now remove support to end the mixed calling conventions. Differential Revision: https://reviews.freebsd.org/D37688 Reviewed by: imp, mhorne Pull Request: https://github.com/freebsd/freebsd-src/pull/1225
* unbound: Vendor import 1.20.0Cy Schubert23 hours107-13292/+52806
|\ | | | | | | | | | | | | | | | | Release notes at https://www.nlnetlabs.nl/news/2024/May/08/unbound-1.20.0-released/ Security: The DNSBomb vulnerability CVE-2024-33655 Merge commit 'c2a80056864d6eda0398fd127dc0ae515b39752b' into main
| * unbound: Vendor import 1.20.0vendor/unbound/1.20.0vendor/unboundCy Schubert23 hours128-13307/+53415
| | | | | | | | | | | | | | Release notes at https://www.nlnetlabs.nl/news/2024/May/08/unbound-1.20.0-released/ Security: The DNSBomb vulnerability CVE-2024-33655
* | tftpd: silence gcc overflow warningsDag-Erling Smørgrav23 hours1-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GCC 13 complains that we might be writing too much to an on-stack buffer when createing a filename. In practice there is a check that filename isn't too long given the time format and other static characters so GCC is incorrect, but GCC isn't wrong that we're potentially trying to put a MAXPATHLEN length string + some other characters into a MAXPATHLEN buffer (if you ignore the check GCC can't realistically evaluate at compile time). Switch to snprintf to populate filename to ensure that future logic errors don't result in a stack overflow. Shorten the questionably named yyyymmdd buffer enough to slience the warning (checking the snprintf return value isn't sufficent) while preserving maximum flexibility for admins who use the -F option. MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D45086
* | tftpd: Satisfy clang-analyzer.Dag-Erling Smørgrav23 hours4-16/+12
| | | | | | | | | | | | | | | | | | | | | | * Replace `random()` with `arc4random()`. * Change some variable types. * Drop some unused assignments. MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: imp, markj Differential Revision: https://reviews.freebsd.org/D45132
* | tftpd: Add missing include.Dag-Erling Smørgrav23 hours1-0/+1
| | | | | | | | | | | | | | | | | | This went unnoticed due to namespace pollution in our headers. MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D45131
* | tftpd: Drop unneeded includes.Dag-Erling Smørgrav23 hours5-5/+0
| | | | | | | | | | | | | | MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: imp, markj Differential Revision: https://reviews.freebsd.org/D45130
* | tftpd: Add missing `-S` option to synopsis.Dag-Erling Smørgrav23 hours1-3/+3
| | | | | | | | | | | | | | MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: imp, markj Differential Revision: https://reviews.freebsd.org/D45129
* | CONTRIBUTING.md/style: spring cleaningAlexander Ziaee23 hours1-7/+9
| | | | | | | | | | | | | | | | + move Lua to alphabetize subsections + word manpages like other subsections + man PR's shouldn't bump document date MFC after: (maybe MFC to BETA3 along w/ e7ff917057ea ?)
* | linux: Adjust rlimit SIGPENDING & MSGQUEUE behaviour to match linprocfsRicardo Branco23 hours1-6/+23
| | | | | | | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1227
* | vm: Change the return types of kernacc and useracc to boolJohn Baldwin23 hours2-6/+6
| | | | | | | | | | Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45156
* | uio: Use switch statements when handling UIO_READ vs UIO_WRITEJohn Baldwin23 hours16-61/+174
| | | | | | | | | | | | | | | | | | | | This is mostly to reduce the diff with CheriBSD which adds additional constants to enum uio_rw, but also matches the normal style used for uio_segflg. Reviewed by: kib, emaste Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D45142
* | md: Merge two switch statements in mdstart_vnodeJohn Baldwin23 hours1-24/+20
| | | | | | | | | | | | | | | | While here, use bp->bio_cmd instead of auio.uio_rw to drive read vs write behavior. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45155
* | sctp: improve heartbeat timer computationMichael Tuexen25 hours1-10/+10
| | | | | | | | | | | | | | PR: 278666 Reviewed by: Albin Hellqvist MFC after: 3 days Pull Request: https://reviews.freebsd.org/D45107
* | Revert "grdc: Add copyright"Warner Losh24 hours2-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out this wasn't in 4.4BSD. I had a false positive for gdc.c (which is in 4.4BSD, but part of gated, not this). gdc.c comes from the ncurses tests, so it shouldn't have this copyright. This version is mostly Amos Shapir and John Lupien's code. It comes from ncurses test directory. ncurses has made dozens of improvements to this file since we imported it in 1997 (which pre-dates their online history), so it's not clear if their new copyright applies (which doesn't mention Amos or John) or if some other copyright applies. In any case, it wasn't 4.4BSD, so revert this. This reverts commit 6ed7d0e3ac9c34fa9deeb73f2322b9f25b708788. Sponsored by: Netflix
* | sctp: store heartbeat creation time as time_tMichael Tuexen25 hours2-2/+2
| | | | | | | | | | | | Reported by: Coverity Scan CID: 1493087 MFC after: 3 days
* | sctp: store vtag expire time as time_tMichael Tuexen26 hours2-7/+7
| | | | | | | | | | | | | | Reported by: Coverity Scan CID: 1492525 CID: 1493239 MFC after: 3 days
* | Increase IOAPIC_MAX_ID to 255 (from 254)Ed Maste24 hours1-1/+6
| | | | | | | | | | | | | | | | | | | | A test system provided by AMD panicked with "madt_parse_apics: I/O APIC ID 255 too high". I/O APIC ID 255 is acceptable, so increase the limit. Reviewed by: jhb, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45157
* | sctp: store cookie secret change time as time_tMichael Tuexen26 hours4-6/+6
| | | | | | | | | | | | | | Reported by: Coverity Scan CID: 1492349 CID: 1493281 MFC after: 3 days
* | madt: print CPU APIC ID as signed intEd Maste25 hours1-2/+2
| | | | | | | | | | | | | | | | | | | | Instead of printing something like "MADT: Found CPU APIC ID 4294967295 ACPI ID 512: disabled" print the APIC ID as a singed int for a more user-friendly -1. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45158
* | kmod.mk use ${XARGS}Simon J. Gerraty25 hours1-2/+4
| | | | | | | | | | | | | | | | Also ${XARGS_J} this allows use of non-BSD xargs when building kernel modules. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D45146
* | nvmf_transport: Remove invalid assertionJohn Baldwin28 hours1-2/+0
| | | | | | | | | | | | | | | | | | | | This is leftover from an earlier iteration of the code where 'nt' was not dynamically allocated but was the passed in 'ops' pointer so was always alive. Reported by: Coverity Scan CID: 1545042 Sponsored by: Chelsio Communications
* | ctl_backend_block: Correct value of NVME nsdata nuse fieldJohn Baldwin28 hours1-1/+1
| | | | | | | | | | | | Reported by: Coverity Scan CID: 1545043 Sponsored by: Chelsio Communications
* | nvmecontrol: Free the addrinfo list when failing to open a TCP socketJohn Baldwin28 hours1-0/+1
| | | | | | | | | | | | Reported by: Coverity Scan CID: 1545048 Sponsored by: Chelsio Communications
* | nvmecontrol: Free array of I/O queue pairs on failure to handoffJohn Baldwin28 hours2-2/+8
| | | | | | | | | | | | | | | | This is harmless but cleaner. Reported by: Coverity Scan CID: 1545041,1545049 Sponsored by: Chelsio Communications
* | nvmf: Use strlcpy instead of strncpy to ensure terminationJohn Baldwin28 hours1-1/+1
| | | | | | | | | | | | Reported by: Coverity Scan CID: 1545054 Sponsored by: Chelsio Communications
* | nvmecontrol: Fix a sizeof mismatchJohn Baldwin28 hours1-1/+1
| | | | | | | | | | | | | | | | | | In this case it is harmless since it is an array of pointers so the resulting length is identical. Reported by: Coverity Scan CID: 1545055 Sponsored by: Chelsio Communications
* | grdc: Add copyrightWarner Losh29 hours2-0/+12
| | | | | | | | | | | | | | Add the stock BSD copyright and license from the 4.4-Lite distribution (indirected by SPDX). Sponsored by: Netflix
* | grdc: add countdown timer modeGavin Atkinson29 hours2-31/+71
| | | | | | | | | | PR: 35113 Differential Revision: https://reviews.freebsd.org/D43463
* | posix: POSIX-1.2008 moved SA_* from XSI to base standardWarner Losh29 hours1-1/+1
| | | | | | | | | | | | | | | | | | Starting with POSIX-1.2008, "The SA_RESETHAND, SA_RESTART, SA_SIGINFO, SA_NOCLDWAIT, and SA_NODEFER constants are moved from the XSI option to the Base." Make them so visible. PR: 275328 Sponsored by: Netflix
* | conf: Generate fdt_static_dtb.h in OBJDIRJustin Hibbits25 hours1-1/+1
| | | | | | | | | | | | | | | | Though the kernel build expects ${.OBJDIR} to be equal to ${.CURDIR} that may not always be the case. Correctly generate fdt_static_dtb.h in ${.OBJDIR}, which is conceptually more correct anyway. Obtained from: Juniper Networks, Inc.
* | tpm20: Support partial readsJustin Hibbits25 hours4-3/+10
| | | | | | | | | | | | | | | | | | | | | | Summary: In some cases the TPM utilities may read only a partial block, instead of a full block. If a new command starts while in the middle of a read it may cause the TPM to go catatonic and no longer respond to SPI. Reviewed by: kd Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D45140
* | ukswitch: fix non-debug buildEd Maste31 hours1-2/+2
| | | | | | | | | | PR: 278847 Sponsored by: The FreeBSD Foundation
* | cat: Missed a couple.Dag-Erling Smørgrav33 hours1-3/+3
| | | | | | | | | | MFC after: 3 days Sponsored by: Klara, Inc.
* | cat: Check for lack of success rather than a specific failure.Dag-Erling Smørgrav33 hours1-5/+5
| | | | | | | | | | | | | | MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: oshogbo Differential Revision: https://reviews.freebsd.org/D45149
* | arm64: Update the page table list in locoreAndrew Turner35 hours1-3/+5
| | | | | | | | | | | | | | The comment describing the page tables was out of date. Update it with the current list. Sponsored by: Arm Ltd
* | arm64: Merge common page table creation codeAndrew Turner35 hours1-14/+14
| | | | | | | | | | Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45061
* | arm64/gicv3: Check if the hardware supports LPIsAndrew Turner35 hours3-0/+12
| | | | | | | | | | | | | | | | | | | | | | Some simulators have the ITS in the DTB passed to the kernel, however it is a runtime configuration option to enable it. Check the GICD_TYPER register to see if LPIs are enabled before attaching the ITS driver. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44914
* | dev/psci: Check all compat stringsAndrew Turner35 hours1-5/+11
| | | | | | | | | | | | | | | | | | When searching for the PSCI FDT node we only check a few compat strings. Use the existing compat_data array to check all strings the driver may attach to. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44913