Commit Graph

10187 Commits

Author SHA1 Message Date
Baptiste Daroussin 52d19df19e nvi: import version 2.2.2 2026-01-14 16:28:57 +01:00
Baptiste Daroussin 68ad2b0d7a ncurses: merge update to ncurses 6.6
6.6 is ABI compatible with 6.5 (tested with abidiff)
Remove html documentation to ease updates

MFC After:	1 month
2026-01-14 14:48:32 +01:00
Jose Luis Duran 4250d2ad99 Import latest mtree from NetBSD
Merge commit '7e59b238fcf32f3d365e78ddc702ca494e1ff68d'

This commit partially reverts the previous vendor import, given that the
"type" keyword has been historically mandatory and should not be removed
by "-R all".  This was clarified in the man page.

Reported by:	glebius
PR:		219467
MFC after:	1 week
2026-01-11 16:42:18 +00:00
Igor Ostapenko 8a21c17ccf kyua: Add "debug -x|--execute cmd" option
With execenv=jail specified, the "cmd" runs inside the test's jail.

Reviewed by:	ngie, markj
Differential Revision:	https://reviews.freebsd.org/D52642
2026-01-11 13:43:33 +00:00
Viacheslav Chimishuk 0a5535d1c5 grep: add testcase to test color when matches is greater than MAX_MATCHES
Reviewed by: imp, kevans
Pull Request: https://github.com/freebsd/freebsd-src/pull/1442
2026-01-09 16:22:48 -07:00
Martin Matuska 4b047c3af3 libarchive: merge from vendor branch
libarchive 3.8.5

Important bugfixes:
 #2809 bsdtar: fix regression from 3.8.4 zero-length pattern issue bugfix

Obtained from:	libarchive
Vendor commit:  dd897a78c662a2c7a003e7ec158cea7909557bee
MFC after:	1 week
2026-01-05 21:16:19 +01:00
Martin Matuska 01333e8c4d Update vendor/libarchive to 3.8.5
Important bugfixes:
 #2809 bsdtar: fix regression from 3.8.4 zero-length pattern issue bugfix

Obtained from:	libarchive
Vendor commit:	dd897a78c662a2c7a003e7ec158cea7909557bee
2026-01-05 21:10:21 +01:00
Jessica Clarke 39047538cf Merge commit faa5141b9be4 from file git (by Christos Zoulas):
PR/656: harry.sintonen: Fix bug in byte swapping that was caused by the change to make flags uint16_t and cont_level uint8_t.

This fixes using a magic.mgc built with a different endianness than
file(1) itself, e.g. when building powerpc64 on amd64.

PR:		292079
Fixes:		ae316d1d1c ("MFV: file 5.46.")
MFC after:	3 days
2025-12-31 17:14:55 +00:00
Dimitry Andric 667259b392 ncurses: avoid warnings about too-long initializer strings
Increase the size of `assoc::from` to 8 bytes, to avoid warnings from
clang 21 similar to:

    contrib/ncurses/progs/infocmp.c:702:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
      702 |     DATA("\033[2J", "ED2"),     /* clear page */
          |          ^~~~~~~~~
    contrib/ncurses/progs/infocmp.c:716:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
      716 |     DATA("\033[!p", "DECSTR"),  /* soft reset */
          |          ^~~~~~~~~

Reviewed by:	markj
Obtained from:	https://invisible-island.net/archives/ncurses/6.5/ncurses-6.5-20241207.patch.gz
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D54371
2025-12-30 13:48:56 +01:00
Yan-Hao Wang bbaa7d6281 kyua manuals: Correct --results-file short form
PR:		290647
Ref:		kyua/cli/common.cpp#104
MFC after:	3 days
Reviewed by:	ziaee
Closes:		https://github.com/freebsd/kyua/issues/267
2025-12-29 15:16:04 -05:00
Igor Ostapenko 350f319731 kyua: Make "debug -p" skip writing stdout/stderr to tmp files
Reviewed by:	kp, ngie
Differential Revision:	https://reviews.freebsd.org/D54363
2025-12-26 20:06:56 +00:00
Igor Ostapenko ecb58f931d kyua: Fix prompt of "debug -p" command 2025-12-25 20:41:22 +00:00
Xin LI ae12432049 MFV 762f11d98d: xz 5.8.2.
MFC after:	7 days
2025-12-23 00:24:13 -08:00
Mark Johnston 3a4275a5f1 telnet: Remove usage of ALIGN
gcc doesn't like ALIGN() being applied to an array type.  Just use
__aligned instead.

