]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
4 months agozfs: merge openzfs/zfs@a382e2119
Martin Matuska [Wed, 10 Jan 2024 08:07:45 +0000 (09:07 +0100)]
zfs: merge openzfs/zfs@a382e2119

Notable upstream pull request merges:
 #15693 a382e2119 Add Gotify notification support to ZED
 #15732 e78aca3b3 Fix livelist assertions for dedup and cloning
 #15733 7ecaa0758 make zdb_decompress_block check decompression reliably
 #15735 255741fc9 Improve block sizes checks during cloning

Obtained from: OpenZFS
OpenZFS commit: a382e21194c1690951d2eee8ebd98bc096f01c83

4 months agotcpsso: fix when used without -i option
Michael Tuexen [Wed, 10 Jan 2024 07:33:09 +0000 (08:33 +0100)]
tcpsso: fix when used without -i option

Since fdb987bebddf it is not possible anymore to use inp_next
iterator for bound, but unconnected sockets. This applies
to TCP listening sockets. Therefore the metioned commit broke
tcpsso on listening sockets if the -i option was not used.
Fix this by iterating through all endpoints instead of only
through the bound, but unconnected ones.

Reviewed by: markj
Fixes: fdb987bebddf ("inpcb: Split PCB hash tables")
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D43353

4 months agoHistory for arc4random_*()
David E. O'Brien [Sat, 6 Jan 2024 06:01:00 +0000 (22:01 -0800)]
History for arc4random_*()

4 months agotests/netlink: add minimal test for a group writer
Gleb Smirnoff [Wed, 10 Jan 2024 00:56:51 +0000 (16:56 -0800)]
tests/netlink: add minimal test for a group writer

Subscribe a socket for RTNLGRP_IPV4_ROUTE announcements, add & delete
a route and check that announcements came in.

4 months agopowerpc64/SYS.h: implement _SYSCALL_BODY() macro
Brooks Davis [Tue, 9 Jan 2024 19:37:42 +0000 (19:37 +0000)]
powerpc64/SYS.h: implement _SYSCALL_BODY() macro

Add _SYSCALL_BODY() macro which invokes the syscall via _SYCALL() and
calls cerror as required.  Use to implement PSEUDO() and RSYSCALL().

Reviewed by: jhibbits
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D43322

4 months agosocket_msg_trunc: allocate a large enough buffer
Brooks Davis [Tue, 9 Jan 2024 19:35:37 +0000 (19:35 +0000)]
socket_msg_trunc: allocate a large enough buffer

Allocate 9000 bytes to match the largest requsted size.  Add a check to
prevent the list of sizes and buffer size from getting out of sync
again.

Reviewed by: markj
Found with: CheriBSD
Differential Revision: https://reviews.freebsd.org/D43340

4 months agoigb(4): Remove disconnected SYSCTL
Marius Strobl [Tue, 9 Jan 2024 22:01:46 +0000 (23:01 +0100)]
igb(4): Remove disconnected SYSCTL

The global hw.igb.rx_process_limit knob never was adhered to by the
in-tree version of this driver but similar functionality is available
via the device-specific dev.igb.N.iflib.rx_budget.

While at it, remove the - besides initialization of tx_process_limit -
unused {r,t}x_process_limit members.

4 months agoe1000(4): Remove disconnected SYSCTL
Marius Strobl [Tue, 9 Jan 2024 21:41:49 +0000 (22:41 +0100)]
e1000(4): Remove disconnected SYSCTL

The global hw.em.rx_process_limit knob has been replaced by the device-
specific dev.IF.N.iflib.rx_budget along with the conversion to iflib(4).

While at it, remove the - besides initialization of tx_process_limit -
unused {r,t}x_process_limit members.

4 months agocxgbe(4): Use the correct size for the CIM LA on the T6.
Navdeep Parhar [Tue, 9 Jan 2024 21:22:16 +0000 (13:22 -0800)]
cxgbe(4): Use the correct size for the CIM LA on the T6.

The logic analyzer in the T6 CIM block has a different capture size than
previous chips.

MFC after: 1 week
Sponsored by: Chelsio Communications

4 months agoapei: Mark ReadAckRegister resource as shareable
Andrew Gallatin [Tue, 9 Jan 2024 20:52:07 +0000 (15:52 -0500)]
apei: Mark ReadAckRegister resource as shareable

Work around vendors who use the same address for multiple
ReadAckRegisters in their ACPI HEST table.  This
allows apei to attach cleanly on Ampere Altra servers.
Note the issue is not specific to Ampere, I've run into
it with at least one other vendor (whose server is not
yet released).

Sponsored by: Netflix
Reviewed by: jhb

4 months agonetlink: fix regression with group writers
Gleb Smirnoff [Tue, 9 Jan 2024 21:01:28 +0000 (13:01 -0800)]
netlink: fix regression with group writers

Refactoring of argument list to nl_send_one() led to derefercing
wrong union member.  Rename nl_send_one() to a more generic name,
isolate anew nl_send_one() as the callback only for the normal
writer and provide correct argument to nl_send() from nl_send_group().

Fixes: ff5ad900d2a0793659241eee96be53e6053b5081

4 months agopowerpc_mmu_radix: add leaf page for wired mappings when pmap_enter(psind=1)
Robert Wing [Tue, 9 Jan 2024 20:12:38 +0000 (11:12 -0900)]
powerpc_mmu_radix: add leaf page for wired mappings when pmap_enter(psind=1)

This applies the fix to powerpc's pmap as was done in commit aa3bcaad51076ceb
and d0941ed9b5c39d92 for amd64 and riscv pmaps, respectively.

Reported by:    Jenkins
Reviewed by: bojan.novkovic_fer.hr, markj
Fixes: e4078494f344bcba8709216bd601efa3dd05f6b3
Differential Revision: https://reviews.freebsd.org/D43339

