FreeBSD/src b5739c8sys/netinet/tcp_stacks rack_bbr_common.c

TCP RACK, BBR: ensure return value is always ininitialized

Do not return an uninitialized value from ctf_do_queued_segments()
in case no packets are actually processed (all are skipped).

Reviewed by:            rrs
CID:                    1523774
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48217
DeltaFile
+1-1sys/netinet/tcp_stacks/rack_bbr_common.c
+1-11 files

FreeBSD/src 16e8e99sys/netinet/tcp_stacks rack.c

TCP RACK: remove redundant check

No functional change intended.

Reviewed by:            rrs
CID:                    1523811
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48216
DeltaFile
+1-1sys/netinet/tcp_stacks/rack.c
+1-11 files

FreeBSD/src 895347fsys/netinet/tcp_stacks bbr.c

TCP BBR: remove assignments without effect

No functional change intended.

Reviewed by:            rrs
CID:                    1523772
CID:                    1523777
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48215
DeltaFile
+1-3sys/netinet/tcp_stacks/bbr.c
+1-31 files

FreeBSD/src a314c60sbin/mount mount.c

mount(8): Avoid truncation when fstab-formatting unionfs mount info

When displaying unionfs mounts in fstab format (`mount -p`), mount(8)
currently uses strlcpy to remove the disposition prefix from the mount
name returned by getmntinfo(3).  But strlcpy, like strcpy before it,
does not guarantee correct behavior if the source and destination
buffers overlap.

Just offset the buffer and avoid the destructive copy in the first
place.

PR:             283420
Reviewed by:    imp (previous version), olce
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D48177
DeltaFile
+8-8sbin/mount/mount.c
+8-81 files

FreeBSD/src 788e1ebusr.sbin/makefs cd9660.c

makefs: Remove impossible if condition

This test is inside the else block for `if (*oldname == '.')`, so
*oldname cannot be '.' here.

Reviewed by:    kevans
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48243
DeltaFile
+1-5usr.sbin/makefs/cd9660.c
+1-51 files

FreeBSD/src 6ba2a08sbin/ping ping.8

ping.8: typo fix, indentifying -> identifying
DeltaFile
+1-1sbin/ping/ping.8
+1-11 files

FreeBSD/src 9ba7351include/ssp ssp.h

ssp: Make ssp.h more self-contained

Include a header to provide __size_t.

Fixes:  c10d567ea022 ("include: de-macro __ssp_overlap(), improve semantics and checking")
PR:             283653
Reviewed by:    kevans, imp
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D48226
DeltaFile
+1-0include/ssp/ssp.h
+1-01 files

FreeBSD/src b313229sys/dev/pci pci_host_generic.c pci_host_generic.h

pci: avoid accidental clobbering of regs on some fdt platforms

Most pci controllers will just have a single reg for the config space,
but others (e.g., on Apple Silicon) may have more following that to
describe, e.g., controller port space.  Bump the "ranges" rid space up
to avoid overriding these other memory resources.

Reviewed by:    jhb
Differential Revision:  https://reviews.freebsd.org/D43921
DeltaFile
+17-5sys/dev/pci/pci_host_generic.c
+1-0sys/dev/pci/pci_host_generic.h
+1-0sys/dev/pci/pci_host_generic_acpi.c
+1-0sys/dev/pci/pci_host_generic_fdt.c
+20-54 files

FreeBSD/src 14d370csbin/ping ping.c

ping: remove a stray tab

Reviewed by: imp

Differential Revision: https://reviews.freebsd.org/D48233
DeltaFile
+1-1sbin/ping/ping.c
+1-11 files

FreeBSD/src 8408510sbin/ping ping.c

ping: adjust error messages and comments for -gGh flags

The -gGh flags are used for sweep ping to specify minimal,
maximum and increment sizes for the ICMP payload, not the packet
size.  Adjust the error messages and comments accordingly.

Reviewed by:    glebius

Differential Revision: https://reviews.freebsd.org/D48232
DeltaFile
+9-9sbin/ping/ping.c
+9-91 files

FreeBSD/src 39d3c81sbin/ping ping.c

ping: correct minimal payload size for the sweep ping

The -g flag specifies a minimal payload size for the sweep ping
and its default is zero.  Make it possible to do ping -g 0 ...,
i.e., start with no payload.

Reviewed by:    glebius

Differential Revision: https://reviews.freebsd.org/D48231
DeltaFile
+1-1sbin/ping/ping.c
+1-11 files

FreeBSD/src 295934eusr.sbin/mountd exports.5

exports.5: Document the current behavior of -alldirs

Commit 07cd69e272da adds a new "-a" mountd option,
which changes the behavior of mountd when file systems
are exported via -alldirs.

