[Midnightbsd-cvs] [MidnightBSD/src] 5ef284: openssh: restore PrintLastLog option
Domien Schepers
noreply at github.com
Tue Jun 27 11:42:48 EDT 2023
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: 5ef284de9424eea6e894c8736d8d55340d9c2d5b
https://github.com/MidnightBSD/src/commit/5ef284de9424eea6e894c8736d8d55340d9c2d5b
Author: Ed Maste <emaste at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M crypto/openssh/configure.ac
Log Message:
-----------
openssh: restore PrintLastLog option
Upstream's autoconf sets DISABLE_LASTLOG if lastlog.ll_line does not
exist, but PrintLastLog also works with utmpx and other mechanisms.
Reported upstream at
https://lists.mindrot.org/pipermail/openssh-unix-dev/2022-May/040242.html
PR: 209441
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 43c6b7a60aff069da7e0ba6c87d3d7a532e812f6)
(cherry picked from commit 170511589e4d15a27ee92979691cfc1b26929bb7)
(cherry picked from commit 170520f882297617eaee7665a6813d03243e87a4)
Commit: f29d1c9f8b9c1a868284f7c4da145e3d30b031d4
https://github.com/MidnightBSD/src/commit/f29d1c9f8b9c1a868284f7c4da145e3d30b031d4
Author: Eugene Grosbein <eugen at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sbin/ipfw/ipfw.8
Log Message:
-----------
ipfw.8: MFC: improve description for interface matching
The manual describes "if*" form only while kernel uses fnmatch(3)
and allows use for more versatile shell-like patterns.
Note that explicitly and provide an example.
(cherry picked from commit 9f5dc374d0dadb6947a9bd9ff8ff44931e1b6422)
Commit: 6ab636d5b5a2b3ce40aea427db3918f968622ced
https://github.com/MidnightBSD/src/commit/6ab636d5b5a2b3ce40aea427db3918f968622ced
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M rescue/rescue/Makefile
Log Message:
-----------
Suppress lld 16 errors about multiply defined symbols in rescue
lld >= 16 became more strict about multiply defined symbols. Since there
are many of those in crunchgen'd programs, turn off the check when
linking the rescue binary.
MFC after: 1 week
(cherry picked from commit 458f4722bf974c7fa7961952fcaee146f5a97708)
Commit: 86de46b7c7d97317b3e33f2c1ca0c9493cba1a20
https://github.com/MidnightBSD/src/commit/86de46b7c7d97317b3e33f2c1ca0c9493cba1a20
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M share/mk/bsd.lib.mk
Log Message:
-----------
Suppress lld 16 errors about undefined symbols in version maps
lld >= 16 turned on --no-undefined-version by default, which results in
errors whenever symbols are mentioned in version maps, but are not
actually defined in the binary.
Since we have quite a few instances of symbols that are defined or not,
depending on various compile-time settings, suppress this lld check for
the time being.
MFC after: 1 week
(cherry picked from commit 2ba84b4bcdd6012e8cfbf8a0d060a4438623a638)
Commit: 7b844163c3071cd85e99b7227c80c4b78d35a137
https://github.com/MidnightBSD/src/commit/7b844163c3071cd85e99b7227c80c4b78d35a137
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M rescue/rescue/Makefile
Log Message:
-----------
Include bsd.linker.mk to get LINKER_TYPE and VERSION in rescue
To be able to use these make variables, you also have to include
bsd.linker.mk, apparently.
Fixes: 458f4722bf97
MFC after: 1 week
(cherry picked from commit 653e8c11f43dc6448b8560eb1f6679de2c47e1ed)
Commit: f9457798041b834188bca177ac7f49d7a06cc675
https://github.com/MidnightBSD/src/commit/f9457798041b834188bca177ac7f49d7a06cc675
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/powerpc/aim/mmu_oea.c
M sys/powerpc/aim/mmu_oea64.c
M sys/powerpc/booke/pmap.c
M sys/powerpc/powerpc/pmap_dispatch.c
Log Message:
-----------
powerpc: fix a few pmap related functions to return correct types
While experimenting with changing boolean_t to another type, I noticed
that several powerpc pmap related functions returned the wrong type:
boolean_t instead of int.
Fix several declarations and definitions to match the actual pmap
function types: pmap_dev_direct_mapped_t and pmap_ts_referenced_t.
MFC after: 3 days
(cherry picked from commit d142601887524fc595ed0f5e6a69419727222f0a)
Commit: 0da19231e842b9b770c7f719a138275c325d4d27
https://github.com/MidnightBSD/src/commit/0da19231e842b9b770c7f719a138275c325d4d27
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/acpica/acpi_pci_link.c
M sys/dev/acpica/acpi_pxm.c
M sys/dev/otus/if_otusreg.h
M sys/dev/puc/puc.c
M sys/dev/puc/puc_bfe.h
M sys/dev/quicc/quicc_bfe.h
M sys/dev/scc/scc_bfe.h
M sys/dev/uart/uart_bus.h
M sys/dev/wpi/if_wpivar.h
M sys/x86/include/x86_smp.h
Log Message:
-----------
Use bool for one-bit wide bit-fields
A signed one-bit wide bit-field can take only the values 0 and -1. Clang
16 introduced a warning that "implicit truncation from 'int' to a
one-bit wide bit-field changes value from 1 to -1". Fix the warnings by
using C99 bool.
Reported by: Clang 16
Reviewed by: emaste, jhb
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D39705
(cherry picked from commit bab8274c090942cf96c44bc001307b9bffac9d7e)
Commit: b1a26de9d306169d0187c26b0561acc3d6e539c7
https://github.com/MidnightBSD/src/commit/b1a26de9d306169d0187c26b0561acc3d6e539c7
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/al_eth/al_init_eth_lm.c
Log Message:
-----------
al_eth: make function definitions consistent with declarations
The declarations for al_eth_lm_retimer_ds25_signal_detect() and
al_eth_lm_retimer_ds25_cdr_lock() say that these functions return
'al_bool', but the definitions actually return 'boolean_t'.
Make the definitions match the declarations.
Reviewed by: jhb, emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D39759
(cherry picked from commit 9ea31d78f00d23612f3ab44d83265f8039f487af)
Commit: 78a4a1116d75636b0768ed209c01292942dccd77
https://github.com/MidnightBSD/src/commit/78a4a1116d75636b0768ed209c01292942dccd77
Author: Mariusz Zaborski <oshogbo at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/mpr/mpr.c
Log Message:
-----------
mpr: don't use hardcoded value in debug branch
Pointed out by: imp
Sponsored by: Klara Inc.
(cherry picked from commit 444c6615459efe2b015deb1cffc54fcaa3ea1fca)
Commit: f37b53d5ad1917e79e57aabceda1face945b73f8
https://github.com/MidnightBSD/src/commit/f37b53d5ad1917e79e57aabceda1face945b73f8
Author: John Baldwin <jhb at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M lib/libpmc/Makefile
Log Message:
-----------
libpmc: Use LIB_CXX instead of explicit LDADD to link a C++ library.
This uses the C++ compiler as the linker instead of the C compiler
letting the compiler driver pick the right libraries. This is a no-op
on main and stable/13 but matters for stable/12 where the current
logic breaks for external GCC since it tries to use a non-existent
libstdc++.
Reviewed by: emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39197
(cherry picked from commit c6b3f47fedd3f94f74cc4f7c40761b1d0e777f17)
Commit: 2fce923465d9fe9aba4847b0a5772b19b1bb179b
https://github.com/MidnightBSD/src/commit/2fce923465d9fe9aba4847b0a5772b19b1bb179b
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M contrib/llvm-project/clang/include/clang/Sema/Sema.h
M contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
Log Message:
-----------
Apply clang fix for assertion building emulators/rpcs3
Merge commit a5e1a93ea10f from llvm-project (by Mariya Podchishchaeva):
[clang] Fix crash when handling nested immediate invocations
Before this patch it was expected that if there was several immediate
invocations they all belong to the same expression evaluation context.
During parsing of non local variable initializer a new evaluation context is
pushed, so code like this
```
namespace scope {
struct channel {
consteval channel(const char* name) noexcept { }
};
consteval const char* make_channel_name(const char* name) { return name;}
channel rsx_log(make_channel_name("rsx_log"));
}
```
produced a nested immediate invocation whose subexpressions are attached
to different expression evaluation contexts. The constructor call
belongs to TU context and `make_channel_name` call to context of
variable initializer.
This patch removes this assumption and adds tracking of previously
failed immediate invocations, so it is possible when handling an
immediate invocation th check that its subexpressions from possibly another
evaluation context contains errors and not produce duplicate
diagnostics.
Fixes https://github.com/llvm/llvm-project/issues/58207
Reviewed By: aaron.ballman, shafik
Differential Revision: https://reviews.llvm.org/D146234
PR: 269489
MFC after: 3 days
(cherry picked from commit 56f2446575c78d962b6dda5e3310bec078622f3d)
Commit: 69385c50136394da7ab383fc26566dab0c7b5d2d
https://github.com/MidnightBSD/src/commit/69385c50136394da7ab383fc26566dab0c7b5d2d
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/vm/default_pager.c
M sys/vm/phys_pager.c
M sys/vm/sg_pager.c
M sys/vm/swap_pager.c
M sys/vm/vm_pager.c
Log Message:
-----------
vm: fix a number of functions to match the expected prototypes
Noticed while attempting to make boolean_t unsigned: some vm-related
function declarations and defintions were using boolean_t where they
should have used int, and vice versa.
MFC after: 1 week
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D39753
(cherry picked from commit f74be55e3045793a507d98127faf9aabd918e1ce)
Commit: 0442f5f526a6bcabe7ded7cbe7c4086baf238acd
https://github.com/MidnightBSD/src/commit/0442f5f526a6bcabe7ded7cbe7c4086baf238acd
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/sys/types.h
Log Message:
-----------
boolean_t: change to unsigned int to avoid signed bitfield warnings
This is the final part, which actually makes boolean_t unsigned. Note
that we do not change its size, nor do we try to change it directly to
bool, since that results in a lot of regressions.
Converting the remaining instances of boolean_t to plain C99 bool can
now be done in a piecemeal fashion, after which boolean_t may hopefully
be retired.
MFC after: 1 week
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D39753
(cherry picked from commit 3029b0b0e9d68eb54e3bdd9e3e49e0f0d2d57835)
Commit: 6ed84e5e75d87d65ec2a6516a337308ba39633cf
https://github.com/MidnightBSD/src/commit/6ed84e5e75d87d65ec2a6516a337308ba39633cf
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/powerpc/powerpc/pmap_dispatch.c
Log Message:
-----------
powerpc: fix another pmap related function to return the correct type
Missed one prototype while cherry-picking commit d14260188752.
Fixes: e9e1f2a88e4b
Commit: 61bb80ad05746edae919b5353496ea0d2c774b07
https://github.com/MidnightBSD/src/commit/61bb80ad05746edae919b5353496ea0d2c774b07
Author: Ravi Pokala <rpokala at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M share/man/man4/jedec_dimm.4
M sys/dev/jedec_dimm/jedec_dimm.c
M sys/dev/jedec_dimm/jedec_dimm.h
Log Message:
-----------
jedec_dimm(4): Add manufacturing year and week.
DDR3 and DDR4 encode the week and year that the DIMM was manufactured,
as a pair of two-digit binary-coded decimal values. Read the values, and
report them as (uint8_t)s.
Reviewed by: imp, jhb
MFC after: 1 week
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D39795
(cherry picked from commit de57e0ef5a15c75231191e643d4d1949ddbca92d)
Commit: e21aebe9d2067ba9586fd3f17dc57d915fb14270
https://github.com/MidnightBSD/src/commit/e21aebe9d2067ba9586fd3f17dc57d915fb14270
Author: Ravi Pokala <rpokala at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/jedec_dimm/jedec_dimm.c
Log Message:
-----------
jedec_dimm(4): Refactor offset adjustment and page0 reset
Offsets greater than 255 bytes reside on page1 of the SPD device.
Accessing them requires switching to page1, and adjusting the absolute
offset to be relative to the start of page1. After the access, the page
must be set back to page0. These operations are performed in several
places, so break them out into their own functions.
Also, replace a pair of default cases, which should be impossible due to
earlier checks, with __assert_unreachable().
Reviewed by: imp
MFC after: 1 week
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D39842
(cherry picked from commit 15d69c840d860a8c0decb063f768ad695427a0d4)
Commit: 4c3b49cf1e24d9c715ac6dd66aa2069fa0421b77
https://github.com/MidnightBSD/src/commit/4c3b49cf1e24d9c715ac6dd66aa2069fa0421b77
Author: Jason A. Harmening <jah at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/x86/iommu/intel_utils.c
Log Message:
-----------
Intel DMAR: remove parsing of 6-level paging capability
Early versions of the VT-d spec mentioned 6-level paging support as a
possible value for the SAGAW capability, but later versions removed it
and SAGAW=0x10 is currently listed as a reserved value.
The 6-level (agaw=64) entry in sagaw_bits is furthermore problematic
with clang15 because the attempted comparison against 1ULL << 64 in
dmar_maxaddr2mgaw() causes the compiler to elide the last iteration
of the initial loop, which bypasses the subsequent logic to find the
greatest HW-supported address width. This results in 5-level paging
always being selected regardless of whether the hardware supports it,
which can result address translation failure due to invalid context-
entry programming.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D39896
(cherry picked from commit 6f378116e9bf982b8246d033d81cb64d52b24462)
Commit: 868b5bbc78acd90251052e8c756f4cb11713855f
https://github.com/MidnightBSD/src/commit/868b5bbc78acd90251052e8c756f4cb11713855f
Author: Kristof Provost <kp at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/e1000/if_em.c
Log Message:
-----------
e1000: fix VLAN 0
VLAN 0 essentially means "Treat as untagged, but with priority bits",
and is used by some ISPs.
On igb/em interfaces we did not receive packets with VLAN tag 0 unless
vlanhwfilter was disabled.
This can be fixed by explicitly listing VLAN 0 in the hardware VLAN
filter (VFTA). Do this from em_setup_vlan_hw_support(), where we already
(re-)write the VFTA.
Reviewed by: kbowling
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D40046
(cherry picked from commit 0229fab2fe0eed843ebec98fd31b7d49bb2e8438)
Commit: 7dc391b8e5b9de3bf5ffa685c91ff2a4404e1bec
https://github.com/MidnightBSD/src/commit/7dc391b8e5b9de3bf5ffa685c91ff2a4404e1bec
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/net/if_stf.c
Log Message:
-----------
if_stf: Delete unreachable code
As the flag M_WAITOK is passed to ip_encap_attach(), then the function
will never return NULL, and the following code within NULL check branch
will be unreachable.
No functional change intended.
Reviewed by: kp
Fixes: 6d8fdfa9d5e7d Rework IP encapsulation handling code
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39746
(cherry picked from commit c373e1d6adbc3785e8f1072cdc4a062733baa514)
(cherry picked from commit f70caf1b4524c10d3a747770c69da9d7b6a56a22)
Commit: 52d38a08bf0fbe347ac662fb13c71f254b65451e
https://github.com/MidnightBSD/src/commit/52d38a08bf0fbe347ac662fb13c71f254b65451e
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/netinet/ip_mroute.c
Log Message:
-----------
ip_mroute: Delete unreachable code
As the flag M_WAITOK is passed to ip_encap_attach(), then the function
will never return NULL, and the following code within NULL check branch
will be unreachable.
No functional change intended.
Reviewed by: kp
Fixes: 6d8fdfa9d5e7d Rework IP encapsulation handling code
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39746
(cherry picked from commit b658c0fce10a06493dc468fc9f6699120473e17b)
(cherry picked from commit ece63e96c364679e19c124d145abe5af789d1948)
Commit: a36030b83f7c549c081f09655c7d0d1a12246eb1
https://github.com/MidnightBSD/src/commit/a36030b83f7c549c081f09655c7d0d1a12246eb1
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M share/man/man5/elf.5
Log Message:
-----------
elf.5: Fix conjugation of holds
MFC after: 1 week
(cherry picked from commit 6f96b5487f4359199ceb8339d2d7063e2249f538)
(cherry picked from commit 4d7d39b0f20874cda49771067f92e129840976fc)
Commit: fc2a49b0c14e3d60d75b61a9ba664aa924c3a13c
https://github.com/MidnightBSD/src/commit/fc2a49b0c14e3d60d75b61a9ba664aa924c3a13c
Author: Ian Moffett <ian at mkall.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/ixgbe/ixgbe_api.c
M sys/dev/ixgbe/ixgbe_common.c
Log Message:
-----------
ixgbe: Fix typos in source code comments
- s/feilds/fields/
Reviewed by: zlei
MFC after: 3 days
Pull Request: https://github.com/freebsd/freebsd-src/pull/707
(cherry picked from commit 99cb088f1a2513ad71225b9691e0aed09ba8fafe)
(cherry picked from commit 1437712fd8c969847c339b43261a914b99b1aa05)
Commit: 267ae8fb289d5211d13f167df2b5d7b89e161e3d
https://github.com/MidnightBSD/src/commit/267ae8fb289d5211d13f167df2b5d7b89e161e3d
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/mps/mps.c
Log Message:
-----------
mps: Fix a typo in a source code comment
- s/feild/field/
MFC after: 3 days
(cherry picked from commit 5bcbdb0b2eb4c14ef0a8671c996337acdefb7f72)
(cherry picked from commit 3056dfbdf815d0536ab045b1aa3d600260a19e95)
Commit: c54ba2d62ee8c249cfc52e7d0f753ef016e0dac8
https://github.com/MidnightBSD/src/commit/c54ba2d62ee8c249cfc52e7d0f753ef016e0dac8
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/mrsas/mrsas.h
Log Message:
-----------
mrsas: Fix a typo in a source code comment
- s/feild/field/
MFC after: 3 days
(cherry picked from commit bbfb244724e25933d7c7cf68b943e0c2a7d6e381)
(cherry picked from commit 62af5091a4f757b2c356a1dbf8edf40548b0a724)
Commit: a9d1ed17294711a63d6b1acef6469a7a2d2058ab
https://github.com/MidnightBSD/src/commit/a9d1ed17294711a63d6b1acef6469a7a2d2058ab
Author: Baptiste Daroussin <bapt at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M usr.sbin/pw/pw_user.c
Log Message:
-----------
pw: do not call system()
Calling system makes pw(8) spawn a shell, which can then be abused.
MFC After: 3 days
(cherry picked from commit ef7d0eb9489f39169a1ae83c576fe74e40d126ad)
Commit: d437e498f92f2453dfe9b7a97bfb3203662d0c89
https://github.com/MidnightBSD/src/commit/d437e498f92f2453dfe9b7a97bfb3203662d0c89
Author: Michael Osipov <michael.osipov at siemens.com>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M usr.sbin/periodic/etc/security/100.chksetuid
M usr.sbin/periodic/etc/security/110.neggrpperm
Log Message:
-----------
periodic: Use locale-agnostic (ISO 8601) timestamp format
Instead of reyling on locale-sensitive output which can be mangled when e-mailed
use consistently ISO 8601 format which contains the same information as '-T'.
PR: 271240
MFC After: 3 days
(cherry picked from commit d2b4753f06dcabc090080b8c8c91bda00fc8dac3)
Commit: fbf44a0eb88a066a11dde19a69d47f587270d735
https://github.com/MidnightBSD/src/commit/fbf44a0eb88a066a11dde19a69d47f587270d735
Author: pbuff <pbuff at qq.com>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M usr.sbin/pw/pw_user.c
Log Message:
-----------
pw: The pw_checkname function has added ';' checking.
The pw_checkname function forgot to include a ';'
when checking usernames, causing shell commands
to be executed when a username with a ';' is deleted.
PR: 271427
MFC After: 3 days
(cherry picked from commit e0155c6989049da43c5499f7129002aa17d1ca79)
Commit: 38bbbf1bc5964f6d7f32664c16d41cc18f20e82e
https://github.com/MidnightBSD/src/commit/38bbbf1bc5964f6d7f32664c16d41cc18f20e82e
Author: Jose Luis Duran <jlduran at gmail.com>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M share/man/man5/passwd.5
Log Message:
-----------
passwd.5: Remove .Tn (Trade Name) macros
To appease mandoc -T lint, remove .Tn macros.
MFC After: 3 days
(cherry picked from commit d047a4e486a44ca5ada29bf3461903867424c414)
Commit: bfd2019f63bbbe71f1c36318dec46740e2726ec9
https://github.com/MidnightBSD/src/commit/bfd2019f63bbbe71f1c36318dec46740e2726ec9
Author: Jose Luis Duran <jlduran at gmail.com>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M share/man/man5/passwd.5
Log Message:
-----------
passwd.5: Update man page after e0155c6989049da43c5499f7129002aa17d1ca79
MFC After: 3 days
(cherry picked from commit 6e068d6bea4d8282704b4e157da3da584dc67a2d)
Commit: 2e7200c464e381bdede3f1d799682487bbb58719
https://github.com/MidnightBSD/src/commit/2e7200c464e381bdede3f1d799682487bbb58719
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M share/man/man4/ixgbe.4
Log Message:
-----------
ix(4): correct max MTU
The max MTU for the ix(4) is 9710.
Differential revision: https://reviews.freebsd.org/D40003
Approved by: erj, bcr
(cherry picked from commit 2e57f7bf209281e176f16ca3c5716807479873f8)
(cherry picked from commit af8fd75b45936fc7979fdce5a8ae763baaf14de3)
Commit: 1d6c366dc816abb44f0dad0735b9385c9d99bb91
https://github.com/MidnightBSD/src/commit/1d6c366dc816abb44f0dad0735b9385c9d99bb91
Author: Rick Macklem <rmacklem at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/fs/nfsserver/nfs_nfsdport.c
Log Message:
-----------
nfsd: Fix NFSv3 Readdir/ReaddirPlus reply for large i-node numbers
If the i-node number (d_fileno) for a file on the server did
not fit in 32bits, it would be truncated to the low order 32bits
for the NFSv3 Readdir and ReaddirPlus RPC replies.
This is no longer correct, given that ino_t is now 64bits.
This patch fixes this by sending the full 64bits of d_fileno
on the wire in the NFSv3 Readdir/ReaddirPlus RPC reply.
PR: 271174
(cherry picked from commit 648a208ef3a171585f3446464646832f0e0ed3dc)
Commit: 6eda6a8496423b38b8c6c62747604742a2cee87a
https://github.com/MidnightBSD/src/commit/6eda6a8496423b38b8c6c62747604742a2cee87a
Author: Kristof Provost <kp at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M tests/sys/netpfil/pf/pfsync.sh
Log Message:
-----------
pfsync tests: check for the correct IP address
When checking if the state synced over we should look for
198.51.100.254, not 198.51.100.2. The test worked because the incorrect
address is a substring of the correct one, but we should fix it anyway.
Reported by: Naman Sood <naman at freebsdfoundation.org>
MFC after: 1 week
(cherry picked from commit 0d574d8ba8b244f40c1484123c5042f49ac642b8)
Commit: 210c2c8248d612c7c188784e35f879c51128eef3
https://github.com/MidnightBSD/src/commit/210c2c8248d612c7c188784e35f879c51128eef3
Author: Eric van Gyzen <vangyzen at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/netinet/ip_output.c
Log Message:
-----------
Fix NULL deref in ip_output during route change
When changing the interface address during a route change,
the rtentry's rt_ifa will be NULL briefly. Some parts of
ip_output do not handle that NULL. In such case, re-validate
the rtentry. That validation does not check the rt_ifa, but
it does lock the route, which will synchronize with
rtrequest1_fib_change.
I would prefer to leave the rt_ifa pointer intact during
the route change, but ip6_output is not fully protected
by the net_epoch, so that could allow a use-after-free.
ip6_output already handles a NULL rt_ifa.
This is a direct commit to stable/12 because later branches
have nexthop and do not appear to have this bug.
PR: 271573
Reported by: Gaurav.Gandhi at dell.com
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D40236
Commit: 8a1e555c99c6b76659a30b9b4235d85e410e18b3
https://github.com/MidnightBSD/src/commit/8a1e555c99c6b76659a30b9b4235d85e410e18b3
Author: Dimitry Andric <dim at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M contrib/llvm-project/clang/include/clang/Basic/BuiltinsAArch64.def
M contrib/llvm-project/clang/include/clang/Basic/BuiltinsARM.def
M contrib/llvm-project/clang/lib/Basic/Targets/AArch64.cpp
M contrib/llvm-project/clang/lib/Basic/Targets/ARM.cpp
Log Message:
-----------
Apply clang fixes for crashes compiling ARM/AArch64 CRC intrinsics
Merge commit 069ecd0c6e2c from llvm-project (by Fangrui Song):
[ARM] Check target feature support for __builtin_arm_crc*
`__builtin_arm_crc*` requires the target feature crc which is available on armv8
and above. Calling the fuctions for armv7 leads to a SelectionDAG crash.
```
% clang -c --target=armv7-unknown-linux-gnueabi -c a.c
fatal error: error in backend: Cannot select: intrinsic %llvm.arm.crc32b
PLEASE submit a bug report to ...
```
Add `TARGET_BUILTIN` and define required features for these builtins to
report an error in `CodeGenFunction::checkTargetFeatures`. The problem is quite widespread.
I will add `TARGET_BUILTIN` for more builtins later.
Fix https://github.com/llvm/llvm-project/issues/57802
Differential Revision: https://reviews.llvm.org/D134127
Merge commit b2d7a0dcf1ff from llvm-project (by Fangrui Song):
[AArch64] Check target feature support for __builtin_arm_crc*
This is the AArch64 counterpart of D134127.
Daniel Kiss will change more `BUILTIN` to `TARGET_BUILTIN`.
Fix #57802
Note that programs attempting to use ARM/AArch64 CRC intrinsics, when
they are not supported by the targeted CPU, will still receive a regular
compilation error (instead of a fatal backend error) similar to:
7zCrc.c:4:10: error: '__builtin_arm_crc32b' needs target feature crc
return __builtin_arm_crc32b(a, b);
^
Reported by: Alastair Hogge <agh at riseup.net>
PR: 271624
MFC after: 3 days
(cherry picked from commit 8792c03886d9e6df10fbac825819603dc059c7ea)
Commit: 1d66d766549f24df5d634959e31836779c62e776
https://github.com/MidnightBSD/src/commit/1d66d766549f24df5d634959e31836779c62e776
Author: Przemyslaw Lewandowski <przemyslawx.lewandowski at intel.com>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/dev/ixgbe/if_ix.c
Log Message:
-----------
ixgbe: Change if condition for RSS and rxcsum
This patch fixes TCP connection hangs for 1 rxq and 1 txq without rxcsum
enabled. Documentation for 10G cards and other drivers suggest enabling
rxcsum for RSS and disabling otherwise. When PCSD bit is not set then
fragment checksum and IP identification are reported in the rx
descriptor. When PCSD bit is set then RSS hash value is reported in the
rx descriptor. RSS and RX IPP checksum are mutually exclusive.
Signed-off-by: Eric Joyner <erj at FreeBSD.org>
PR: 268910
Reviewed by: erj@
Tested by: jeffrey.e.pieper at intel.com
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D38621
(cherry picked from commit 156424fce98a0240c702da0a918b027d1979bfdb)
Commit: b27b0cc20f61aeae6e5c9408672159b4a33d8b72
https://github.com/MidnightBSD/src/commit/b27b0cc20f61aeae6e5c9408672159b4a33d8b72
Author: Ed Maste <emaste at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M crypto/openssh/authfd.c
Log Message:
-----------
openssh: include destination constraints for smartcard keys
>From openssh-portable 54ac4ab2b53ce9fcb66b8250dee91c070e4167ed,
OpenBSD-Commit-ID: add879fac6903a1cb1d1e42c4309e5359c3d870f
PR: 271839
Sponsored by: The FreeBSD Foundation
Commit: 9f22beedd3b98da4bac7c65811ff93d915f7c88e
https://github.com/MidnightBSD/src/commit/9f22beedd3b98da4bac7c65811ff93d915f7c88e
Author: Ed Maste <emaste at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M crypto/openssh/ssh.c
Log Message:
-----------
ssh: fix leak and apply style(9) to hostname canonicalization
Fixes: bf2e2524a2ce ("ssh: canonicize the host name before...")
Fixes: 3e74849a1ee2 ("ssh: canonicize the host name before...")
Reviewed by: rew
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38441
(cherry picked from commit 19aba210e1a1b5999bff10cccab5a277060c4d46)
(cherry picked from commit 792d3f16868e5f79ab8b11803340251371515f0a)
Commit: 62adb14b56c219a1e5601a2264f5dc73f72dabeb
https://github.com/MidnightBSD/src/commit/62adb14b56c219a1e5601a2264f5dc73f72dabeb
Author: Ed Maste <emaste at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M crypto/openssh/sftp.c
Log Message:
-----------
sftp: avoid leaking path arg in calls to make_absolute_pwd_glob
As Coverity reports:
Overwriting tmp in tmp = make_absolute_pwd_glob(tmp, remote_path)
leaks the storage that tmp points to.
Consume the first arg in make_absolute_pwd_glob, and add xstrdup() to
the one case which did not assign to the same variable that was passed
in. With this change make_absolute() and make_absolute_pwd_glob() have
the same semantics with respect to freeing the input string.
This change was reported to OpenSSH in
https://lists.mindrot.org/pipermail/openssh-unix-dev/2022-November/040497.html
[and was later adopted upstream].
Reported by: Coverity Scan
CID: 1500409
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37253
(cherry picked from commit 69c72a57af843267b220f8367c4cc7162a12d696)
(cherry picked from commit 533a942a213c9e852265f94d27f1e9768294eaa6)
Commit: 1004f6282f99baae2ab3e0e43a36a0239ac1cecc
https://github.com/MidnightBSD/src/commit/1004f6282f99baae2ab3e0e43a36a0239ac1cecc
Author: Mina Galić <freebsd at igalic.co>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M share/man/man8/rc.8
Log Message:
-----------
rc(8): document how to reload rc's configuration
The fact that rc(8) only reads its configuration once is in the man
page, but how to trigger a reload is only in the code.
Discovered while trying to make cloud-init disable and stop syslogd.
Thanks to RhodiumToad for providing the words.
Reviewed by: debdrup, grahamperrin
Approved by: grahamperrin, imp
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D40329
(cherry picked from commit 0981275c75d5678172eb9dd8fbc89ef61c05c979)
Commit: 1b85996a8c4bd0b67f1fcd1e87a1005540e5a505
https://github.com/MidnightBSD/src/commit/1b85996a8c4bd0b67f1fcd1e87a1005540e5a505
Author: Sean Eric Fagan <sef at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M lib/libutil/login_cap.c
Log Message:
-----------
Allow a comma-separated list in login class capabilities,
by adding a version of strcspn that allows quoting.
PR: 236204
Differential Revision: https://reviews.freebsd.org/D25368
(cherry picked from commit f32db406504ece1b28f43dc816736e081fe22826)
(cherry picked from commit f122e552354e84f18b82d11e40c6f8f214ed8abc)
Commit: 3f76c9f5e0713a374d7408f577dd51ea0d2096ce
https://github.com/MidnightBSD/src/commit/3f76c9f5e0713a374d7408f577dd51ea0d2096ce
Author: Gordon Bergling <gbe at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M lib/libc/xdr/xdr_rec.c
Log Message:
-----------
xdr(3): Fix a typo in a source code comment
- s/curren/current/
(cherry picked from commit 85604f7008ee7c963bb6dc8417582f9c31bb4ad3)
Commit: daa2ee1403159605200d63e657aa19605beed170
https://github.com/MidnightBSD/src/commit/daa2ee1403159605200d63e657aa19605beed170
Author: Ed Maste <emaste at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M usr.sbin/midnightbsd-update/midnightbsd-update.sh
Log Message:
-----------
freebsd-update: avoid effects of user's environment on grep
A user had GREP_OPTIONS containing --color=always, which broke grep use
in freebsd-update. Unset this environment variable.
PR: 255990
Reviewed by: kevans
Approved by: re (cperciva, expedited MFC)
Sponsored by: The FreeBSD Foundation
(cherry picked from commit e093c61b2d69e9cca54a2332096c0e36f97bffc0)
(cherry picked from commit 24fe8a518324e291b9ea3fe4e60f2e0fb4f857c5)
Commit: d154b7739170ccff9fb180aae9cc1ea7847579c2
https://github.com/MidnightBSD/src/commit/d154b7739170ccff9fb180aae9cc1ea7847579c2
Author: Ed Maste <emaste at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M usr.sbin/midnightbsd-update/midnightbsd-update.sh
Log Message:
-----------
freebsd-update: re-edit files if merge conflict markers remain
freebsd-update will open ${EDITOR} if conflicts occur while merging
updates to config files. Inform the user if they've left conflict
markers behind, and go back to editing the file.
PR: 185546
PR: 229689
Reviewed by: delphij
Approved by: re (cperciva, expedited MFC)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37703
(cherry picked from commit ceb5f28ba5fcfa69de7410d2327d4a5abf2a421f)
(cherry picked from commit c7e3703352037a5afacdc4126725f351fe7da72b)
(cherry picked from commit e27ded83c76a609687a3d9e82b80fe7e1b782bf6)
(cherry picked from commit b562307b70346030f59fe6a05d125814c74da47b)
Commit: 855ca6787b2d585736fa812f68698fd812a8c7c5
https://github.com/MidnightBSD/src/commit/855ca6787b2d585736fa812f68698fd812a8c7c5
Author: Kristof Provost <kp at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/netpfil/pf/pf_nv.c
Log Message:
-----------
pf: fix pf_nv##_array() size check
We want to set the maximum number of elements we'll accept, not the
exact number we need.
MFC after: 3 weeks
Sponsored by: Orange Business Services
(cherry picked from commit 76c8f202a4f6a3190e102a0bc1589bbfc179abf6)
Commit: 5c94cde5b48bc95ed8ab6fe487835d7b38da3690
https://github.com/MidnightBSD/src/commit/5c94cde5b48bc95ed8ab6fe487835d7b38da3690
Author: Gordon Bergling <gbe at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M lib/libc/nameser/ns_name.c
Log Message:
-----------
nameser: Fix a typo in a source code comment
-s /unknwon/unknown/
(cherry picked from commit 8f79b07564df4deccf63478c2a87dafabeac95c3)
Commit: c8ecf518cbb45e20ae5c31bf288a6315089b7578
https://github.com/MidnightBSD/src/commit/c8ecf518cbb45e20ae5c31bf288a6315089b7578
Author: Brad Smith <brad at comstyle.com>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M lib/msun/man/sincos.3
Log Message:
-----------
msun: Correct FreeBSD version in sincos() man page
The sincos() man page notes the function was added to msun in FreeBSD
9.0 which must have been an oversight in the review as it was commited
to 12.0 and then backported to the 11 branch.
So I have provided a diff to correct this to the first FreeBSD version
it did ship with which was 11.2.
Reviewed by: dim, imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D40308
(cherry picked from commit 2c01176a2802cb261d56a09c9faf9bff9dfb3536)
Commit: 29b61bd49a0ae2c11cb76207059a8966ccea02bc
https://github.com/MidnightBSD/src/commit/29b61bd49a0ae2c11cb76207059a8966ccea02bc
Author: R. Christian McDonald <rcm at rcm.sh>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M contrib/wpa/src/l2_packet/l2_packet_freebsd.c
Log Message:
-----------
wpa: Enable receiving priority tagged (VID 0) frames
Certain internet service providers transmit vlan 0 priority tagged
EAPOL frames from the ONT towards the residential gateway. VID 0
should be ignored, and the frame processed according to the priority
set in the 802.1P bits and the encapsulated EtherType (i.e. EAPOL).
The pcap filter utilized by l2_packet is inadquate for this use case.
Here we modify the pcap filter to accept both unencapsulated and
encapsulated (with VLAN 0) EAPOL EtherTypes. This preserves the
original filter behavior while also matching on encapsulated EAPOL.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Reviewed by: cy
Differential Revision: https://reviews.freebsd.org/D40442
(cherry picked from commit bb5d6d14d81b0789d2e73da03571603426afef56)
Commit: 9ee4feccfcf448d0a00a092550bff337d7d357ac
https://github.com/MidnightBSD/src/commit/9ee4feccfcf448d0a00a092550bff337d7d357ac
Author: Michael Tuexen <tuexen at FreeBSD.org>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/netinet/libalias/alias_sctp.c
Log Message:
-----------
libalias: improve handling of invalid SCTP packets
In case of a paritial chunk only pretend the result is OK if
the packet is not the last fragment and there is a valid association.
PR: 267476
(cherry picked from commit 9a714376212ec1685fdc4cf254f2136a07ae6d2c)
Commit: acd7268b61b6a7b5a8ad9c76e643b76d787c515a
https://github.com/MidnightBSD/src/commit/acd7268b61b6a7b5a8ad9c76e643b76d787c515a
Author: domienschepers <schepers.d at northeastern.edu>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M sys/net80211/ieee80211_crypto.c
Log Message:
-----------
net80211: fail for unicast traffic without unicast key
Falling back to the multicast key may cause unicast traffic to leak.
Instead fail when no key is found.
For more information see the 'Framing Frames: Bypassing Wi-Fi Encryption
by Manipulating Transmit Queues' paper.
[ I updated the commit message to reference the paper and the code
comment to record historic behaviour as discussed in private email. ]
(cherry picked from commit 61605e0ae5d8f34b89b8e71e393f3006f511e86a)
Compare: https://github.com/MidnightBSD/src/compare/5708d69f748b...acd7268b61b6
More information about the Midnightbsd-cvs
mailing list