4 months agoacpi: Only reserve resources enumerated via _CRS
John Baldwin [Tue, 9 Jan 2024 19:23:10 +0000 (11:23 -0800)]
acpi: Only reserve resources enumerated via _CRS

In particular, don't reserve resources added by drivers via other
means (e.g. acpi_bus_alloc_gas which calls bus_alloc_resource
right after adding the resource).

The intention of reserved resources is to ensure that a resource range
that a bus driver knows is assigned to a device is reserved by the
system even if no driver is attached to the device.  This prevents
other "wildcard" resource requests from conflicting with these
resources.  For ACPI, the only resources the bus driver knows about
for unattached devices are the resources returned from _CRS.  All of
these resources are already reserved now via acpi_reserve_resources
called from acpi_probe_children.

As such, remove the logic from acpi_set_resource to try to reserve
resources when they are set.  This permits RF_SHAREABLE to work with
acpi_bus_alloc_gas without requiring hacks like the current one for
CPU device resources in acpi_set_resource.

Reported by: gallatin (RF_SHAREABLE not working)
Diagnosed by: jrtc27

4 months agomemdesc: Helper function to construct mbuf chain backed by memdesc buffer
John Baldwin [Tue, 9 Jan 2024 19:05:03 +0000 (11:05 -0800)]
memdesc: Helper function to construct mbuf chain backed by memdesc buffer

memdesc_alloc_ext_mbufs constructs a chain of external (M_EXT or
M_EXTPG) mbufs backed by a data buffer described by a memory
descriptor.

Since memory descriptors are not an actual buffer just a description
of a buffer, the caller is required to supply a couple of helper
routines to manage allocation of the raw mbufs and associating them
with a reference to the underlying buffer.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D42933

4 months agosys: Use mbufq_empty instead of comparing mbufq_len against 0
John Baldwin [Tue, 9 Jan 2024 19:00:46 +0000 (11:00 -0800)]
sys: Use mbufq_empty instead of comparing mbufq_len against 0

Reviewed by: bz, emaste
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D43338

4 months agombuf: Add mbufq_empty
John Baldwin [Tue, 9 Jan 2024 19:00:19 +0000 (11:00 -0800)]
mbuf: Add mbufq_empty

Complement to the existing mbufq_full

Reviewed by: bz
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D43337

4 months agonet80211 amdpu: Simplify a few loops that drain an mbufq
John Baldwin [Tue, 9 Jan 2024 18:59:48 +0000 (10:59 -0800)]
net80211 amdpu: Simplify a few loops that drain an mbufq

These loops already handled a NULL return from mbufq_dequeue when the
queue was empty, so remove a redundant check of mbufq_len before
dequeueing.

Reviewed by: bz
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D43336

4 months agokldxref: Workaround incorrect PT_DYNAMIC in existing powerpc kernels
John Baldwin [Tue, 9 Jan 2024 18:57:48 +0000 (10:57 -0800)]
kldxref: Workaround incorrect PT_DYNAMIC in existing powerpc kernels

Existing powerpc kernels include additional sections beyond .dynamic
in the PT_DYNAMIC segment.  Relax the requirement for an exact size
match of the section and segment for PowerPC files as a workaround.

Reported by: jrtc27
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D43123

4 months agobsdinstall: Fix installation script splitting
Michael Gmelin [Sat, 6 Jan 2024 16:55:31 +0000 (17:55 +0100)]
bsdinstall: Fix installation script splitting

This allows writing setup scripts that contain lines starting with
"#!", e.g., a shebang when creating a shell script using cat:

    #!/bin/sh
    echo "Populate rc.local"
    cat >/etc/rc.local<<EOF
    #!/bin/sh
    echo booted | logger -s -t 'example'
    EOF

Prevent accidentally running a setup script left behind by a
previous invocation of bsdinstall.

Reviewed by: imp, jrtc27
Differential Revision: https://reviews.freebsd.org/D43350

4 months agoAdd Gotify notification support to ZED
gofaster [Tue, 9 Jan 2024 17:49:30 +0000 (12:49 -0500)]
Add Gotify notification support to ZED

This commit adds the zed_notify_gotify() function and hooks it
into zed_notify(). This will allow ZED to send notifications
to a self-hosted Gotify service, which can be received
on a desktop or mobile device. It is configured with ZED_GOTIFY_URL,
ZED_GOTIFY_APPTOKEN and ZED_GOTIFY_PRIORITY variables in zed.rc.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: gofaster <felix.gofaster@gmail.com>
Closes #15693

4 months agoFix livelist assertions for dedup and cloning
Alexander Motin [Tue, 9 Jan 2024 17:48:40 +0000 (12:48 -0500)]
Fix livelist assertions for dedup and cloning

Two block pointers in livelist pointing to the same location may
be caused not only by dedup, but also by block cloning. We should
not assert D bit set in them.

Two block pointers in livelist pointing to the same location may
have different logical birth time in case of dedup or cloning. We
should assert identical physical birth time instead.

Assert identical physical block size between pointers in addition
to checksum, since that is what checksums are calculated on.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15732

4 months agoImprove block sizes checks during cloning
Alexander Motin [Tue, 9 Jan 2024 17:46:43 +0000 (12:46 -0500)]
Improve block sizes checks during cloning

- Fail if source block is smaller than destination.  We can only
grow blocks, not shrink them.
 - Fail if we do not have full znode range lock.  In that case grow
is not even called.  We should improve zfs_rangelock_cb() somehow
to know when cloning needs to grow the block size unlike write.
 - Fail of we tried to resize, but failed.  There are many reasons
for it to fail that we can not predict at this level, so be ready
for them.  Unlike write, that may proceed after growth failure,
block cloning can't and must return error.

This fixes assertion inside dmu_brt_clone() when it sees different
number of blocks held in destination than it got block pointers.
Builds without ZFS_DEBUG returned EXDEV, so are not affected much.