This patch updates the man page to reflect the actual
behavior when -alldirs is used when mountd is started
with/without -a.  Prior to the above commit, exports(5)
documented that, when -alldirs was specified, the exports
line would fail unless the directory was a server file
system mount point.  This behavior was only documented
in the Examples section and has not been implemented
since a change between FreeBSD 1 and FreeBSD 2 was done.

This is a contents change.

PR:     282995
Reviewed by:    markj

    [2 lines not shown]
DeltaFile
+19-4usr.sbin/mountd/exports.5
+19-41 files

FreeBSD/src 6db916dusr.sbin/mountd mountd.8

mound.8: Document the new -a command line option

Commit 07cd69e272da adds a new "-a" mountd option.

This patch updates the man page for it.

This is a content change.

PR:     282995
Reviewed by:    gbe (manpages)
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D48138
DeltaFile
+15-3usr.sbin/mountd/mountd.8
+15-31 files

FreeBSD/src 07cd69eusr.sbin/mountd mountd.c

mountd.c: Define a new -a command line option

Bugzilla PR#282995 reported that, when a file system was
exported with the "-alldirs" flag, the export succeeded even
if the directory path was not a server file system mount point.

This behaviour for "-alldirs" was only documented in the
Example section of exports(5) and had not been enforced
since FreeBSD2. (A patch applied between FreeBSD1 and
FreeBSD2 broke the check for file system mount point.)

Since the behaviour of allowing the export has existed since
FreeBSD2, the concensus on a mailing list was that it would
be a POLA violation to change it now.
Therefore, this patch adds a new "-a" mountd command line
option to enforce a check for the exported directory being a
server file system mount point.

PR:     282995

    [2 lines not shown]
DeltaFile
+33-18usr.sbin/mountd/mountd.c
+33-181 files

FreeBSD/src caab831lib/libgcc_s/arm Symbol.map

Export additional __aeabi_ symbols from arm's libgcc_s

Some programs depend on these symbols, when they are compiled for armv6
or armv7. Closes #1560 (slightly changed due to sorting of the symbols).

PR:             271087
Reported by:    fuz
Submitted by:   jfc at mit.edu
MFC after:      1 week
DeltaFile
+26-1lib/libgcc_s/arm/Symbol.map
+26-11 files

FreeBSD/src 792e47asys/dev/ocs_fc ocs_cam.c

ocs_fc: print instance_index value rather than pointer itself in ocs_cam.c

In function ocs_scsi_recv_tmf, print instance_index rather than
the pointer itself to avoid printing out kernel pointer to user space.

PR: 238659
Signed-off-by: Fuqian Huang <huangfq.daxian at gmail.com>
Reviewed-by: imp
DeltaFile
+2-2sys/dev/ocs_fc/ocs_cam.c
+2-21 files

FreeBSD/src 225c5e5sys/dev/nvmf/controller ctl_frontend_nvmf.c

nvmft: Fix typo in error message if an I/O queue fails to handoff

Sponsored by:   Chelsio Communications
DeltaFile
+1-1sys/dev/nvmf/controller/ctl_frontend_nvmf.c
+1-11 files

FreeBSD/src 8a0aec9share/man/man4 uart.4

uart.4: describe better + spdx

+ add `serial` to description (search keywords)
+ remove redundant `(UART)`, `for`, and `device`
+ description is now one line on standard cons.

MFC after:      3 days
Reviewed by:    imp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1531

(cherry picked from commit db512bb30314326a0b2cfad3f9094dd830744777)
DeltaFile
+4-2share/man/man4/uart.4
+4-21 files

FreeBSD/src a3ce161share/man/man4 u3g.4

u3g.4: Fall cleaning

Many people come on our social spaces asking about router projects,
can't find info about supported cellular modems, and say they're
sticking to $other_OS. Thanks to the fantastic talk by Ian from
Metify, I now know that is not true, we have them and they work great.

Therefore, tell everyone else by massaging this page for
discoverability in the manual and the release hardware notes.

+ Document description: s/datacards/cellular modems/ for apropos search
+ HARDWARE: s/adapters/cellular modems/ for release hardware notes
+ move things which shouldn't be in Rel HW notes to description
+ massage things around for readability and flow + tag spdx
+ xref supported connections

MFC after:      3 days
Reported by:    allanjude (u3g can also provide GPS port)
Reported by:    Jared Trout <jaredtrout at google.com> (cellular in title)

    [6 lines not shown]
DeltaFile
+37-29share/man/man4/u3g.4
+37-291 files

FreeBSD/src e4520bcsbin/nvmecontrol format.c

nvmecontrol: Fix minor usage typo

PR:             282930
MFC after:      3 days
Reported by:    Gian-Simon Purkert <gspurki at gmail.com>
Reviewed by:    imp, jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D47726

(cherry picked from commit e7aec3ccf759dcd3fe56ae2bdbec92839c166160)
DeltaFile
+1-1sbin/nvmecontrol/format.c
+1-11 files

FreeBSD/src 1a2d8c4sbin/nvmecontrol format.c

