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
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
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
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
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
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
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
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]
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
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]
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
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
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]
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)
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)
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)
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)
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)
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)
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)