Reviewed-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15724
Closes #15735

4 months agomake zdb_decompress_block check decompression reliably
Kent Ross [Tue, 9 Jan 2024 17:13:52 +0000 (09:13 -0800)]
make zdb_decompress_block check decompression reliably

This function decompresses to two buffers and then compares them to
check whether the (opaque) decompression process filled the whole
buffer. Previously it began with lbuf uninitialized and lbuf2 filled
with pseudorandom data. This neither guarantees that any bytes not
written by the compressor would be different, nor seems incredibly
sound otherwise!

After these changes, instead of filling one buffer with generated
pseudorandom data we overwrite each buffer with completely different
data. This should remove the possibility of low-probability failures,
as well as make the process simpler and cheaper.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Kent Ross <k@mad.cash>
Closes #15733

4 months agoasa: Rewrite to fix line termination issue.
Dag-Erling Smørgrav [Tue, 9 Jan 2024 14:09:41 +0000 (15:09 +0100)]
asa: Rewrite to fix line termination issue.

The standard is somewhat unclear, but on the balance, I believe that the
phrase “the rest of the input line” should be interpreted to mean the
rest of the input line including the terminating newline if and only if
there is one.  This means the current implementation is incorrect on two
points:

- First, it suppresses the previous line's newline in the '1' case.

- Second, it unconditionally emits a newline at the end of the output
  for non-empty input, even if the input did not end with a newline.

Resolve this by rewriting the main loop.  Instead of special-casing the
first line and then assuming that every line ends with a newline, we
remember how each line ends and emit that either at the beginning of
the next line or at the end of the file except in the one case ('+')
where the standard explicitly says not to.

While here, try to reduce diff to upstream a little and update their
RCS tag to reflect the fact that while we've diverged significantly
from them, we've incorporated all their changes.  Remove the useless
second RCS tag.

We also update the tests to account for the change in interpretation
of the '1' case and add a test case for unterminated input.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D43326

4 months agoIntel FPGA: Support programming larger bitfiles.
Ruslan Bukin [Tue, 9 Jan 2024 14:18:53 +0000 (14:18 +0000)]
Intel FPGA: Support programming larger bitfiles.

Issue data claim command after every chunk of data programmed,
so we can reuse the SVC buffer for the next chunk.

Tested on Terasic DE10 Pro.

Sponsored by: UKRI

4 months agolibhtr: pthread_attr_setaffinity_np(): Replace calloc() with malloc()
Olivier Certner [Thu, 4 Jan 2024 15:20:50 +0000 (16:20 +0100)]
libhtr: pthread_attr_setaffinity_np(): Replace calloc() with malloc()

Using calloc() instead of malloc() is useless here since the allocated
memory is to be wholly crushed by the memcpy() call that follows.

Suggested by:           kib
Reviewed by:            emaste, kib
Approved by:            emaste (mentor)
MFC after:              2 weeks
Differential Revision:  https://reviews.freebsd.org/D43328

4 months agolibthr: thr_attr.c: More style and clarity fixes
Olivier Certner [Thu, 4 Jan 2024 15:10:40 +0000 (16:10 +0100)]
libthr: thr_attr.c: More style and clarity fixes

The change of argument for sizeof() (from a type to an object) is to be
consistent with the change done for the malloc() code just above in the
preceding commit touching this file.

Consider bit flags as integers and test whether they are set with an
explicit comparison with 0.

Use an explicit flag value (PTHREAD_SCOPE_SYSTEM) in place of a variable
that has this value at point of substitution.

All other changes are straightforward.

Suggested by:           kib
Reviewed by:            kib
Approved by:            emaste (mentor)
MFC after:              2 weeks
Differential Revision:  https://reviews.freebsd.org/D43327

4 months agonfsv4(4): Reflow lines to 80 character limit
Daniel Ebdrup Jensen [Mon, 8 Jan 2024 13:50:10 +0000 (14:50 +0100)]
nfsv4(4): Reflow lines to 80 character limit

In belatedly fixing a mistake made in fbbdfa2b8a42, I noticed that igor
and mandoc -Tlint had a few more things to say.

As such, I'm reflowing a few lines and fixing a contraction.

MFC with: fbbdfa2b8a42

4 months agonfsv4(4): Belatedly bump .Dd
Daniel Ebdrup Jensen [Mon, 8 Jan 2024 13:36:19 +0000 (14:36 +0100)]
nfsv4(4): Belatedly bump .Dd

I forgot to do it when making the commit, so hat-tip to asomers@

Reported by: asomers@
Fixes: fbbdfa2b8a42 (nfsv4(4): mention the nfsv4_server_only..)
MFC with: fbbdfa2b8a42

4 months agostress2: Remove useless test scenario
Peter Holm [Tue, 9 Jan 2024 10:31:05 +0000 (11:31 +0100)]
stress2: Remove useless test scenario

4 months agostress2: Reduce idle time. Remove debug output
Peter Holm [Tue, 9 Jan 2024 10:28:26 +0000 (11:28 +0100)]
stress2: Reduce idle time. Remove debug output

4 months agobuild: only inspect the first word of toolchain tools
Kyle Evans [Tue, 9 Jan 2024 04:21:36 +0000 (22:21 -0600)]
build: only inspect the first word of toolchain tools

CC/CXX/CPP/LD may all have arguments supplied in various circumstances,
which break the logic here.  We only need to determine which of these
tools we're expecting to invoke from PATH, which just requires
examination of the first word.  Limit our scope to exactly that.

Patch suggested by: jrtc27
Reviewed by: imp, jrtc27
Differential Revision: https://reviews.freebsd.org/D43372

4 months agobhyveload: add CAP_SEEK to our dirfd rights
Kyle Evans [Tue, 9 Jan 2024 03:08:16 +0000 (21:08 -0600)]
bhyveload: add CAP_SEEK to our dirfd rights