nvmecontrol: Fix minor usage typo

PR:             282930
MFC after:      3 days
Reported by:    Gian-Simon Purkert <gspurki at gmail.com>
Reviewed by:    imp, jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D47726

(cherry picked from commit e7aec3ccf759dcd3fe56ae2bdbec92839c166160)
DeltaFile
+1-1sbin/nvmecontrol/format.c
+1-11 files

FreeBSD/src 317cf8ausr.bin/tip/tip cu.1

cu.1: describe better + tag spdx

Preserve over 40 years of "call UNIX" BSD heritage
while answering "one line about what it does" e.g.

"how do I get a serial console?"
"% apropos serial"

MFC after:      3 days
Reported by:    imp

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1423

(cherry picked from commit 4d12c7b9df660b15580ff3b07ef5570d1cab958a)
DeltaFile
+4-1usr.bin/tip/tip/cu.1
+4-11 files

FreeBSD/src 267717cusr.bin/tip/tip cu.1

cu.1: describe better + tag spdx

Preserve over 40 years of "call UNIX" BSD heritage
while answering "one line about what it does" e.g.

"how do I get a serial console?"
"% apropos serial"

MFC after:      3 days
Reported by:    imp

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1423

(cherry picked from commit 4d12c7b9df660b15580ff3b07ef5570d1cab958a)
DeltaFile
+4-1usr.bin/tip/tip/cu.1
+4-11 files

FreeBSD/src daa4c9fbin/sh sh.1

sh.1: update history + spdx + linter error

+ increase history consistency by adding "first appeared"
+ remove a skipped new paragraph macro to quiet linter
+ tag spdx

MFC after:      3 days
History source: www.in-ulm.de/~mascheck/various/ash/#bsd

Reviewed by: mhorne,imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1440

(cherry picked from commit e2a72442bd57c1373c30fab945fbfc86464f3782)
DeltaFile
+5-2bin/sh/sh.1
+5-21 files

FreeBSD/src 6a03eb1bin/sh sh.1

sh.1: update history + spdx + linter error

+ increase history consistency by adding "first appeared"
+ remove a skipped new paragraph macro to quiet linter
+ tag spdx

MFC after:      3 days
History source: www.in-ulm.de/~mascheck/various/ash/#bsd

Reviewed by: mhorne,imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1440

(cherry picked from commit e2a72442bd57c1373c30fab945fbfc86464f3782)
DeltaFile
+5-2bin/sh/sh.1
+5-21 files

FreeBSD/src 32b84f8share/man/man4 vt.4

vt.4: document kern.consmute

MFC after:      3 days

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1521

(cherry picked from commit fb91b9858080143b56ba637ab3c8954f3f94694a)
DeltaFile
+3-0share/man/man4/vt.4
+3-01 files

FreeBSD/src 840ca63share/man/man4 vt.4

vt.4: document kern.consmute

MFC after:      3 days

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1521

(cherry picked from commit fb91b9858080143b56ba637ab3c8954f3f94694a)
DeltaFile
+3-0share/man/man4/vt.4
+3-01 files

FreeBSD/src c2623a7usr.sbin/acpi/acpidump acpi_user.c

acpidump: Move to acpi.rsdp

Switch from the long obsolete hint.0.acpi.rsdp to acpi.rsdp to get the
root of the ACPI tables.

MFC After:              1 week
Sponsored by:           Netflix
Reviewed by:            andrew, markj
Differential Revision:  https://reviews.freebsd.org/D47079

(cherry picked from commit 5d3fb72667e5794bf16756e00a87338f4acb7f90)
DeltaFile
+2-2usr.sbin/acpi/acpidump/acpi_user.c
+2-21 files

FreeBSD/src 0601bbbusr.sbin/acpi/acpidump acpi_user.c

acpidump: Move to acpi.rsdp

Switch from the long obsolete hint.0.acpi.rsdp to acpi.rsdp to get the
root of the ACPI tables.

MFC After:              1 week
Sponsored by:           Netflix
Reviewed by:            andrew, markj
Differential Revision:  https://reviews.freebsd.org/D47079

(cherry picked from commit 5d3fb72667e5794bf16756e00a87338f4acb7f90)
DeltaFile
+2-2usr.sbin/acpi/acpidump/acpi_user.c
+2-21 files

FreeBSD/src f6222e8sys/compat/linux linux.h

linux.h: don't redefine lower_32_bits if already defined

systrace.c fails to build if we're using a common compiler.h for both
openzfs and linuxkpi. The issue is easy enough to fix: don't redefined
lower_32_bits if it's already defined in linux.h, since it's the least
'standardized'. This will allow systrace.c to build using an equivalent
macro.

MFC After: 3 days
Sponsored by: Netflix

(cherry picked from commit 481d5a4891648f0a6979a48689cc16fca80d4ab6)
DeltaFile
+2-0sys/compat/linux/linux.h
+2-01 files