Reported by:	Jenkins
Reviewed by:	brooks
Fixes:		80203a27e9 ("Add sys/_align.h replacing machine/_align.h")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54290
2025-12-22 15:18:52 +00:00
Guy Harris 88b04633c2 libpcap: fix resource leaks and set error messages
In finddevs_bpf() close the BPF device descriptor and free the device list
buffer before returning.

For ioctl() and malloc() errors, use pcapint_fmt_errmsg_for_errno() to
generate an error message.

Fix some comments.

(cherry picked from commit 6870404f35da32d63a0a8789edb010842dd6b208)
2025-12-21 18:23:28 -08:00
Jose Luis Duran f8cee1f2c2 Import latest mtree from NetBSD
Merge commit 'eb2ccba0c11b405ac613c3046997765317cc8b5c'

PR:		192839
PR:		219467
MFC after:	1 week
2025-12-19 20:14:35 +00:00
Siva Mahadevan 6c18c40b29 lib/msun/tests: xfail fe_round on riscv64
Replace ATF_CHECK_* with ATF_REQUIRE_* to fail fast and
avoid unexpected aborts.

Signed-off-by: Siva Mahadevan <me@svmhdvn.name>
PR:		290099
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1871
2025-12-17 18:43:19 +08:00
Siva Mahadevan ec640742e3 lib/msun/tests: Remove newlines in ATF msgs
This fixes broken test reports with the following message:

lib/msun/fe_round_test:fe_round  ->  broken: Test result contains
multiple lines: expected_failure:
/usr/src/contrib/netbsd-tests/lib/libm/t_fe_round.c:95: Didn't get the
same rounding mode out!<<NEWLINE>>(index 0) fed in 64 rounding mode, got
0 out<<NEWLINE>>  [0.079s]

Signed-off-by: Siva Mahadevan <me@svmhdvn.name>
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1871
2025-12-17 18:43:06 +08:00
Gleb Smirnoff 8b780f75f7 libpcap: disable more code related to USB pseudo-interfaces
Fixes:	6e297e1cdf
2025-12-16 10:25:12 -08:00
Gleb Smirnoff 6e297e1cdf libpcap: don't try to create usbusX interfaces 2025-12-16 10:15:24 -08:00
Jose Luis Duran 9c844b6110 blocklist: blacklist: Chase recent upstream changes
Upstream fixed a couple of bugs:

1. Only attempt to restore the blocking rules if the database file
   exists.  Otherwise, when the service starts for the first time, it
   fails (PR 258411).

2. Revert a commit that removed a call to close(bi->bi_fd), preventing
   the descriptor from being deleted.

PR:		258411
PR:		291680
MFC after:	1 week
2025-12-16 08:13:39 +00:00
Jose Luis Duran 52395203f9 MFV: Import blocklist 2025-12-15 (8a4b011)
Merge commit 'bfef098f924950a085927b1e7dd6c6db4e651c5c'

Changes:

https://github.com/zoulasc/blocklist/compare/ff13526...8a4b011

PR:		258411
PR:		291680
MFC after:	1 week
2025-12-16 01:03:30 +00:00
Jose Luis Duran 715cc25713 blocklist: Add vendor import instructions
Add vendor import instructions for blocklist.

It includes a "freebsd-changes.sh" script that takes care of adapting
paths and functions into FreeBSD.

Reviewed by:	emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D49510
2025-12-16 00:55:24 +00:00
Gleb Smirnoff 94b76ea9d1 libpcap: obtain list of bpf tap points with BIOCGETIFLIST
Differential Revision:	https://reviews.freebsd.org/D53874
2025-12-15 12:51:34 -08:00
Jose Luis Duran 2f29d0f3e6 mtree: tests: Import NetBSD's mtree test suite
Manually import latest mtree test suite from NetBSD.

MFC after:	1 week
2025-12-13 14:37:20 +00:00
Jose Luis Duran dab5daf54c mtree: Fix typos
Manually apply a typo fix.  This change has already been submitted
upstream as bin/59824.

MFC after:	1 week
2025-12-13 14:34:43 +00:00
Jose Luis Duran 49b6dda4d7 Import latest mtree from NetBSD
Merge commit 'f600477feb4ae61a75f61949eb600caff4aeea8c'

MFC after:	1 week
Discussed with:	brooks
2025-12-13 14:28:16 +00:00
Philip Paeps a86dc94b84 contrib/tzdata: import tzdata 2025c
Changes: https://github.com/eggert/tz/blob/2025c/NEWS