In the case of hostbase_fd, this is infact a bug fix; we have a seek
callback that the host: filesystem may use in loader, and we really
don't have a good excuse to break it.

bootfd-derived fds will only be used with fdlopen(3) and rtld doesn't
seem to need pread / lseek at all for it today, but there's no reason to
break if it finds a good reason to later.

Suggested by: markj

4 months agosockets: on shutdown(2) do sorflush() only in case of generic sockbuf
Gleb Smirnoff [Tue, 9 Jan 2024 01:20:31 +0000 (17:20 -0800)]
sockets: on shutdown(2) do sorflush() only in case of generic sockbuf

This is a quick plug to fix panic with Netlink which has protocol specific
buffers.  Note that PF_UNIX/SOCK_DGRAM, which also has its own buffers,
avoids the panic due to being SOCK_DGRAM.  A correct but more complicated
fix that needs to be done is to merge pr_shutdown, pr_flush and dom_dispose
into one protocol method that may call sorflush for generic sockets or do
their own stuff for protocol which has own buffers.

Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D43367
Reported-by: syzbot+a58e1615881c01a51653@syzkaller.appspotmail.com
4 months agonetlink: just return EOPNOTSUPP on shutdown(2)
Gleb Smirnoff [Tue, 9 Jan 2024 01:20:30 +0000 (17:20 -0800)]
netlink: just return EOPNOTSUPP on shutdown(2)

This matches what Linux does.

Reviewed by: melifaro, tuexen
Differential Revision: https://reviews.freebsd.org/D43366

4 months agozpoolprops.7: Remove unnecessary .Ns
Jose Luis Duran [Tue, 9 Jan 2024 01:03:15 +0000 (22:03 -0300)]
zpoolprops.7: Remove unnecessary .Ns

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Jose Luis Duran <jlduran@gmail.com>
Closes #15727

4 months agokldxref: Correct contract number in license ACK
John Baldwin [Tue, 9 Jan 2024 01:01:05 +0000 (17:01 -0800)]
kldxref: Correct contract number in license ACK

Reviewed by: brooks
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D43371

4 months agoZIL: Update Linux tracing after #15635
Alexander Motin [Tue, 9 Jan 2024 00:49:39 +0000 (19:49 -0500)]
ZIL: Update Linux tracing after #15635

While picking parts from #14909 I've missed Linux tracing specific
ones, that went unnoticed in default configurations, but breaks the
build in some.

Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15730

4 months agoLinux 6.2 compat: add check for kernel_neon_* availability
Shengqi Chen [Tue, 9 Jan 2024 00:05:24 +0000 (08:05 +0800)]
Linux 6.2 compat: add check for kernel_neon_* availability

This patch adds check for `kernel_neon_*` symbols on arm and arm64
platforms to address the following issues:

1. Linux 6.2+ on arm64 has exported them with `EXPORT_SYMBOL_GPL`, so
   license compatibility must be checked before use.
2. On both arm and arm64, the definitions of these symbols are guarded
   by `CONFIG_KERNEL_MODE_NEON`, but their declarations are still
   present. Checking in configuration phase only leads to MODPOST
   errors (undefined references).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #15711
Closes #14555
Closes: #15401
4 months agocxgbe(4): Add support for netmap offsets.
Navdeep Parhar [Fri, 5 Jan 2024 01:39:31 +0000 (17:39 -0800)]
cxgbe(4): Add support for netmap offsets.

PR: 253069
MFC after: 1 week
Sponsored by: Chelsio Communications

4 months agonetlink: Add sysctl descriptions for net.netlink tree
Ed Maste [Thu, 12 Oct 2023 01:38:00 +0000 (21:38 -0400)]
netlink: Add sysctl descriptions for net.netlink tree

Reviewed by: markj, melifaro
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D43368

4 months agotcp: clean PRR state after ECN congestion recovery.
Richard Scheffenegger [Mon, 8 Jan 2024 08:28:01 +0000 (09:28 +0100)]
tcp: clean PRR state after ECN congestion recovery.

PRR state was not properly reset on subsequent ECN CE
events. Clean up after local transmission failures too.

Reviewed by:           tuexen, cc, #transport
MFC after:             3 days
Sponsored by:          NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43170

4 months agotcp: prevent spurious empty segments and fix uncommon panic
Richard Scheffenegger [Mon, 8 Jan 2024 08:25:39 +0000 (09:25 +0100)]
tcp: prevent spurious empty segments and fix uncommon panic

Only try sending more data on pure ACKs when there is
more data available in the send buffer.

In the case of a retransmitted SYN not being sent due to
an internal error, the snd_una/snd_nxt accounting could
be off, leading to a panic. Pulling snd_nxt up to snd_una
prevents this from happening.

Reported by:           fengdreamer@126.com
Reviewed by:           cc, tuexen, #transport
MFC after:             1 week
Sponsored by:          NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43343

4 months agobhyveload: make error printing consistent
Kyle Evans [Mon, 8 Jan 2024 17:49:40 +0000 (11:49 -0600)]
bhyveload: make error printing consistent

Previously we used a mix of perror(3) + exit(3) and err(3); standardize
on the latter instead.  This does remove one free() in an error path,
because we're decidedly leaking a lot more than just the loader name
there (loader handle, vcpu, vmctx...) anyways.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D43331

4 months agoFix "version introduced" in numerous manual pages
Tom Hukins [Mon, 25 Sep 2023 15:22:51 +0000 (16:22 +0100)]
Fix "version introduced" in numerous manual pages

MFC after: 1 week
Pull request: https://github.com/freebsd/freebsd-src/pull/853

4 months agofix using man(1) with multiple pages
Wolfram Schneider [Mon, 8 Jan 2024 15:53:11 +0000 (15:53 +0000)]
fix using man(1) with multiple pages

PR: 275978
Reported by: Mohamed Akram
Fixes: 789480702e490818244af11279868ba4f3dabe6b
MFC after: 1 week

