]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agorelease: fix on-disc pkg binary symbolic links
Glen Barber [Tue, 26 Apr 2022 19:52:40 +0000 (15:52 -0400)]
release: fix on-disc pkg binary symbolic links

Approved by: re (kib)
PR: 263574
Reported by: loader
MFC after: immediately
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 68b0a79b7c7ab75597e2511f880238fbf8cfad32)

2 years agossh: remove duplicate setting of MAIL env var
Ed Maste [Mon, 18 Apr 2022 23:57:48 +0000 (19:57 -0400)]
ssh: remove duplicate setting of MAIL env var

We already set it earlier in do_setup_env().

Fixes: 19261079b743 ("openssh: update to OpenSSH v8.7p1")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 19780592633e50efca39454d1ecf029bd7d87868)

2 years agocapsicum: briefly describe capabilities in man page
Ed Maste [Tue, 19 Apr 2022 19:44:46 +0000 (15:44 -0400)]
capsicum: briefly describe capabilities in man page

Provide a very brief introduction to capabilities, using a couple of
sentences from David Chisnall's mailing list response[1] to a question
about Linux capabilities and Capsicum.

Mailing list subject (in case the archive URL changes) was
Re: Linux capabilities to Capsicum

[1] https://lists.freebsd.org/archives/freebsd-hackers/2022-April/001032.html

Reviewed by: oshogbo
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34945

(cherry picked from commit 1f568792c6156988d357ea31a36d77ed11cc9a2d)

2 years agolibexec/rc.d/hostapd: Down/up interface when interface is specified
Cy Schubert [Fri, 22 Apr 2022 16:03:08 +0000 (09:03 -0700)]
libexec/rc.d/hostapd: Down/up interface when interface is specified

When no interface is specified results in a syntax error in the rc
script. Only execute poststart when an interface has been specified.

PR: 263358
Submitted by: markj
Reported by: Joshua Kinard <freebsd@kumba.dev>
Fixes: 0da2c91e64528d896f69d36670e25b4b4a140579

(cherry picked from commit 1452bfcd9bbcb2f5bbb89fa38d01ce51dd9b6d44)

2 years agopath_test: Verify that operations on unlinked files work
Mark Johnston [Mon, 18 Apr 2022 21:46:04 +0000 (17:46 -0400)]
path_test: Verify that operations on unlinked files work

Sponsored by: The FreeBSD Foundation

(cherry picked from commit b13ac678420292f5994b0b6e0f27995b9399268b)

2 years agossh: apply style(9) to version_addendum
Ed Maste [Mon, 18 Apr 2022 21:20:25 +0000 (17:20 -0400)]
ssh: apply style(9) to version_addendum

Reported by: allanjude (in review D29953)
Fixes: 462c32cb8d7a ("Upgrade OpenSSH to 6.1p1.")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 613b4b79713e294140757270f02a8aa6273be3d4)

2 years agopsci: finish psci_present implementation
Kyle Evans [Sat, 19 Mar 2022 03:03:44 +0000 (22:03 -0500)]
psci: finish psci_present implementation

This was already declared in psci.h, but it was never defined/set.  Do
this now, so we can use it to decide if enable-method in /cpus FDT nodes
should be inspected later on.  While we're here, convert it to a
boolean.

Reviewed by: andrew (slightly earlier version)

(cherry picked from commit 2218070b2c3c32b1574f3f3b2d0579b2d4826554)

2 years agostand: zfs: handle holes at the tail end correctly
Kyle Evans [Thu, 21 Apr 2022 19:57:24 +0000 (14:57 -0500)]
stand: zfs: handle holes at the tail end correctly

This mirrors dmu_read_impl(), zeroing out the tail end of the buffer and
clipping the read to what's contained by the block that exists.

This fixes an issue that arose during the 13.1 release process; in
13.1-RC1 and later, setting up GELI+ZFS will result in a failure to
boot.  The culprit is this, which causes us to fail to load geom_eli.ko
as there's a residual portion after the single datablk that should be
zeroed out.

PR: 263407
Reviewed by: tsoome

(cherry picked from commit 914dc91d12198352b7878a88d30e2a6373a936e1)

2 years agocp: fix -R recursion detection
Kyle Evans [Wed, 6 Apr 2022 01:40:53 +0000 (20:40 -0500)]
cp: fix -R recursion detection

The correct logic is a lot simpler than the previous iteration.  We
record the base fts_name to avoid having to worry about whether we
needed the root symlink name or not (as applicable), then we can simply
shift all of that logic to after path translation to make it less
fragile.

If we're copying to DNE, then we'll have swapped out the NULL root_stat
pointer and then attempted to recurse on it.  The previously nonexistent
directory shouldn't exist at all in the new structure, so just back out
from that tree entirely and move on.