MFC after:      3 days
2025-12-11 07:55:42 +01:00
Konstantin Belousov 70edd3c126 ofed/libibverbs: remove no longer needed local alloca.h
Sponsored by:	NVidia networking
MFC after:	1 week
2025-12-09 02:20:48 +02:00
Konstantin Belousov 6a75e39515 ofed/libibverbs: remove strdupa() hack from config.h
It is now provided by regular string.h.  While there, remove stale
$FreeBSD$ svn tag, and add include guards.

Sponsored by:	NVidia networking
MFC after:	1 week
2025-12-09 02:20:42 +02:00
Simon J. Gerraty c60f6422ff Update to bmake-20251111
Merge commit '638c66de4a0faa4c2e815e81cd4021c2387c7e0f'
2025-12-03 10:15:46 -08:00
Cy Schubert 07d5a9b1b2 sqlite3: Update to 3.50.4
Release notes at https://www.sqlite.org/releaselog/3_50_4.html.

Obtained from:  https://www.sqlite.org/2025/sqlite-autoconf-3500400.tar.gz

Merge commit 'e7e917ee3cf2b3010b1c511c6ebaf8b65b983ad7'
2025-12-02 07:22:26 -08:00
Martin Matuska c1e033c33e libarchive: merge from vendor branch
libarchive 3.8.4

Important bugfixes:
     #2787 bsdtar: Fix zero-length pattern issue
     #2797 lib: Fix regression introduced in libarchive 3.8.2
                when walking enterable but unreadable directories

Obtained from:	libarchive
Vendor commit:	d114ceee6de08a7a60ff1209492ba38bf9436f79
MFC after:	1 week
2025-12-01 14:05:35 +01:00
Robert Clausecker 04d000a378 jemalloc: avoid clash with C23 unreachable() macro
Summary: This avoids a clash with the new macro in <stddef.h>
introduced in D53967

Reviewed by:	imp
Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D53968
2025-11-28 16:55:05 +01:00
Gordon Tetlow 2a3a6a1771 Mitigate YXDOMAIN and nodata non-referral answer poisoning.
Add a fix to apply scrubbing of unsolicited NS RRSets (and their
respective address records) for YXDOMAIN and nodata non-referral
answers. This prevents a malicious actor from exploiting a possible
cache poison attack.

Obtained from:	NLnet Labs
Security:	CVE-2025-11411
2025-11-26 07:57:33 -08:00
Dag-Erling Smørgrav fe5c8baf25 pam_krb5: Restore allow_kdc_spoof option
Not only does the new pam_krb5 module not have the same allow_kdc_spoof
option that the old one had, its behavior in this matter defaults to
insecure.  Reimplement allow_kdc_spoof and switch the default back.