4 months agoath10k/rtw89: make compile again after LinuxKPI changes
Bjoern A. Zeeb [Mon, 8 Jan 2024 15:29:09 +0000 (15:29 +0000)]
ath10k/rtw89: make compile again after LinuxKPI changes

Both drivers are not yet attached to the build so this change is
for people currently trying them out.

In 96ab16ebab6319dce9b3041961b0ab6e20a4fecc the sys/rman.h include
was removed.  In various wireless drivers we prefer to directly use
bus_dma functions rather than io* LinuxKPI once.  In order to cast
the pointer we need sys/rman.h back for our native 'struct resource'
in their pci.c implementations.
Long-term we should consider providing some lkpi_-FreeBSD-specific
wrapper functions to avoid this problem.

MFC after: 3 days

4 months agortw89: improve debugging and fix a sleep issue
Bjoern A. Zeeb [Wed, 6 Sep 2023 16:47:45 +0000 (16:47 +0000)]
rtw89: improve debugging and fix a sleep issue

Improve log messages to be more helpful in error cases.
Change one LinuxKPI sleep function as we cannot call the original
one from a context we cannot sleep.
Both cases were hit during testing.

MFC after: 3 days

4 months agoresolv: Add a required include to resolv.h
Jan Beich [Mon, 8 Jan 2024 11:52:08 +0000 (20:52 +0900)]
resolv: Add a required include to resolv.h

Add a required include to resolv.h for sockaddr_in.  This should reduce
patching required when porting code written with Linux or NetBSD in mind.

PR: 182466
MFC after: 1 week

4 months agomii: Fix memory leak in micphy.
Jiahao LI [Mon, 8 Jan 2024 07:39:56 +0000 (16:39 +0900)]
mii: Fix memory leak in micphy.

PR: 270040
MFC after: 1 week

4 months agopuc: Add support for Exar XR17V354 Quad PCI Express UART.
Teerayut Hiruntaraporn [Mon, 8 Jan 2024 06:31:19 +0000 (15:31 +0900)]
puc: Add support for Exar XR17V354 Quad PCI Express UART.

PR: 257207
MFC after: 1 week

4 months agoffs/ffs_rawread.c: clean up includes
Konstantin Belousov [Mon, 8 Jan 2024 05:36:33 +0000 (07:36 +0200)]
ffs/ffs_rawread.c: clean up includes

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

4 months agocheckstyle9.pl: Don't use $root if not defined
Warner Losh [Sun, 7 Jan 2024 16:50:51 +0000 (09:50 -0700)]
checkstyle9.pl: Don't use $root if not defined

$root is only defined when given on the command line. Don't try to use
its value when it's not defined.

Sponsored by: Netflix

4 months agocheckstyle9: Remove irrelevant stuff from qemu
Warner Losh [Sun, 7 Jan 2024 16:14:13 +0000 (09:14 -0700)]
checkstyle9: Remove irrelevant stuff from qemu

Remove some qemu project specific things we don't care about

o Remove python interpreter check
o Remove linux header check
o Remove trace file specail treatment
o Add $FreeBSD$ tag additions
o Remove some experiemntal code we won't need
o Remove commented out initializer code that we don't explicitly have a
  rule for.

Sponsored by: Netflix

4 months agodtrace/profile: Set t_dtrace_trapframe for profile probes
Mark Johnston [Sun, 7 Jan 2024 16:35:06 +0000 (11:35 -0500)]
dtrace/profile: Set t_dtrace_trapframe for profile probes

profile provider probes fire in the context of a timer interrupt.  Thus,
the "regs" action can make use of the interrupt trap frame to get
register values when the interrupt happened in kernel mode.  Make that
trap frame available when possible so that "regs" works more or less as
it already does with the fbt and kinst providers.

MFC after: 1 week

5 months agostyle.yml: Don't run this on branch pushes
Warner Losh [Sun, 7 Jan 2024 03:46:42 +0000 (20:46 -0700)]
style.yml: Don't run this on branch pushes

We don't need to run this on branch pushes, just pull requests. It's
designed to be a gross filter for incoming commits, not something
perfect we need to keep green. It also doesn't work quite right for
branch pushes anyway and needs adjustment.

Also remove some debugging information. We don't need it anymore.

Noticed by: jrtc27
Sponsored by: Netflix

5 months agoConnect my checkstyle9.pl script to a action.
Warner Losh [Sat, 6 Jan 2024 15:20:17 +0000 (08:20 -0700)]
Connect my checkstyle9.pl script to a action.

Connect the checkstyle9.pl script to a github action. This will provide
feedback to people submitting changes when the style is grossly wrong. And
can provide other automated feedback for the commit message in the future.
It already catches the github noreply author.

It pulls the full repo to do this. Optimizations welcome. After messing
with that for a few hours, I decided to punt and commit the slow, working
version and let someone else optimize from here.

Sponsored by: Netflix

5 months agotcpsso: support TIME_WAIT state
Michael Tuexen [Sat, 6 Jan 2024 20:31:46 +0000 (21:31 +0100)]
tcpsso: support TIME_WAIT state

TCP endpoints in TIME_WAIT are not handled in a special way anymore.
Therefore, they can be handled now by tcpsso.

Reviewed by: rscheff
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D43351

5 months agotcp: do not purge SACK scoreboard on first RTO
Richard Scheffenegger [Sat, 6 Jan 2024 19:25:17 +0000 (20:25 +0100)]
tcp: do not purge SACK scoreboard on first RTO

Keeping the SACK scoreboard intact after the first RTO
and retransmitting all data anew only on subsequent RTOs
allows a more timely and efficient loss recovery under
many adverse cirumstances.

Reviewed By:           tuexen, #transport
MFC after:             10 weeks
Sponsored by:          NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D42906