The tests have been amended to indicate our expectations better with
subdirectory recursion.  If we copy A to A/B, then we expect to copy
everything from A/B/* into A/B/A/B, with exception to the A that we
create in A/B.

Reviewed by: bapt
Sponsored by: Klara, Inc.

(cherry picked from commit f00f8b4fbd268a212687984e44daa3e0d0a16b87)

2 years agocp: fix some cases with infinite recursion
Kyle Evans [Thu, 27 Jan 2022 18:02:17 +0000 (12:02 -0600)]
cp: fix some cases with infinite recursion

As noted in the PR, cp -R has some surprising behavior.  Typically, when
you `cp -R foo bar` where both foo and bar exist, foo is cleanly copied
to foo/bar.  When you `cp -R foo foo` (where foo clearly exists), cp(1)
goes a little off the rails as it creates foo/foo, then discovers that
and creates foo/foo/foo, so on and so forth, until it eventually fails.

POSIX doesn't seem to disallow this behavior, but it isn't very useful.
GNU cp(1) will detect the recursion and squash it, but emit a message in
the process that it has done so.

This change seemingly follows the GNU behavior, but it currently doesn't
warn about the situation -- the author feels that the final product is
about what one might expect from doing this and thus, doesn't need a
warning.  The author doesn't feel strongly about this.

PR: 235438
Reviewed by: bapt
Sponsored by: Klara, Inc.

(cherry picked from commit 848263aad129c8f9de75b58a5ab9a010611b75ac)

2 years agocam: don't send scsi commands on shutdown when reboot method RB_NOSYNC
Wojciech Macek [Mon, 20 Dec 2021 05:32:51 +0000 (06:32 +0100)]
cam: don't send scsi commands on shutdown when reboot method RB_NOSYNC

Don't send the SCSI comand SYNCHRONIZE CACHE on devices that are still
open when RB_NOSYNC is the reboot method. This may avoid recursive panics
when doadump is called due to a SCSI/CAM/USB error/bug.

Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: imp
Differential revision: https://reviews.freebsd.org/D31549

(cherry picked from commit e0ceec676dc86ddca960a9858ae5e3a4e0c8390d)

2 years agomountd: Delay starting mountd until after mountlate
Rick Macklem [Sun, 23 Jan 2022 22:17:40 +0000 (14:17 -0800)]
mountd: Delay starting mountd until after mountlate

PR#254282 reports a problem where nullfs mounts cannot be
exported via mountd for FreeBSD 13.0.

The problem seems to be that, to do the nullfs mounts in
/etc/fstab, they require the "late" mount option, so that the
underlying filesystem is mounted (ZFS for the PR).

Adding "mountlate" to the REQUIRE list in /etc/rc.d/mountd
fixes the problem, but that results in a dependency cycle
because /etc/rc.d/lockd specifies:

REQUIRE: nfsd
BEFORE: DAEMON
--> which forces mountd to preceed DAEMON.

This patch removes "nfsd" from REQUIRE for lockd and statd,
then adds mountlate to REQUIRE for mountd, to fix this
problem.  Having lockd REQUIRE nfsd was done in the NetBSD
code when it was pulled into FreeBSD and there does not
seem to be a need for this.

In case this causes problems, a long MFC has been specified.

PR: 254282
(cherry picked from commit f72926eab00ccd956298e44831b519daa704a868)

2 years agolibsa: Fix a typo in a panic message
Gordon Bergling [Wed, 20 Apr 2022 10:56:52 +0000 (12:56 +0200)]
libsa: Fix a typo in a panic message

- s/occured/occurred/

(cherry picked from commit 746cc38ec358f743d3be3fa0b6eeecbf520a38be)

2 years agooce(4): Fix a typo in a sysctl description
Gordon Bergling [Wed, 20 Apr 2022 10:51:52 +0000 (12:51 +0200)]
oce(4): Fix a typo in a sysctl description

- s/interupt/interrupt/

(cherry picked from commit 88cdccff3f76cb3f5f2656bfe5676538e9e569ab)

2 years agoiicbus(4): Fix two typos in kernel error messages
Gordon Bergling [Wed, 20 Apr 2022 10:55:44 +0000 (12:55 +0200)]
iicbus(4): Fix two typos in kernel error messages

- s/occured/occurred/

(cherry picked from commit 7fad3ed8e9bdba1ad81a141a47544cd0481da8b9)

2 years agotslog(4): Fix a typo in the manual page
Gordon Bergling [Wed, 20 Apr 2022 10:33:00 +0000 (12:33 +0200)]
tslog(4): Fix a typo in the manual page

- s/schedulling/scheduling/

(cherry picked from commit cebd29c950dc68cc416b9bd55ad62b9e7e25c077)

2 years agosed(1): Fix a typo in the manual page
Gordon Bergling [Wed, 20 Apr 2022 11:00:42 +0000 (13:00 +0200)]
sed(1): Fix a typo in the manual page

- s/occurances/occurrences/

(cherry picked from commit 583bb9c530b2316c83017fc51517d3acad1ed9dd)

2 years agolibsysdecode: Add regression tests for sysdecode_cap_rights(3)
Mark Johnston [Fri, 15 Apr 2022 14:23:32 +0000 (10:23 -0400)]
libsysdecode: Add regression tests for sysdecode_cap_rights(3)

Reviewed by: jhb, emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit d0f245d21f47c55ed40b34a17d5caf08aba1952f)

2 years agolibsysdecode: Include required headers in sysdecode.h
Mark Johnston [Fri, 15 Apr 2022 14:22:29 +0000 (10:22 -0400)]
libsysdecode: Include required headers in sysdecode.h

Make sysdecode.h self-contained rather than forcing all consumers to
include dependencies.  No functional change intended.

Reviewed by: pauamma_gundo.com, jhb, emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 354efc4c94078c3c83ea45d467c6377f3f92926e)

2 years agolibsysdecode: Fix decoding of Capsicum rights
Mark Johnston [Wed, 13 Apr 2022 14:47:08 +0000 (10:47 -0400)]
libsysdecode: Fix decoding of Capsicum rights

Capsicum rights are a bit tricky since some of them are subsets of
others, and one can have rights R1 and R2 such that R1 is a subset of
R2, but there is no collection of named rights whose union is R2.  So,
they don't behave like most other flag sets.  sysdecode_cap_rights(3)
does not handle this properly and so can emit misleading decodings.

Try to fix all of these problems:
- Include composite rights in the caprights table.
- Use a constructor to sort the caprights table such that "larger"
  rights appear first and thus are matched first.
- Don't print rights that are a subset of rights already printed, so as
  to minimize the length of the output.
- Print a trailing message if some of the specific rights are not
  matched by the table.

PR: 263165
Reviewed by: pauamma_gundo.com (doc), jhb, emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 869199d9922c7dee92c1c24f95b90f1d1319433e)

2 years agocallout: Remove the CS_EXECUTING flag
Mark Johnston [Wed, 23 Mar 2022 16:37:02 +0000 (12:37 -0400)]
callout: Remove the CS_EXECUTING flag

It is now unused.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 7524994da0bb7b4eb003bc5ac465a316925d40ed)

2 years agosetitimer: Fix exit race
Mark Johnston [Wed, 23 Mar 2022 16:36:12 +0000 (12:36 -0400)]
setitimer: Fix exit race

We use the p_itcallout callout, interlocked by the proc lock, to
schedule timeouts for the setitimer(2) system call.  When a process
exits, the callout must be stopped before the process struct is
recycled.

Currently we attempt to stop the callout in exit1() with the call
_callout_stop_safe(&p->p_itcallout, CS_EXECUTING).  If this call returns
0, then we sleep in order to drain the callout.  However, this happens
only if the callout is not scheduled at all.  If the callout thread is
blocked on the proc lock, then exit1() will not block and the callout
may execute after the process has fully exited, typically resulting in a
panic.

I cannot see a reason to use the CS_EXECUTING flag here.  Instead, use
the regular callout_stop()/callout_drain() dance to halt the callout.

Reported by: ler
Tested by: ler, pho
Sponsored by: The FreeBSD Foundation

(cherry picked from commit b319171861464f6c445905e7649cb43bf9bc78be)

2 years agovideomode: Fix a typo in an kernel message
Gordon Bergling [Tue, 19 Apr 2022 15:09:52 +0000 (17:09 +0200)]
videomode: Fix a typo in an kernel message

- s/Seperate/Separate/

Obtained from: NetBSD

(cherry picked from commit f45f90c5d6f0f0d53998476281d42d857adf98c7)

2 years agodiff: tests: loosen up requirements for report_identical
Kyle Evans [Tue, 19 Apr 2022 04:04:13 +0000 (23:04 -0500)]
diff: tests: loosen up requirements for report_identical

This test cannot run without an unprivileged_user being specified
anyways, so just run as the unprivileged user.  Revoking read permisions
works just as well if you're guaranteed non-root.

Reviewed by: pstef
Sponsored by: Klara, Inc.

(cherry picked from commit efba49ee5a64f8f56f49e58887484284d785d542)

2 years agoloader: userboot: provide a getsecs() implementation
Kyle Evans [Wed, 13 Apr 2022 00:29:54 +0000 (19:29 -0500)]
loader: userboot: provide a getsecs() implementation

We don't need it for userboot, but it avoids issues with BIND_NOW, so
just provide it.  time(3) isn't defined but ends up being provided by
libc linked into the host process, which is generally fine.

PR: 262920
Reviewed by: imp, jhb

(cherry picked from commit 660c1892d5c90500d37f98185326c6287b2b61be)

2 years agostand: libefi: swap /Pci() printing around
Kyle Evans [Wed, 13 Apr 2022 00:29:54 +0000 (19:29 -0500)]
stand: libefi: swap /Pci() printing around

Printing device followed by interface matches, e.g., edk2.  Note that
this is only a fallback, many firmware implementations will provide the
protocol that we'll use to format device paths.

Reviewed by: imp, tsoome
Sponsored by: Ampere Computing
Submitted by: Klara, Inc.

(cherry picked from commit 454630c72556d45e401f29f56b3317c2fb0499a0)

2 years agogenet: fix problems with interface down/up
Mike Karels [Mon, 11 Apr 2022 19:44:49 +0000 (14:44 -0500)]
genet: fix problems with interface down/up

The genet interface did not resume operation correctly after doing
ifconfig down then up.  The down/reset procedure did not clear the
RUNNING flag, and did not reset enough of the hardware state.  This
patch is modeled on OpenBSD code, with a call to gen_reset added
to reset the controller completely.  Regularize the parameter to
gen_dma_disable() while here.

PR:             263091
Submitted by: jiahali@blackberry.com

(cherry picked from commit 8f45652b6bccc258eb58f8721dea10184f1aaa17)

2 years agovm: Move the "vm_wait in early boot" assertion to the proper place
Mark Johnston [Thu, 14 Apr 2022 19:45:54 +0000 (15:45 -0400)]
vm: Move the "vm_wait in early boot" assertion to the proper place

The assertion was added in commit 1771e987ca6a.  After that, vm_wait()
and friends were refactored such that the actual sleep happens
elsewhere.  Now the assertion condition is not checked when
vm_wait_doms() is called directly, and it is checked even if we are not
going to sleep (because vm_page_count_min_set(wdoms) is false).

Reviewed by: alc, kib
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 6fb7c42d593d13eba8b72f6cdf434a7cb23fa828)

2 years agovm: Initialize the transient buffer mapping arena with M_WAITOK
Mark Johnston [Thu, 14 Apr 2022 19:46:14 +0000 (15:46 -0400)]
vm: Initialize the transient buffer mapping arena with M_WAITOK

The wait flag is passed to UMA when allocating boundary tags for the
initial span, and UMA expects either M_WAITOK or M_NOWAIT to be present.

Reported by: cperciva
Sponsored by: The FreeBSD Foundation

(cherry picked from commit f82177b8cfd2269aed060fe72e672ad4115ec8c3)

2 years agotime(3): Refine history in the manual page
Gordon Bergling [Thu, 14 Apr 2022 08:04:14 +0000 (10:04 +0200)]
time(3): Refine history in the manual page

The time() system call first appeared in Version 1 AT&T UNIX.  Through
the Version 3 AT&T UNIX, it returned 60 Hz ticks since an epoch that
changed occasionally, because it was a 32-bit value that overflowed in a
little over 2 years.

In Version 4 AT&T UNIX the granularity of the return value was reduced to
whole seconds, delaying the aforementioned overflow until 2038.

Version 7 AT&T UNIX introduced the ftime() system call, which returned
time at a millisecond level, though retained the gtime() system call
(exposed as time() in userland).  time() could have been implemented as a
wrapper around ftime(), but that wasn't done.

4.1cBSD implemented a higher-precision time function gettimeofday() to
replace ftime() and reimplemented time() in terms of that.

Since FreeBSD 9 the implementation of time() uses
clock_gettime(CLOCK_SECOND) instead of gettimeofday() for performance
reasons.

With most valuable input from Warner (imp@).

Reviewed by: 0mp, jilles, imp
Differential Revision: https://reviews.freebsd.org/D34751

(cherry picked from commit 3e0f3678eca7c3f296b9f702992737356f1792da)

2 years agopath_test: Correct the kevent test
Mark Johnston [Mon, 18 Apr 2022 15:45:45 +0000 (11:45 -0400)]
path_test: Correct the kevent test

Perhaps surprisingly, and contrary to the expectations of
path_test:path_event, NOTE_LINK events are not raised when a file is
unlinked.  Prior to commit bf13db086b84, the test happened to work
because unlinking the file would cause the vnode to be recycled, and
EVFILT_VNODE knotes deliver an event with EV_EOF set when the vnode is
doomed.  Since the test did not verify the note type, the test
succeeded.  After commit bf13db086b84, the vnode is not recycled after
being unlinked and so the test hangs.

Fix the test by waiting for NOTE_DELETE instead, and check that we got
the note that we expected.

Reported by: Jenkins
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 333f668468f0675e1e001f6fcc506e901e58c36e)

2 years agoif_axgbe: properly release resource in error case
Tong Zhang [Mon, 11 Apr 2022 13:51:53 +0000 (09:51 -0400)]
if_axgbe: properly release resource in error case

PR: 262899
Reviewed by: markj

(cherry picked from commit 57f7a82fbb4299a255c2c20ec812258004a90631)

2 years agossh-agent: move -x description to correct spot in man page
Ed Maste [Sun, 17 Apr 2022 20:53:12 +0000 (16:53 -0400)]
ssh-agent: move -x description to correct spot in man page

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

(cherry picked from commit eb45bc6829157b4bd8367a7fac96acc0e740f116)

2 years agoRevert rest of a5970a529c2d95271: use vrefact() when working on fp->f_vnode
Konstantin Belousov [Wed, 13 Apr 2022 23:39:57 +0000 (02:39 +0300)]
Revert rest of a5970a529c2d95271: use vrefact() when working on fp->f_vnode

(cherry picked from commit 362ff9867e9f0856a0f24f91e5fc6b9b3ecff8e9)

2 years agoMostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-force...
Konstantin Belousov [Wed, 13 Apr 2022 00:47:45 +0000 (03:47 +0300)]
Mostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-forced unmount

(cherry picked from commit bf13db086b84c29ce901145f2800c561dcbf4d1e)

2 years agoMerge libcxxrt commit 45ca8b1942090226ba9368caeeeabc0d4ee41ad6
Dimitry Andric [Tue, 19 Apr 2022 16:11:11 +0000 (18:11 +0200)]
Merge libcxxrt commit 45ca8b1942090226ba9368caeeeabc0d4ee41ad6

  Insert padding in __cxa_exception struct for compatibility

  Similar to https://github.com/llvm/llvm-project/commit/f2a436058fcb, the
  addition of __attribute__((__aligned__)) to _Unwind_Exception (in commit
  b9616964) causes implicit padding to be inserted before the unwindHeader
  field in __cxa_exception.

  Applications attempt to get at the earlier fields in __cxa_exception, so
  preserve the same negative offsets in __cxa_exception, by moving the
  padding to the beginning of the struct.

  The assumption here is that if the ABI is not aware of the padding
  before unwindHeader and put the referenceCount/primaryException in
  there, no padding should exist before unwindHeader.

This should make libreoffice's custom exception handling mechanisms work
correctly, even if it was built against an older cxxabi.h/unwind.h pair.

PR: 263370
Approved by:    re (gjb, early MFC)
MFC after: immediately

(cherry picked from commit 434215c26da3c6acf2423ab93ff2b41b2d823cc8)

2 years agoFix a sign mismatch warning in the physmem code
Andrew Turner [Mon, 28 Mar 2022 10:29:42 +0000 (11:29 +0100)]
Fix a sign mismatch warning in the physmem code

Make sure both sides of a comparison are unsigned. As the values being
compared are size_t make the the value in the for loop size_t too.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit f461b95561fff9d7f39942f7a9aba37ba69ed1fe)

2 years agoSupport EFIRT on arm64 with a non 4k page size
Andrew Turner [Wed, 23 Mar 2022 15:18:30 +0000 (15:18 +0000)]
Support EFIRT on arm64 with a non 4k page size

When the page size the kernel is built for is not the same as
EFI_PAGE_SIZE we need to increment the page index at a faster rate.

Add this adjustment to the arm64 EFIRT support in preperation for
experimental 16k PAGE_SIZE support.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 863f3220d09716ea2e570fadc6b19dcb6e4c2191)

2 years agoAdd an implementation of .mcount on arm64
Andrew Turner [Tue, 22 Mar 2022 15:46:15 +0000 (15:46 +0000)]
Add an implementation of .mcount on arm64

To support cc -pg on arm64 we need to implement .mcount. As clang and
gcc think it is function like it just needs to load the arguments
to _mcount and call it.

On gcc the first argument is passed in x0, however this is missing on
clang so we need to load it from the stack. As it's the caller return
address this will be at a known location.

PR: 262709
Reviewed by: emaste (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34634

(cherry picked from commit 16d5f9a1649e6a3e5841c6c41d6af9430ed9f064)

2 years agoAdd support for arm64 nGnRE device memory
Andrew Turner [Fri, 5 Feb 2021 10:50:29 +0000 (10:50 +0000)]
Add support for arm64 nGnRE device memory

On arm64 we can select how strongly we order device memory. Currently
we use the strongest type of non-Gathering, non-Reordering, no Early
write acknowledgement. This is equivalent to VM_MEMATTR_SO in the 32-bit
arm code.

Create a new memory type to remove the no Early write acknowledgement
option to create a memory attribute that is equivalent to the arm
VM_MEMATTR_DEVICE.

Keep the the old nGnRnE memory as what we provide for VM_MEMATTR_DEVICE
until we can test nGnRE on more hardware. A method for dynamically
switching back may be needed as at least one vendor is known to have
broken nGnRE memory.

Sponsored by: Innovate UK

(cherry picked from commit 13ec5a6da04b14c4d40d3b37335dfaef7469aeb5)

2 years agotty: Remove an incorrect assertion from ttyinq_line_iterate()
Mark Johnston [Tue, 12 Apr 2022 21:30:04 +0000 (17:30 -0400)]
tty: Remove an incorrect assertion from ttyinq_line_iterate()

We may legitimately have tib == NULL if we're at the very end of the
queue.

PR: 215373
Reported by: pho
Sponsored by: The FreeBSD Foundation

(cherry picked from commit d769609620931a62ebacbd4f1f5fd048c7e3d7c0)

2 years agoRemove 11.x ABI compat for kernel dump ioctls
Mitchell Horne [Thu, 14 Apr 2022 22:44:02 +0000 (19:44 -0300)]
Remove 11.x ABI compat for kernel dump ioctls

This code was marked gone_in(13), so its time has passed.

The only consumer of this interface is dumpon(8). We do not maintain
strict backwards compatibility for this utility because a) it
can't/shouldn't be used from a jail or chroot and b) it is highly
specific interface unique to FreeBSD. The host's (presumably more
up-to-date) copy of dumpon(8) should be used to configure kernel dump
devices.

Reviewed by: markj, emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D34913

(cherry picked from commit 9c90bfcd319c4342fd55310d876976399184a910)

2 years agoLinuxKPI: 802.11: start adding rate control to ieee80211_tx_status()
Bjoern A. Zeeb [Fri, 15 Apr 2022 13:39:38 +0000 (13:39 +0000)]
LinuxKPI: 802.11: start adding rate control to ieee80211_tx_status()

Start adding rate control feedback in ieee80211_tx_status() in order
for net80211 to be able to report something back (which may not
yet be the view of the firmware).  iwlwifi is reporting back an MSC 0
even with HT disabled (to be investigated) so we cannot (yet) use
the firmware/driver rate feedback directly.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 383b3e8f509f9658329d33d7da5473b881c37349)

2 years agoLinuxKPI: 802.11: implement ieee80211_probereq_get()
Bjoern A. Zeeb [Fri, 15 Apr 2022 12:53:06 +0000 (12:53 +0000)]
LinuxKPI: 802.11: implement ieee80211_probereq_get()

Implement ieee80211_probereq_get() needed by Realtek drivers.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit ade774b19f9a7b35f01cbca68e51a768d1dd0773)

2 years agoLinuxKPI: skbuff: start implementing skb_copy()
Bjoern A. Zeeb [Fri, 15 Apr 2022 12:30:51 +0000 (12:30 +0000)]
LinuxKPI: skbuff: start implementing skb_copy()

Implement skb_copy() with omissions of fragments and possibly other fields
for now.  Should we hit frags at any point a log message will let us know.
For the few cases we need this currently this is enough.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 349b042b90057c1e9dbb64dfdb894fe03ea20a1d)

2 years agoLinuxKPI: 802.11: improve hw_scan
Bjoern A. Zeeb [Fri, 15 Apr 2022 14:55:40 +0000 (14:55 +0000)]
LinuxKPI: 802.11: improve hw_scan

Initially we were using the IEs from ieee80211_probereq_ie() of net80211
and put them into the common_ies field.  Start by manually building the
per-band and common IE parts as drivers put them back together.
This also involves allocating the req.ie as one buffer for all IEs over
all bands and setting req.ie_len correctly based on how many bytes we
put in.

Manually building per-band scan IEs we still use the net80211 routines
to add IEs to the buffer (mostly).

This is needed by Realtek drivers but will equally used by others.
Realtek would simply panic due to skbs being allocated with the wrong
length.

Longer-term this will help us, e.g., when not supporting VHT on 2Ghz
and we would have to do this anyway.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit d9945d7821b9baf724a704d37d33b9adcad70030)

2 years agoLinuxKPI: skbuff: dev_kfree_skb_irq() and improvements
Bjoern A. Zeeb [Fri, 15 Apr 2022 12:25:39 +0000 (12:25 +0000)]
LinuxKPI: skbuff: dev_kfree_skb_irq() and improvements

While it is currently unclear if we will have to defer work in
dev_kfree_skb_irq() to call dev_kfree_skb().
We only have one caller which seems to be fine on FreeBSD by calling
it directly for now.

While here shortcut skb_put()/skb_put_data() saving us work if there
are no adjustments to do.
Also adjust the logging in skb_is_gso() to avoid getting spammed by it.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 952643ea452655a8e80d1b5e1cc2cae35cb73870)

2 years agoLinuxKPI: 802.11: use an sx lock to protect the list of vifs
Bjoern A. Zeeb [Fri, 15 Apr 2022 14:22:43 +0000 (14:22 +0000)]
LinuxKPI: 802.11: use an sx lock to protect the list of vifs

Use an sx lock to protect the list of vifs.  We could use the
linux mutex compat for this but our current implementation may
re-acquire the lock recursively so allow this.  The change is
mainly motivated by the fact that some callers may sleep in the
interator function called.  Recursiveness is needed because we
see find_sta_by_ifaddr() being called from an iterator function
from iterate_interfaces().

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 8891c45563f8d3b657a876197c66e00e75214909)

2 years agoipfw: fix matching and setting DSCP value for IPv6
Andrey V. Elsukov [Wed, 6 Apr 2022 18:43:50 +0000 (21:43 +0300)]
ipfw: fix matching and setting DSCP value for IPv6

Matching for DSCP codes has used incorrect bits. Use IPV6_DSCP()
macro for matching opcodes to fix this. Also this leads to always
use value from a mbuf instead of cached value.

Previously different opcodes have used both cached in f_id value
and stored in the mbuf, and it did not always work after setdscp
action, since cached value was not updated.

Update IPv6 flowid value cached in the f_id.flow_id6 when we do
modification of DSCP value in O_SETDSCP opcode, it may be used by
external modules.

Also added logging support for O_SETDSCP opcode.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D34807

(cherry picked from commit 4763c0aa68a7147258922a33a8401f1f2067ba49)

2 years agoFix ipfw fwd that doesn't work in some cases
Andrey V. Elsukov [Fri, 1 Apr 2022 13:49:25 +0000 (16:49 +0300)]
Fix ipfw fwd that doesn't work in some cases

For IPv4 use dst pointer as destination address in fib4_lookup().
It keeps destination address from IPv4 header and can be changed
when PACKET_TAG_IPFORWARD tag was set by packet filter.

For IPv6 override destination address with address from dst_sa.sin6_addr,
that was set from PACKET_TAG_IPFORWARD tag.

Reviewed by: eugen
PR: 256828, 261697, 255705
Differential Revision: https://reviews.freebsd.org/D34732

(cherry picked from commit 7d98cc096b995ca3bfd85277ed009b0f872c3e1b)

2 years agomodules: fix mii build
Eugene Grosbein [Sat, 16 Apr 2022 21:56:06 +0000 (04:56 +0700)]
modules: fix mii build

Fixes: 9ef382e06546dd2234319bf2625a3f89e60764a3

2 years agoMFC: mii: include missing sources in loadable module
Milan Obuch [Sat, 2 Apr 2022 18:28:33 +0000 (15:28 -0300)]
MFC: mii: include missing sources in loadable module

As of today, using 'kldload miibus' is not equivalent to using 'device
miibus' in a kernel config. Newly introduced PHY drivers (DP83822,
DP83867, VSCPHY) and source files/PHY driver for FDT-enabled kernels
are missing. Without including them, kernel modules using any function
from dev/mii/mii_fdt.c refuse to load. Additionally, miivar.h directly
includes opt_platform.h.

Add the missing sources to the module build, with the FDT-only files
gated behind an OPT_FDT check. Maintain the alphabetical listing of
SRCS, but move the required header files to a separate line to improve
readability.

Reviewed by: mhorne, mindal@semihalf.com
Differential Revision: https://reviews.freebsd.org/D34256

(cherry picked from commit 517ea731d4e803450537e9369d6a16aa4081acd7)

2 years agoMFC: modules: mgb: need opt_platform.h
Kevin Lo [Mon, 24 Jan 2022 05:38:39 +0000 (13:38 +0800)]
MFC: modules: mgb: need opt_platform.h

This fixes the standalone build.

(cherry picked from commit dea952c3e21bfbb773a5570e8dde5c3383a70b18)

2 years agoDocument procstat(1) advlock command
Konstantin Belousov [Thu, 7 Apr 2022 19:49:54 +0000 (22:49 +0300)]
Document procstat(1) advlock command

(cherry picked from commit bd8701dede10cb308919152ca82d8200d09f204b)

2 years agoImplement procstat(1) advlocks command
Konstantin Belousov [Sat, 2 Apr 2022 14:13:17 +0000 (17:13 +0300)]
Implement procstat(1) advlocks command

(cherry picked from commit a5229a255ea9e67fe935da1f566be803c1e7f99f)

2 years agoprocstat(1): add ability to specify subcommands not requiring pid lists
Konstantin Belousov [Thu, 7 Apr 2022 18:27:12 +0000 (21:27 +0300)]
procstat(1): add ability to specify subcommands not requiring pid lists

(cherry picked from commit e79866ddf1c2147890226830838dcca5174c18e1)

2 years agolibprocstat: document procstat_getadvlock(3)
Konstantin Belousov [Sun, 3 Apr 2022 14:54:27 +0000 (17:54 +0300)]
libprocstat: document procstat_getadvlock(3)

(cherry picked from commit 50d3c72558f2d0c0ae0a037813a9af420935b538)

2 years agolibprocstat: add procstat_getadvlock(3)
Konstantin Belousov [Sun, 3 Apr 2022 14:42:03 +0000 (17:42 +0300)]
libprocstat: add procstat_getadvlock(3)

(cherry picked from commit 039d1496b0790a27cbec18e06b9494bf41254019)

2 years agoAdd sysctl KERN_LOCKF
Konstantin Belousov [Fri, 1 Apr 2022 23:23:06 +0000 (02:23 +0300)]
Add sysctl KERN_LOCKF

(cherry picked from commit eca39864f702e577eba3bc7e9992d1e5e56eba58)

2 years agosys/user.h: Add kinfo_lockf structure to report advisory locks
Konstantin Belousov [Fri, 1 Apr 2022 21:19:35 +0000 (00:19 +0300)]
sys/user.h: Add kinfo_lockf structure to report advisory locks

(cherry picked from commit 6ead1379fd42d96b57d58d338dae10b2e73fd8d8)

2 years agokern_lockf.c: remove no longer neeeded UFS headers
Konstantin Belousov [Fri, 1 Apr 2022 21:05:32 +0000 (00:05 +0300)]
kern_lockf.c: remove no longer neeeded UFS headers

(cherry picked from commit 147e4fe3f1f810790c9f08b4e412350393c9ac08)

2 years agolockf: remove lf_inode from struct lockf_entry
Konstantin Belousov [Fri, 1 Apr 2022 20:34:59 +0000 (23:34 +0300)]
lockf: remove lf_inode from struct lockf_entry

(cherry picked from commit 59e85819be69d354fa6f390b791fd9cd06a80f35)

2 years agoufs/acl.h: forward-declare struct inode
Konstantin Belousov [Fri, 1 Apr 2022 20:31:47 +0000 (23:31 +0300)]
ufs/acl.h: forward-declare struct inode

(cherry picked from commit 5c075d6404972fb337c55e959b25b46bae087ada)

2 years agoStyle.
Konstantin Belousov [Fri, 1 Apr 2022 20:28:32 +0000 (23:28 +0300)]
Style.

(cherry picked from commit 8cc19b1e47d06defe6d62da691a7a8f36727ec1a)

2 years agossh: regen sk_config.h after 73104d583850
Ed Maste [Sun, 6 Mar 2022 00:59:51 +0000 (19:59 -0500)]
ssh: regen sk_config.h after 73104d583850

(cherry picked from commit 822d379b1f474b3d9e3a82a7ce7dad96990b55b0)

2 years agossh: generate SK config file using private cbor and fido2 libs
Ed Maste [Tue, 1 Mar 2022 21:39:16 +0000 (16:39 -0500)]
ssh: generate SK config file using private cbor and fido2 libs

Specify -lprivatecbor and -lprivatefido2 in OpenSSH's configure.ac, and
pass -I paths to libcbor and libfido2's contrib src location.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34440

(cherry picked from commit 73104d583850f7447ae1fe70c59a42e69d9d407c)

2 years agossh: use standalone config file for security key support
Ed Maste [Tue, 1 Mar 2022 21:42:13 +0000 (16:42 -0500)]
ssh: use standalone config file for security key support

An upcoming OpenSSH update has multiple config.h settings that change
depending on whether builtin security key support is enabled.  Prepare
for this by moving ENABLE_SK_INTERNAL to a new sk_config.h header
(similar to the approach used for optional krb5 support) and optionally
including that, instead of defining the macro directly from CFLAGS.

Reviewed by: kevans
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34407

(cherry picked from commit 92ef98b8fa9273049af3cf2fcb4f5e13a6775ff8)

2 years agokbd: replace vestigial spl calls with Giant assertions
Ed Maste [Tue, 22 Mar 2022 17:48:43 +0000 (13:48 -0400)]
kbd: replace vestigial spl calls with Giant assertions

The keyboard driver was initially protected via spl* interrupt priority
calls but (as part of a comprehensive effort) migrated to use the Giant
lock (mutex).

The spl calls left behind became NOPs but they can be confusing as they
have no bearing on the actual mutual exclusion that is now present.

Remove them from kbd and add assertions that Giant is held.  markj notes
that there is conflation between the "bus topo" lock (which is Giant
under the hood) and Giant.  The assertions could either be addressed as
a small item along with bus topology locking work or they'll be removed
if kbd is decoupled from Giant.

PR: 206680
Reviewed by: markj
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34645

(cherry picked from commit a0cd78bf2c148d7ab63454471771e3f4b572522f)

2 years agonet: Fix memory leaks in lltable_calc_llheader() error paths
Mark Johnston [Fri, 8 Apr 2022 15:47:25 +0000 (11:47 -0400)]
net: Fix memory leaks in lltable_calc_llheader() error paths

Also convert raw epoch_call() calls to lltable_free_entry() calls, no
functional change intended.  There's no need to asynchronously free the
LLEs in that case to begin with, but we might as well use the lltable
interfaces consistently.

Noticed by code inspection; I believe lltable_calc_llheader() failures
do not generally happen in practice.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 990a6d18b0cb1eee9e18a4220150d549b9bee753)

2 years agolibctf: Fix recursive descent into anonymous SOU fields
Mark Johnston [Tue, 12 Apr 2022 19:24:40 +0000 (15:24 -0400)]
libctf: Fix recursive descent into anonymous SOU fields

PR: 262412
Tested by: dhw, gallatin
Fixes: a6fb86917362 ("libctf: Handle CTFv3 containers")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 6e563a1b608438504d963c2d7c70e50d2e75af46)

2 years agoLinuxKPI: add ALIGN_DOWN()
Bjoern A. Zeeb [Fri, 8 Apr 2022 15:30:19 +0000 (15:30 +0000)]
LinuxKPI: add ALIGN_DOWN()

Add ALIGN_DOWN as rounddown2() along ALIGN() which is implemented as
roundup2().

Sponsored by: The FreeBSD Foundation
Reviewed by: manu, hselasky (now with less ())
Differential Revision: https://reviews.freebsd.org/D34844

(cherry picked from commit 97f2e93a66a804ae9b6187998dbc4427b647e274)

2 years agoLinuxKPI: 802.11: add ieee80211_beacon_get_tim(), ieee80211_sn_sub()
Bjoern A. Zeeb [Fri, 8 Apr 2022 18:33:23 +0000 (18:33 +0000)]
LinuxKPI: 802.11: add ieee80211_beacon_get_tim(), ieee80211_sn_sub()

Add a dummy implementation for ieee80211_beacon_get_tim().
Add the implementation for ieee80211_sn_sub().

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 978f25e840fe4975f243e6077a764842f0e9d3eb)

2 years agoLinuxKPI: 802.11: further fix RSSI calculations
Bjoern A. Zeeb [Fri, 8 Apr 2022 11:00:11 +0000 (11:00 +0000)]
LinuxKPI: 802.11: further fix RSSI calculations

60970a328e280b25b05f1d9a9de1ef91af573c4a did one half of the job
of making rssi relative to nf and numbers for radiotap were fine.
net80211 internally works with .5 dBm units thus we need to apply a
* 2 to the value we pass in to c_rssi;  leave a comment explaining.

Note: it is only ifconfig in user space which re-adjust it for printing
or contrib/wpa for calculations.  Other applications getting values
from kernel also have to apply the maths.

In collaboration with: J.R. Oldroyd (fbsd opal.com)
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 170acccf1e191ae28571845ad6f0b5a2fbf0effc)

2 years agoLinuxKPI: skbuff: handle dev_alloc_skb() correctly
Bjoern A. Zeeb [Thu, 7 Apr 2022 18:06:55 +0000 (18:06 +0000)]
LinuxKPI: skbuff: handle dev_alloc_skb() correctly

dev_alloc_skb() comapred to alloc_skb() reserves some headroom
at the beginning of the skb which is used by drivers.
Split the code for the two cases and reserve NET_SKB_PAD space,
which should at least be 32 octets.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 9df5f29caf1a818999d0e908cab95c83bd1f4323)

2 years agoLinuxKPI: PCI: add counter for linux_dma_map_phys_common() errors
Bjoern A. Zeeb [Wed, 30 Mar 2022 17:38:23 +0000 (17:38 +0000)]
LinuxKPI: PCI: add counter for linux_dma_map_phys_common() errors

LinuxKPI is asking for single-segment mappings.  Some (wireless) drivers
are using this to map multi-pages and our busdma framework is not very
friendly to that as single-segments [D31823].  Add a counter so we can
track when this happens to gather more information.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34715

(cherry picked from commit e86707418c8e84e1ebf8b4c5f35ff641c234d067)

2 years agowpa: Correctly call pcap_next_ex()
Cy Schubert [Thu, 14 Apr 2022 01:45:49 +0000 (18:45 -0700)]
wpa: Correctly call pcap_next_ex()

The second argument to pcap_next_ex() is a pointer to a pointer.
Not a pointer. This fixes a wpa_supplicent SIGSEGV.

PR: 263266
Reported by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
Fixes: 6e5d01124fd4dd57899ddd9260c76dbb43543aa7

(cherry picked from commit 1e0ca65a3bb5798a80eccaae58d863f1f08b9ae8)

2 years agopf: use ERROUT_IOCTL()
Kristof Provost [Wed, 6 Apr 2022 14:45:18 +0000 (16:45 +0200)]
pf: use ERROUT_IOCTL()

Use ERROUT_IOCTL() rather than hand-rolling the macro. This adds DTrace
SDTs in the error path, making debugging ioctl errors easier.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit bef7104571f35eeffc27b25d8857a7940dd23ab8)

2 years agoufs: Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:59:14 +0000 (08:59 +0200)]
ufs: Fix a typo in a source code comment

- s/explicitely/explicitly/

(cherry picked from commit d4b3b0c2efd22b508e8c8240a5143cd9eb7b74d2)

2 years agopax(1): Remove a few double words in source code comments
Gordon Bergling [Sat, 9 Apr 2022 12:26:19 +0000 (14:26 +0200)]
pax(1): Remove a few double words in source code comments

- s/an an/an/

(cherry picked from commit ffedb32dd3683ebea41920f9fb61ba5404b50882)

2 years agosym(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 19:04:01 +0000 (21:04 +0200)]
sym(4): Fix a typo in a source code comment

- s/explicitely/explicitly/

(cherry picked from commit 4e27f867331c9db84e9c4cbdac1bbd49927f59d6)

2 years agoal_eth: Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 09:06:18 +0000 (11:06 +0200)]
al_eth: Remove a double word in a source code comment

- s/for for/for/

(cherry picked from commit 6a734168cb819cf2ea781a1e2fd83dc12adb0bd6)

2 years agofsck_ffs(8): Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 12:37:13 +0000 (14:37 +0200)]
fsck_ffs(8): Fix a typo in a source code comment

- s/it it/if it/

(cherry picked from commit 299fcf402dca215057b798286983f82c63a70a25)

2 years agoofed: Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 09:00:48 +0000 (11:00 +0200)]
ofed: Remove a double word in a source code comment

- s/for for/for/

(cherry picked from commit 6de6c9569169a6a58ebd4ce5b4478b383eaa87dc)

2 years agousb: Remove some double words in source code comments
Gordon Bergling [Sat, 9 Apr 2022 08:34:48 +0000 (10:34 +0200)]
usb: Remove some double words in source code comments

- s/for for/for/

(cherry picked from commit 74c6ca6fbf61a7879a91c5d0f68786c22ac8f0db)

2 years agonetgraph(3): Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 12:41:40 +0000 (14:41 +0200)]
netgraph(3): Remove a double word in a source code comment

- s/it it/it/

(cherry picked from commit ecbdfbfd18d963bb8b46bcca115a9243bcf02e27)

2 years agousb(4): Fix two typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 08:03:48 +0000 (10:03 +0200)]
usb(4): Fix two typos in source code comments

- s/negotation/negotiation/

(cherry picked from commit c8c1c23a8c9d0c4e7816dbe7e6a82673e0abf3ef)

2 years agokern: Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 08:50:04 +0000 (10:50 +0200)]
kern: Remove a double word in a source code comment

- s/for for/for/

(cherry picked from commit c3721292e35bd6aa27c3e444c9a110c458c302e7)

2 years agoqlnxe(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 18:46:27 +0000 (20:46 +0200)]
qlnxe(4): Fix a typo in a source code comment

- s/mulitple/multiple/

(cherry picked from commit 78fc83f096589c7c008fea3c1da7b6d55cb911d7)

2 years agoipnat(5): Fix a double word in the manual page
Gordon Bergling [Fri, 8 Apr 2022 18:49:08 +0000 (20:49 +0200)]
ipnat(5): Fix a double word in the manual page

- s/be be/be/

(cherry picked from commit d7958fe1bc23c0a8ceaa5eca1b73b9480e4807ab)

2 years agocam(4): Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 08:04:33 +0000 (10:04 +0200)]
cam(4): Remove a double word in a source code comment

- s/this this/this/

(cherry picked from commit 456b2bb97e1153ca81a15d51200ebbd1f19a643a)

2 years agonetpfil: Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:57:18 +0000 (08:57 +0200)]
netpfil: Fix a typo in a source code comment

- s/maintance/maintenance/

(cherry picked from commit 647baadf3c8a2965c0b0feb6dba344c275fdcbf3)

2 years agolibkern: Fix two typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 07:36:34 +0000 (09:36 +0200)]
libkern: Fix two typos in source code comments

- s/noticably/noticeably/

(cherry picked from commit d10abf84ad9f508e5e58ec76f90e960eef228b3f)

2 years agoi386: Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 12:30:34 +0000 (14:30 +0200)]
i386: Remove a double word in a source code comment

- s/an an/an/

(cherry picked from commit 9a22f7fb9da3c4e4b028c9008b13c7aa7018aa6e)

2 years agompt(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 12:10:05 +0000 (14:10 +0200)]
mpt(4): Fix a typo in a source code comment

- s/proccessor/processor/

(cherry picked from commit a37c6fcc46caffc15f0f22a7e4afce9192872c1a)

2 years agocxgbe(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 18:58:47 +0000 (20:58 +0200)]
cxgbe(4): Fix a typo in a source code comment

- s/simultaniously/simultaneously/

(cherry picked from commit 8a1b8cf4be90f99e3df776fb93851262263e2e7e)

2 years agobhnd(4): Remove some double words in source code comments
Gordon Bergling [Fri, 8 Apr 2022 18:57:15 +0000 (20:57 +0200)]
bhnd(4): Remove some double words in source code comments

- s/be be/be/
- s/is is/is/

(cherry picked from commit 060f5c02e94fe66b67eaccc12ff875797bc180b7)

2 years agohastd(8): Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 12:05:25 +0000 (14:05 +0200)]
hastd(8): Fix a typo in a source code comment

- s/proccesses/processes/

(cherry picked from commit b95a6ecffab4308ed8f737aaa94e24488a978121)

2 years agousb(4): Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 09:02:23 +0000 (11:02 +0200)]
usb(4): Remove a double word in a source code comment

- s/for for/for/

(cherry picked from commit 2e09a4ac3b48ceb4aaa22e5ca99bad38199a8c71)

2 years agonetpfil: Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 12:20:09 +0000 (14:20 +0200)]
netpfil: Remove a double word in a source code comment

- s/a a/a/

(cherry picked from commit a9f09d75ddff2e417160c05ebc549a96e94221f2)

2 years agotcp_htps: Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 07:01:38 +0000 (09:01 +0200)]
tcp_htps: Fix a typo in a source code comment

- s/postion/position/

(cherry picked from commit 1f2aaef29a17534ae397227c4d54657eef39dd74)