Reviewed by:	cy
Differential Revision:	https://reviews.freebsd.org/D53884
2025-11-24 03:40:48 +01:00
Dimitry Andric 3289bace53 Reapply "Merge commit e24f90190c77 from llvm git (by Brad Smith):"
[Driver] Enable outline atomics for FreeBSD/aarch64 (#156089)

The compiler_rt helper functions have been built since 12.4, 13.1, 14
and anything newer.

This reverts commit bd27bd1f51.

Only some people (including the release manager, unfortunately) ran into
build issues with the previous iteration of this commit, because they
were bootstrapping the compiler, either via the WITHOUT_SYSTEM_COMPILER
src.conf(5) setting, or because the build system determined that their
base system compiler was out of date.

The bootstrapped compiler would then enable outline atomics and compile
libgcc_s with these, but because libgcc_s is linked with -nodefaultlibs,
it could not find the helper routines in libcompiler_rt.a.

In contrast, people who did not bootstrap the compiler never saw any
issues, because libgcc_s was built using their 'old' base system
compiler, and so libgcc_s would not contain any calls to those helper
routines.

Fix this by ensuring that libgcc_s is linked against libcompiler_rt.a
explicitly, similar to some other binaries and libraries that are built
with -nodefaultlibs.

Also, bump FREEBSD_CC_VERSION to ensure that everybody gets the updated
compiler with outline atomics enabled. (This should have been done in
the first iteration of this commit, because the error would have shown
up right away then.)

MFC after:	3 days
2025-11-23 19:40:00 +01:00
ShengYi Hung 1d1a2e6932 lldb: Fix empty register set when trying to get size of register
The register set information is stored as a singleton in
GetRegisterInfo_i386. However, other functions later access this
information assuming it is stored in GetSharedRegisterInfoVector. To
resolve this inconsistency, we remove the original construction logic
and instead initialize the singleton using llvm::call_once within the
appropriate function (GetSharedRegisterInfoVector_i386).

PR:		289945
Obtained from:	llvm-project 41859c27842eeda1ef6ff18f3b2fb269388c0857
2025-11-23 12:49:51 -05:00
ShengYi Hung fa1c56b3af lldb: Fix Architecture parsing by reading the ELF header. (#162811)
Currently, LLDB in FreeBSD host sets the Process Architecture used by
lldbserver as Default one. Which cause problem when trying to debug a
32bit binary on amd64 platform since the lldb itself will found mismatch
architecture with lldbserver's return.

Notice that this patch is only a partial fix for the debugging problem.
We are still unable to debug x86 on x86_64 so that we don't provide
testcase in this patch.

PR:		289945
Obtained from:	llvm-project 394e7ded8b6bcff1382468b407ca620a2837f41b
2025-11-23 12:49:51 -05:00
Cy Schubert ac1f48b4a7 ntpd: Fix segfault when same IP on multiple interfaces
Use the protype socket to obtain the IP address for an error message.
Using the resultant socket address, a NULL because create_interface()
had failed, results in SIGSEGV.

To reproduce this bug,

ifconfig bridge100 create
ifconfig bridge100 10.10.10.10/24
ifconfig bridge101 create
ifconfig bridge101 10.10.10.10/24
ntpd -n

PR:		291119
MFC after:	3 days
2025-11-20 16:28:25 -08:00
Martin Matuska 007679a138 libarchive: merge from vendor branch
libarchive 3.8.3

Important bugfixes:
 #2753 lib: Create temporary files in the target directory
 #2768 lha: Fix for an out-of-bounds buffer overrun when using
       p[H_LEVEL_OFFSET]
 #2769 7-zip: Fix a buffer overrun when reading truncated 7zip headers
 #2771 lz4 and zstd: Support both lz4 and zstd data with leading
       skippable frames

Obtained from:	libarchive
Vendor commit:	1368b08875351df8aa268237b882c8f4ceb0882d
MFC after:	1 week
2025-11-19 14:53:24 +01:00
Ed Maste abcb80f46c diff3: Use logical-not, not bitwise for booleans
And compare impcompat != 0 as it's actually an integer incremented on
each use of one of the AeExX3 options.

Reviewed by:	fuz
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53808
2025-11-18 13:53:24 -05:00
Ed Maste 38829592dc diff3: Remove bespoke getopt.h
diff3's getopt.h included a function declaration without a prototype,
which produces a compiler warning.  Just remove the bespoke getopt.h
and use the system header.

Reported by:	Mark Millard
Reviewed by:	fuz
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53802
2025-11-18 08:42:36 -05:00
Robert Clausecker 63cd0841de contrib/mandoc: document .St -ieee754-2008 in mdoc(7)
Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D53784
2025-11-17 18:18:46 +01:00
Robert Clausecker db3884b039 contrib/mandoc: add -ieee754-2008
This is needed to simplify the msun manpages {sin,cos,tan}pi.3

Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D53784
2025-11-17 18:18:40 +01:00
Xin LI d5cb458b4b MFV: less v685.
MFC after:	3 days
2025-11-10 00:55:06 -08:00
Alfonso S. Siciliano f2d966f6c1 contrib/bsddialog: import 1.1
Add: slider dialog.
Imported to enable testing and to complete the geomman(8) utility.

Developed as part of the "Full Disk Administration Tool for FreeBSD"
project, Braulio Rivas (brauliorivas@), Google Summer of Code 2025.

Sponsored by:	Google LLC (GSoC 2025)

Merge commit '5a70558d32b9680c10ab579c7491652e0838cee4'
2025-11-03 21:18:46 +01:00
Dag-Erling Smørgrav a38c2f99f8 tzcode: Fix early tz change detection
Assume tzdata is not fresh if last_checked is zero, as comparing the
current time to last_checked less than __tz_change_interval after boot
may produce a false negative.

While here, invert the return value from tzdata_is_fresh() to better
match its new name (it was previously called recheck_tzdata(), so zero
for fresh and non-zero for stale made sense, but it doesn't now).

PR:		269207
MFC after:	3 days
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D53502
2025-11-02 14:51:42 +01:00
Dimitry Andric bd27bd1f51 Revert "Merge commit e24f90190c77 from llvm git (by Brad Smith):"
[Driver] Enable outline atomics for FreeBSD/aarch64 (#156089)

The compiler_rt helper functions have been built since 12.4, 13.1, 14
and anything newer.

This reverts commit 51e8e8b0f3.

MFC after:	immediately
2025-10-31 16:51:16 +01:00
Dag-Erling Smørgrav 28345f0937 pjdfstest: Avoid needless use of expr
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D53443
2025-10-30 21:18:38 +01:00