5 months agotcp: Make use of enum for sack_changed
Richard Scheffenegger [Sat, 6 Jan 2024 19:07:39 +0000 (20:07 +0100)]
tcp: Make use of enum for sack_changed

No functional change.

Reviewed By:           tuexen, #transport
MFC after:             3 days
Sponsored by:          NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43346

5 months agonfsv4(4): mention the nfsv4_server_only setting
Lexi Winter [Sat, 6 Jan 2024 18:12:02 +0000 (19:12 +0100)]
nfsv4(4): mention the nfsv4_server_only setting

Add note about configuring the NFSv4-only option.

It is already mentioned in rc.conf(5), but documenting it here makes it
more likely that people see it when they need it.

MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1008

5 months agotcpsso: fix typos in man page
Michael Tuexen [Sat, 6 Jan 2024 18:17:04 +0000 (19:17 +0100)]
tcpsso: fix typos in man page

Reviewed by: manpages (bcr)
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D43342

5 months agotcp: limit visibility of symbols
Michael Tuexen [Sat, 6 Jan 2024 11:00:38 +0000 (12:00 +0100)]
tcp: limit visibility of symbols

Put most symbols under __BSD_VISIBLE and limit the namespace of
tcp_[gs]et_flags.

Reviewed by: kib, karels, rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D43245

5 months agotimingsafe_bcmp(3) was MFC'ed to 11.1
David E. O'Brien [Sat, 6 Jan 2024 04:52:37 +0000 (20:52 -0800)]
timingsafe_bcmp(3) was MFC'ed to 11.1

5 months agoarm64/RPI: enable powerd by default on arm64-aarch64-RPI images
Mike Karels [Fri, 5 Jan 2024 19:41:24 +0000 (13:41 -0600)]
arm64/RPI: enable powerd by default on arm64-aarch64-RPI images

Most 64-bit Raspberry Pi models have a variable processor clock
speed that defaults to a slow speed (e.g. 600 MHz for a nominal
1.5 GHz clock).  This results in everything running slowly unless
or until powerd is started, and FreeBSD is then thought to be slow.
Enable powerd by default in /etc/rc.conf on the arm64-aarch64-RPI
images.  Tested on Raspberry Pi 3B+ and 4B so far.

PR: 256836
MFC after: 1 month
Reviewed by: rgrimes
Differential Revision: https://reviews.freebsd.org/D43296

5 months agoRevert "kern: console: make /dev/console backing console more predictable"
Kyle Evans [Fri, 5 Jan 2024 16:13:06 +0000 (10:13 -0600)]
Revert "kern: console: make /dev/console backing console more predictable"

This accidentally snuck into a different branch, and has not been
reviewed for sanity yet..

This reverts commit 8ec6d7be2e27622b8b9e192b4da9ce88a4118636.

5 months agobhyveload: fix comment style
Kyle Evans [Fri, 5 Jan 2024 15:53:14 +0000 (09:53 -0600)]
bhyveload: fix comment style

Reported by: jrtc27
Fixes: c067be72e83 ("bhyveload: limit rights on the dirfds we create")
5 months agokern: console: make /dev/console backing console more predictable
Kyle Evans [Fri, 5 Jan 2024 06:09:31 +0000 (00:09 -0600)]
kern: console: make /dev/console backing console more predictable

Specifically, altering the console list with conscontrol has some weird
behavior:

1. If you remove the first configured console, /dev/console will become
  unconfigured
2. Any console added becomes the /dev/console

In a multicons situation, #1 is clearly a bug and #2 is perhaps slightly
less clear.  If we have ttyu0, ttyv0, then it seems obvious that one
would want ttyv0 to take over the console if ttyu0 is removed.  If we
add ttyu0 back in, then it's debatable whether it should take over the
console or not.

Fix it now to make the /dev/console selection more FIFO-ish, with
respect to how conscontrol affects it.  A `primary` verb for
conscontrol(8) might be a good addition.

5 months agojail: add security.jail.mlock_allowed
Baptiste Daroussin [Thu, 4 Jan 2024 14:09:44 +0000 (15:09 +0100)]
jail: add security.jail.mlock_allowed

when the parameter allow.mlock was added a way for jails to check
if the parameter was set or now has not been added, this change
covers it.

MFC After: 3 days
Reviewed by: jamie@
Differential Revision: https://reviews.freebsd.org/D43314

5 months agobhyveload: support guest rebooting from the loader
Kyle Evans [Fri, 5 Jan 2024 06:21:15 +0000 (00:21 -0600)]
bhyveload: support guest rebooting from the loader

userboot has a EXIT_REBOOT code that it uses when the 'reboot' loader
command is executed.  Use that and longjmp back to reinit the VM
entirely with a reboot request.  This fixes the 'reboot' option in the
loader menu to actually reboot rather than shutdown the VM.

The JMP_* constants are introduced to keep track of why we're doing a
longjmp, though they aren't currently used.  We'll notably still do a
complete reload of the interpreter to give the rebooted VM that new
loader smell.  It just seemed forward thinking to just keep track of the
different setjmp points.

While we're here, we don't actually need to keep the fd we passed to
fdlopen(3), so let's avoid leaking it.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D43300

5 months agobhyveload: limit rights on the dirfds we create
Kyle Evans [Fri, 5 Jan 2024 06:21:14 +0000 (00:21 -0600)]
bhyveload: limit rights on the dirfds we create

In neither case do we need write access to the directories we're working
with; userboot doesn't support fo_write on the host device, and the
bootfd is only ever needed for loader loading.

This improves on 8bf0882e18 ("bhyveload: enter capability mode [...]")
so that arbitrary code in the loader can't open writable fds to either
of the directories we need to maintain access to.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D43315

5 months agonfsclient: limit situations when we do unlocked read-ahead by nfsiod
Konstantin Belousov [Mon, 1 Jan 2024 22:22:44 +0000 (00:22 +0200)]
nfsclient: limit situations when we do unlocked read-ahead by nfsiod

If there were or are writeable mappings, read-ahead might overwrite the
dirty pages data that is not yet reflected as a delayed write in the
matching buffer state.

Noted by: rmacklem
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

5 months agovtruncbuf: improve the check for meta buffer
Konstantin Belousov [Sun, 31 Dec 2023 20:46:53 +0000 (22:46 +0200)]
vtruncbuf: improve the check for meta buffer

Revision e99215a614675 reorganized the code in vtruncbuf(), and moved
the logic to flush meta buffers into a dedicated loop. While doing it,
the condition was changed from bp->b_lblkno < 0 (to handle) into
bp->b_lblkno > 0 (to skip), which causes buffer at lblkno to needlessly
flush.

Reviewed by: chs, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D43261

5 months agovtruncbuf: add a comment explaining the purpose of the loop
Konstantin Belousov [Sun, 31 Dec 2023 20:46:04 +0000 (22:46 +0200)]
vtruncbuf: add a comment explaining the purpose of the loop

Reviewed by: chs, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D43261

5 months agonfsclient: eliminate ncl_writebp()
Konstantin Belousov [Sat, 30 Dec 2023 18:46:31 +0000 (20:46 +0200)]
nfsclient: eliminate ncl_writebp()

Use plain bufwrite() instead.  ncl_writebp() evolved to mostly repeat
bufwrite() code with some ommisions, most notably runningbufspace
accounting.

Reviewed by: imp, markj, rmacklem
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D43249

5 months agonfsclient: flush dirty pages of the vnode
Konstantin Belousov [Sat, 30 Dec 2023 00:15:50 +0000 (02:15 +0200)]
nfsclient: flush dirty pages of the vnode

before ncl_flush() when done to ensure that the server sees our cached
data, because it potentially changes the server response.  This is
relevant for copy_file_range(), seek(), and allocate().

Convert LK_SHARED invp lock into LK_EXCLUSIVE if needed to properly call
vm_object_page_clean().

Reported by: asomers
PR: 276002
Noted and reviewed by: rmacklem
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D43250

5 months agonfsclient copy_file_range(): flush dst vnode data
Konstantin Belousov [Fri, 29 Dec 2023 23:22:40 +0000 (01:22 +0200)]
nfsclient copy_file_range(): flush dst vnode data

Otherwise server-side copy makes the client cache inconsistent with the
server data.

Reported by: asomers
PR: 276002
Reviewed by: rmacklem
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D43250

5 months agomlx5(4): only detach IOV children if iov was successfully initialized
Konstantin Belousov [Fri, 29 Dec 2023 03:14:56 +0000 (05:14 +0200)]
mlx5(4): only detach IOV children if iov was successfully initialized

Reported by: jwd
Sponsored by: NVidia networking
MFC after: 1 week

5 months agossh: Update to OpenSSH 9.6p1
Ed Maste [Fri, 5 Jan 2024 03:16:30 +0000 (22:16 -0500)]
ssh: Update to OpenSSH 9.6p1

From the release notes,

> This release contains a number of security fixes, some small features
> and bugfixes.

The most significant change in 9.6p1 is a set of fixes for a newly-
discovered weakness in the SSH transport protocol.  The fix was already
merged into FreeBSD and released as FreeBSD-SA-23:19.openssh.

Full release notes at https://www.openssh.com/txt/release-9.6

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

5 months agomail: add volatile in grabh()
Lexi Winter [Thu, 4 Jan 2024 22:34:58 +0000 (22:34 +0000)]
mail: add volatile in grabh()

setjmp() requires that any stack variables modified between the setjmp
call and the longjmp() must be volatile.  This means that 'saveint' in
grabh() must be volatile, since it's modified after the setjmp().
Otherwise, the signal handler is not properly restored, resulting in a
crash (SIGBUS) if ^C is typed twice while composing.

PR: 276119
Reported by: Christopher Davidson <christopher.davidson@gmail.com>
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd-src/pull/993

5 months agolibpfctl: introduce a handle-enabled variant of pfctl_add_rule()
Kristof Provost [Thu, 4 Jan 2024 12:45:56 +0000 (13:45 +0100)]
libpfctl: introduce a handle-enabled variant of pfctl_add_rule()

Introduce pfctl_add_rule_h(), which takes a pfctl_handle rather than a
file descriptor (which it didn't use). This means that library users can
open the handle while they're running as root, but later drop privileges
and still add rules to pf.

Sponsored by: Rubicon Communications, LLC ("Netgate")

5 months agolibpfctl: introduce pfctl_handle
Kristof Provost [Thu, 4 Jan 2024 09:50:14 +0000 (10:50 +0100)]
libpfctl: introduce pfctl_handle

Consumers of libpfctl can (and in future, should) open a handle. This
handle is an opaque object which contains the /dev/pf file descriptor
and a netlink handle. This means that libpfctl users can open the handle
as root, then drop privileges and still access pf.

Already add the handle to pfctl_startstop() and pfctl_get_creatorids()
as these are new in main, and not present on stable branches. Other
calls will have handle-enabled alternatives implemented in subsequent
commits.

Sponsored by: Rubicon Communications, LLC ("Netgate")

5 months agopf tests: ensure that pflog shows malformed packets as blocked, not passed
Kristof Provost [Tue, 2 Jan 2024 15:01:20 +0000 (16:01 +0100)]
pf tests: ensure that pflog shows malformed packets as blocked, not passed

Sponsored by: Rubicon Communications, LLC ("Netgate")

5 months agopflog: pass the action to pflog directly
Kristof Provost [Tue, 2 Jan 2024 14:52:39 +0000 (15:52 +0100)]
pflog: pass the action to pflog directly

If a packet is malformed, it is dropped by pf(4).  The rule referenced
in pflog(4) is the default rule.  As the default rule is a pass
rule, tcpdump printed "pass" although the packet was actually
dropped. Use the actual action, rather than the rule's action, or an
attempt at guessing the correct action.

Inspired by OpenBSD's 'pflog(4) logs packet dropped by default rule with block.' commit.

Sponsored by: Rubicon Communications, LLC ("Netgate")

5 months agopf: don't clobber log flag
Kristof Provost [Tue, 2 Jan 2024 13:54:06 +0000 (14:54 +0100)]
pf: don't clobber log flag

If we decide to discard a packet due to unexpected IP options or
unsupported headers we set pd.act.log. However, this can later get
overwritten when we copy the state's saved actions over.

Merge the two log fields to ensure we log as expected.

Sponsored by: Rubicon Communications, LLC ("Netgate")

5 months agocxgbe(4): Update firmwares to 1.27.5.0
Navdeep Parhar [Thu, 4 Jan 2024 19:37:21 +0000 (11:37 -0800)]
cxgbe(4): Update firmwares to 1.27.5.0

Version : 1.27.5.0
Date    : 10/10/2023
=====================
Fixes
-----

BASE:
- Fixed handling the Remote Fault with AN, causing the link failure.
=====================

Obtained from: Chelsio Communications
MFC after: 2 weeks
Sponsored by: Chelsio Communications

5 months agoCorrect three typos in manuals.
Jens Schweikhardt [Thu, 4 Jan 2024 20:35:25 +0000 (21:35 +0100)]
Correct three typos in manuals.

5 months agorc.d: Process autobridge_* in vnet jails
Mark Johnston [Thu, 4 Jan 2024 17:10:35 +0000 (12:10 -0500)]
rc.d: Process autobridge_* in vnet jails

Reviewed by: kp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D43316

5 months agoheimdal: Fix man page and documentation typos
Cy Schubert [Thu, 4 Jan 2024 18:34:50 +0000 (10:34 -0800)]
heimdal: Fix man page and documentation typos

Reported by: Jens Schweikhardt <schweikh@schweikhardt.net>
MFC: 1 week

5 months agoTypos corrected; dependant, addres.
Jens Schweikhardt [Thu, 4 Jan 2024 18:17:24 +0000 (19:17 +0100)]
Typos corrected; dependant, addres.

5 months agosystm: Annotate copyin() and related functions with __result_use_check
Mark Johnston [Thu, 4 Jan 2024 17:02:04 +0000 (12:02 -0500)]
systm: Annotate copyin() and related functions with __result_use_check

Now that all in-tree callers check for errors (or cast them away), we
can ask the compiler to check that new code does the same.  This was
prompted by SA-23:18.nfsclient, which was caused by missing error
handling.  This change is a weak mitigation since code can easily fail
to propagate error handling to the right place, but it's better than
nothing.

Reviewed by: kib, jhb
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D43223

5 months agomailmap: Translate olce's personal address to olce@FreeBSD.org
Olivier Certner [Thu, 4 Jan 2024 11:04:00 +0000 (12:04 +0100)]
mailmap: Translate olce's personal address to olce@FreeBSD.org

Approved by:    markj (mentor)

5 months agobnxt: Handle errors from copyout() in ioctl handlers
Mark Johnston [Thu, 4 Jan 2024 13:34:49 +0000 (08:34 -0500)]
bnxt: Handle errors from copyout() in ioctl handlers

This is in preparation for annotating copyin() and related functions
with __result_use_check.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D43178

5 months agotarg: Handle errors from suword()
Mark Johnston [Thu, 4 Jan 2024 13:34:31 +0000 (08:34 -0500)]
targ: Handle errors from suword()

In targstart() we are already handling an error and have no go way to
signal the failure to upper layers, so ignore the return value of
suword() there.

This is in preparation for annotating copyin() and related functions
with __result_use_check.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43202

5 months agostats: Check for errors from copyout()
Mark Johnston [Thu, 4 Jan 2024 13:33:58 +0000 (08:33 -0500)]
stats: Check for errors from copyout()

This is in preparation for annotating copyin() and related functions
with __result_use_check.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43179

5 months agosysctl: Don't pass CTLFLAG_MPSAFE to SYSCTL_STRING
Mark Johnston [Thu, 4 Jan 2024 13:33:05 +0000 (08:33 -0500)]
sysctl: Don't pass CTLFLAG_MPSAFE to SYSCTL_STRING

It is redundant.  No functional change intended.

MFC after: 1 week

5 months agoidentcpu: Let the hw.model be readable in capability mode
Mark Johnston [Thu, 4 Jan 2024 13:26:53 +0000 (08:26 -0500)]
identcpu: Let the hw.model be readable in capability mode

On some platforms this static information can be derived directly from
the CPU, and there doesn't seem much use in restricting it.

Reviewed by: emaste, imp, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43281

5 months agolinprocfs: Avoid using a sysctl to get the CPU model string
Mark Johnston [Thu, 4 Jan 2024 13:25:05 +0000 (08:25 -0500)]
linprocfs: Avoid using a sysctl to get the CPU model string

This will fail if the reading process is in capability mode.  Just copy
the string directly.

PR: 276043
Reviewed by: emaste, imp, kib
Reported and tested by: Ricardo Branco <rbranco@suse.com>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43281

5 months agox86: Make cpu_model[] public
Mark Johnston [Thu, 4 Jan 2024 13:24:04 +0000 (08:24 -0500)]
x86: Make cpu_model[] public

No functional change intended.

Reviewed by: emaste, imp, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43281

5 months agofile: Remove the fd parameter to fgetvp_lookup() and fgetvp_lookup_smr()
Mark Johnston [Thu, 4 Jan 2024 13:11:54 +0000 (08:11 -0500)]
file: Remove the fd parameter to fgetvp_lookup() and fgetvp_lookup_smr()

The fd is always obtained from nameidata, so just fetch it from there
instead.  No functional change intended.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43257