Commit graph

292432 commits

Author SHA1 Message Date
Gleb Smirnoff
886fcbde46 acpi_ibm: pass brightness events to evdev(4)
unless the dev.acpi_ibm.0.handlerevents sysctl is set to process
them internally.  The default for the latter is to ignore them,
so passing to evdev(4) is enabled by default.

Reviewed by:		wulf, imp
Tested on:		Lenovo Thinpad X11 Carbon 7Th Gen
Differential Revision:	https://reviews.freebsd.org/D48174

(cherry picked from commit c21f5751ef0932796676e55953461e0679020e28)
2025-03-31 10:31:21 -07:00
Gleb Smirnoff
1bda3fae78 tcp: don't ever return ECONNRESET on close(2)
The SUS doesn't mention this error code as a possible one [1]. The FreeBSD
manual page specifies a possible ECONNRESET for close(2):

[ECONNRESET]	The underlying object was a stream socket that was
		shut down by the peer before all pending data was
		delivered.

In the past it had been EINVAL (see 21367f630d), and this EINVAL was
added as a safety measure in 623dce13c6.  After conversion to
ECONNRESET it had been documented in the manual page in 78e3a7fdd5, but
I bet wasn't ever tested to actually be ever returned, cause the
tcp-testsuite[2] didn't exist back then.  So documentation is incorrect
since 2006, if my bet wins.  Anyway, in the modern FreeBSD the condition
described above doesn't end up with ECONNRESET error code from close(2).
The error condition is reported via SO_ERROR socket option, though.  This
can be checked using the tcp-testsuite, temporarily disabling the
getsockopt(SO_ERROR) lines using sed command [3].  Most of these
getsockopt(2)s are followed by '+0.00 close(3) = 0', which will confirm
that close(2) doesn't return ECONNRESET even on a socket that has the
error stored, neither it is returned in the case described in the manual
page.  The latter case is covered by multiple tests residing in tcp-
testsuite/state-event-engine/rcv-rst-*.

However, the deleted block of code could be entered in a race condition
between close(2) and processing of incoming packet, when connection had
already been half-closed with shutdown(SHUT_WR) and sits in TCPS_LAST_ACK.
This was reported in the bug 146845.  With the block deleted, we will
continue into tcp_disconnect() which has proper handling of INP_DROPPED.

The race explanation follows.  The connection is in TCPS_LAST_ACK.  The
network input thread acquires the tcpcb lock first, sets INP_DROPPED,
acquires the socket lock in soisdisconnected() and clears SS_ISCONNECTED.
Meanwhile, the syscall thread goes through sodisconnect() which checks for
SS_ISCONNECTED locklessly(!).  The check passes and the thread blocks on
the tcpcb lock in tcp_usr_disconnect().  Once input thread releases the
lock, the syscall thread observes INP_DROPPED and returns ECONNRESET.

- Thread 1: tcp_do_segment()->tcp_close()->in_pcbdrop(),soisdisconnected()
- Thread 2: sys_close()...->soclose()->sodisconnect()->tcp_usr_disconnect()

Note that the lockless operation in sodisconnect() isn't correct, but
enforcing the socket lock there will not fix the problem.

[1] https://pubs.opengroup.org/onlinepubs/9799919799/
[2] https://github.com/freebsd-net/tcp-testsuite
[3] sed -i "" -Ee '/\+0\.00 getsockopt\(3, SOL_SOCKET, SO_ERROR, \[ECONNRESET\]/d' $(grep -lr ECONNRESET tcp-testsuite)

PR:			146845
Reviewed by:		tuexen, rrs, imp
Differential Revision:	https://reviews.freebsd.org/D48148

(cherry picked from commit 053a988497342a6fd0a717cc097d09c23f83e103)
2025-03-31 10:31:21 -07:00
Alexander Ziaee
c541138270
top: Sync usage and synopsis
Switching between io and cpu sorting uses a great example in the usage.
[-m io | cpu]. Use that everywhere.

MFC after:		3 days
Reviewed by:		mhorne
Approved by:		mhorne (mentor)
Differential Revision:	https://reviews.freebsd.org/D49515

(cherry picked from commit 187d954eab94fdcb33609d91966dbd727acfd720)
2025-03-31 13:26:26 -04:00
Alexander Ziaee
1fdca2a3a9
top: Polish key bindings in usage and manual
Organize key bindings by ascii(7) for consistency and maintainability,
mark them as Interactive Commands, wordsmith them, and sync their
organization between the manual and help screen.

MFC after:		3 days
PR:			282734
Fixes:			c8aa5e526 (move command mapping to commands.c)
Reviewed by:		imp, mhorne, Jim Brown <jpb@jimby.name>
Approved by:		mhorne (mentor)
Differential Revision:	https://reviews.freebsd.org/D49462

(cherry picked from commit 0a85254d5a33800600477ce57fbaab64591aa6ea)
2025-03-31 13:26:15 -04:00
Alexander Ziaee
bb9c4de17b
hier.7: Storage partitions are not filesystems
I recommended the incorrect text to the submitter.

MFC after:		3 days
Fixes:			f47cbb29e1c2 (Add /dev/gpt)
Reported by:		Mark Millard <marklmi@yahoo.com>
Reviewed by:		imp, mhorne
Approved by:		mhorne (mentor)
Differential Revision:	https://reviews.freebsd.org/D49523

(cherry picked from commit 50296dccddf1a7734be2aef606cd8e0408ee8780)
2025-03-31 13:24:36 -04:00
Roman Schmidt
18b3e374f5
hier.7: Add /dev/gpt
While here, fix a typo.

MFC after:	3 days
Reviewed by:	mhorne, emaste, ziaee
Approved by:	mhorne (mentor)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1608

(cherry picked from commit f47cbb29e1c2bcb5b5ad838d2d5342a47b0c4692)
2025-03-31 13:24:07 -04:00
Konstantin Belousov
04e4dda94f procstat.1: document local SOCK_SEQPACKET socket display
(cherry picked from commit 03dfb8d0211cf9d7405c4fd7d541dde28047001c)
2025-03-31 05:41:32 +03:00
Konstantin Belousov
a02f377d95 procstat.1: correct local socket types descriptions.
(cherry picked from commit 991329f507a893076a4119c90bb463de0ac15be9)
2025-03-31 05:41:32 +03:00
Konstantin Belousov
fb8c944d2b procstat: decode SOCK_SEQPACKET unix domain socket type
(cherry picked from commit 8011df62f57f021a1b4f62d9beea4c25d9b37a23)
2025-03-31 05:41:32 +03:00
Konstantin Belousov
192aae0a9f libprocstat: constify psc_type_info[]
(cherry picked from commit debcd4c05701be0ff48c6b350ed6b3a80e5f0b1f)
2025-03-31 05:41:32 +03:00
Konstantin Belousov
8056c96491 libprocstat: change psc_type_info array to use designated initializers
(cherry picked from commit ba2fb6b367fd513ea5812a496254d3a05ec380b8)
2025-03-31 05:41:32 +03:00
Warner Losh
25df691800 nvme: Fix hotplug on one of the amazon platforms
Amazon EC2 m7i cloud instances use PCI hotplug rather than ACPI
hotplug. The card is removed and detach is called to remove the drive
from the system. The hardware is no longer present at this point, but
the bridge doesn't translate the now-missing hardware reads to all ff's
leading us to conclude the hardware is there and we need to do a proper
shutdown of it. Fix this oversight by asking the bridge if the device is
still present as well. We need both tests since some systems one cane
remove the card w/o a hotplug event and we want to fail-safe in those
cases.

Convert gone to a bool while I'm here and update a comment about
shutting down the controller and why that's important.

Tested by: cperciva
Sponsored by: Netflix

(cherry picked from commit dc95228d98474aba940e3885164912b419c5579d)
2025-03-30 16:44:57 -07:00
Alexander Ziaee
3cdf03dbfe
intro.5: Crossreference ascii(7)
Since the beginning, Unix has included an ASCII chart. Over the last
half a century to this day, the most common format for lexographical
organization in files is according to ASCII. Consistency is maintainable
and for that reason, crossreference ascii(7) promenently in the
introduction to the File Formats Manual. Additionally, this demonstrates
the often softer style of bullet lists in the manual tradition.

PR:		248562
MFC after:	3 days
Reviewed by:	mhorne
Approved by:	mhorne (mentor)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1534

(cherry picked from commit a6175f28da7018ba9f824f48fe6db732bd9cb501)
2025-03-28 21:32:41 -04:00
Alexander Ziaee
0d35e63973
intro.5: More verbose introductory sentence
Explain a little about everything is a file,
matching the style of earlier intro pages.

PR:		248562
MFC after:	3 days
Approved by:	mhorne (mentor)
Reviewed by:	imp, mhorne, Lexi Winter <lexi@le-fay.org>
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1534

(cherry picked from commit 37508388d066826d0a36b5ec646c95a9ffb00d28)
2025-03-28 21:32:27 -04:00
Alexander Ziaee
bb28ea49ad
intro.5: Import description table from OpenBSD
Looking around at how everyone else is doing it, this list seems nearly
perfect to me and we should just import it from them. I have added "and
streams" because we have some explanations of those in this section too.

PR:		248562
MFC after:	3 days
Obtained from:	OpenBSD
Approved by:	mhorne (mentor)
Reviewed by:	imp, mhorne, Lexi Winter <lexi@le-fay.org>
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1534

(cherry picked from commit 26ec376536622e8fec8f40847aa9b2d1121d585d)
2025-03-28 21:32:10 -04:00
Alexander Ziaee
342fa740cb
intro.5: Add local to files, minor maintenence
New users are sometimes confused about the difference between /etc/ and
/usr/local/etc. Explain this in the manual as we did in intro(1). Link
hier(7) which now lists base system configuration files in /etc/. Add a
section number to HISTORY for clarity.

PR:		248562
MFC after:	3 days
Approved by:	mhorne (mentor)
Reviewed by:	imp, mhorne, Lexi Winter <lexi@le-fay.org>
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1534

(cherry picked from commit 8d65152cbfc8861f6920846dea6f540c673ab7b6)
2025-03-28 21:31:48 -04:00
Kirk McKusick
ae15f8ceaa Get consistent updates for UFS superblocks.
Formatting and style cleanups.

Differential Revision: https://reviews.freebsd.org/D49276
Sponsored-by: Netflix

(cherry picked from commit c2cd605e8c8a15e545dfd3e50aef2f660d460b30)
(cherry picked from commit 16649530b7be02a61a32b34d56e6e937734cd247)
2025-03-28 17:41:04 -07:00
Justin Hibbits
ff9c290648 powernv: Explicitly enable the facilities we support
Thus far we've relied on the firmware setting HFSCR correctly, enabling
all facilities.  However, it appears some recent firmwares do not.
Linux explicitly enables all facilities it supports (including
transactional memory, which new firmwares apparently do not enable), so
do the same here, explicitly enable all the facilities FreeBSD supports.

MFC after:	1 week

(cherry picked from commit fe73eb441f1c98fe350f4822c7d2abfeef046bf8)
2025-03-27 22:32:20 -04:00
Justin Hibbits
16caf6a11e powerpc: Add Hypervisor Facility Unavailable handling
Treat Hypervisor Facility Unavailable as an illegal instruction in user
space.  This way programs that use facilities like transactional memory,
which will never be supported as it has been removed from the ISA, will
not crash the kernel.

Tested by:	pkubaj
MFC after:	1 week

(cherry picked from commit 0b663e0cee89dedf5b070ff4e839d5ad95061535)
2025-03-27 22:32:19 -04:00
Konstantin Belousov
4b3d44f3b4 kern/kern_descrip.c: remove unneeded headers
(cherry picked from commit 6eb7cba469d7cf1beccfb18679d1e0bd4a468341)
2025-03-28 02:32:28 +02:00
Konstantin Belousov
4e923ed15e ufs_aclcheck(): accurately dereference vp->v_mount
(cherry picked from commit 5648c1d6f3b0d8f4d67d2e6ec56dd2abcbd8fff5)
2025-03-28 02:32:28 +02:00
Konstantin Belousov
658a4399ea ufs_acl.c: style
(cherry picked from commit d7352b2d57e9fe4b9cfb6ae61fd7cdd18851cdd3)
2025-03-28 02:32:28 +02:00
Konstantin Belousov
09b8745670 kern___acl_aclcheck_path: vrele the vnode after namei()
(cherry picked from commit 7fad17a3e63481ef71b731b0059cb918aec14f17)
2025-03-28 02:32:28 +02:00
Ed Maste
a75dbf4194 tools/sysdoc: Chase sysctl rename
PR:		285591
Reviewed by:	glebius
Fixes: 94df3271d6 ("Rename net.inet.ip.check_interface to rfc1122_strong_es and document it.")
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49486

(cherry picked from commit d45d070e5475466ceac8057f2e7558055267fb1b)
2025-03-27 15:15:04 -04:00
Ahmad Khalifa
3b496eb1bd loader: Fix 32-bit compatibility
main.c - Fix rsdp cast.
framebuffer.c -
 	- Use temp variable instead of directly passing pointer when
          EFI_PHYSICAL_ADDRESS is expected.
	  Also fix FreePages cast.
	- Mask framebuffer address given to us by UEFI.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit 6818ff7797c6a9ab104e5d7e91d4e422874bf50d)
2025-03-27 10:21:55 -07:00
Enji Cooper
d6552ebf26 mca_log: add missing breaks when handling thresholds
Per the "Intel® 64 and IA-32 Architectures Software Developer’s Manual
Combined Volumes: Vol. 3B 17-7", the Green and Yellow threshold
indicators are mutually exclusive. Add the missing `break` statements so
they're treated that way.

MFC after:	1 week
Reported by:	Coverity
Differential Revision:	https://reviews.freebsd.org/D48722

(cherry picked from commit 36d7d2044b934103ad9254cd03ea61245c16ccda)
2025-03-26 14:27:24 -07:00
Enji Cooper
c08ec13bcc lib/libsbuf/tests: reformat with clang-format
This change is being done first so any functional changes from the tests
will be clearer to reviewers.

No functional change intended.

MFC after:	2 weeks
Ref:	 https://reviews.freebsd.org/D47826

(cherry picked from commit 991bd461625a2c521d5be4fd6938deed57f60972)
2025-03-26 14:13:54 -07:00
Ed Maste
275b0935fb kern.mk: Update SSP comment (not limited to GCC)
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 222c850503d1cbd5293c04987181a74b9dbe3fcf)
2025-03-26 14:36:13 -04:00
Mark Johnston
69c5f7b4ca pkg: Fix Coverity warnings
- Fix allocation size in config_get_repositories().
- Fix a memory leak in read_conf_file().
- Avoid a null pointer dereference in an error path in
  verify_pubsignature().

Fixes:	e3b4a51580fc ("pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME")
Fixes:	dc4581589a32 ("pkg: clean support for repositories")
(cherry picked from commit c1557708f1fae1bb9c8e23e3bbb2aa2b055e1211)
2025-03-26 08:48:01 -07:00
Alexander Ziaee
b0d6aa07c1
style.mdoc: HARDWARE generates Release Notes
FreeBSD Release Infrastructure has been building the Hardware
Release Notes from these subsections in the Kernel Interfaces Manual.
Standardize this behavior in the FreeBSD Manual page style guide with
everything we learned in the 14.2-RELEASE.

To me, this is an enormously exciting discovery, and I believe that
over the next 5 years, this can transform the supported hardware UX,
without reinventing the wheel, by doubling down on our ways instead
of reinventing them.

MFC after:		3 days
Reported by:		bz (special thanks)
Reviewed by:		imp, mhorne, pauamma, rpolaka
Approved by:		mhorne (mentor)
Differential Revision:	https://reviews.freebsd.org/D48343

(cherry picked from commit 29eb4de61a4c2ab1d940e10f3816db79e74d46b1)
2025-03-26 01:40:59 -04:00
Alexander Ziaee
8d75a78b4d
UPDATING: Show plural syntax for PORTS_MODULES
Show two examples in PORTS_MODULES to demonstrate space separation.
This also shows off our working PRIME dual-gpu support.
Switching to this doubled my laptop's battery life!

MFC after:		3 days
Reviewed by:		mhorne
Approved by:		mhorne (mentor)
Differential Revision:	https://reviews.freebsd.org/D48342

(cherry picked from commit dcef6ce862cd19b3496486469cc631bb1b71fcbf)
2025-03-26 01:40:42 -04:00
Christos Margiolis
a3dfa53bbf snd_hda: Support Intel Raptor Lake 0x7a50
PR:		276379
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	emaste, markj
Differential Revision:	https://reviews.freebsd.org/D49389

(cherry picked from commit fc40132603f5133037a35e2c14ac1356a0128c50)
2025-03-26 02:39:23 +01:00
Ahmad Khalifa
38dc6b814a acpi_iicbus: install the address space handler by default
Signed-off-by: Ahmad Khalifa <ahmadkhalifa570@gmail.com>

Reviewed by:	wulf
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1583

(cherry picked from commit d3b1dcb408e2f63845aee5508fe4c73db1f94b58)
2025-03-25 19:28:39 -06:00
Ahmad Khalifa
c0e07c93e8 install: print directory name instead of file name if mkstemp fails
Printing the file name doesn't make sense since mkstemp failing means
that the file wasn't created.

Also add a test case for this.

Co-authored-by: Jose Luis Duran <jlduran@gmail.com>
Reviewed by: imp,jhb
Pull Request: https://github.com/freebsd/freebsd-src/pull/1383

(cherry picked from commit e8d027be6b84ac976eacd46283c286b934dd6f1f)
2025-03-25 19:28:39 -06:00
Ahmad Khalifa
2ce4f02182 libc/stdio: Increase BUF in vfprintf.c and vfwprintf.c
With the %b format specifier we need enough space to write a uintmax_t
in binary.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1400

(cherry picked from commit d4f9e326393e3298062a58338e2c94ef6baff8b5)
2025-03-25 19:28:39 -06:00
Ahmad Khalifa
0ca77a6363 loader: Allow overriding NEWVERSWHAT
This can be useful when making alternate versions of the loader.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit dcc7b3698d03b2aedc68e88b4e05a0b32b435429)
2025-03-25 19:28:39 -06:00
Ahmad Khalifa
43dc900d75 loader: Fix G overflowing for G(4) on 32-bit builds
Prevent G(4) and over from overflowing for 32-bit builds.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit 5360d017be83d2502ba262f391ef45b07e0de680)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
ac5378d93c Add build option for the ia32 loader
In preparation for supporting 64-bit machines with 32-bit UEFI firmware,
add a build option for compiling the ia32 loader. Currently unused.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit fe3f792f9a2982678138e239f5e8d66e8ee71aeb)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
7d7dc14d6b stand/efi: Add a 32-bit variant of libefi
In preparation for supporting 64-bit machines with 32-bit UEFI firmware,
add a 32-bit variant of libefi since we need to compile both the 64-bit
version and the 32-bit version at the same time.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit f0d5b1bdf075c68ddb1dcfbc5a0eda0214510b5b)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
92aa078752 loader: Fix shadow_fb allocation
Using AllocateMaxAddress here means that gfx_state->tg_shadow_fb is
treated as the highest address we can receive. Since
gfx_state->tg_shadow_fb is NULL, we never receive anything. Use
AllocateAnyPages instead.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit 95f75b0e6e5f71d34e4eef151f43822e33838663)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
ce02470205 stand: Add support for 64-bit machines with 32-bit UEFI implementations
Some machines have 64-bit capable cpus but are stuck on 32-bit uefi
firmware.

Add support for them by building a new "loader_ia32" with
LOADER_DEFAULT_INTERP along with the 64-bit one. The loader
can be disabled using MK_LOADER_IA32.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit f8ca5d45c3c1829759ecd87cb95d53e5ab7d0811)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
c6d3271fe0 Copy the new ia32 loader
This handles copying in install-boot.sh and bsdinstall's bootconfig.

install-boot.sh:
make_esp_file now optionally takes extra arguments so it can copy
multiple files. This is used by the amd64 release scripts.
make_esp_device also takes an extra optional argument for efibootname.
This is currently unused, but it can be used in the future to do
something like:
make_esp_device loader.efi bootx64
make_esp_device loader_ia32.efi bootia32

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit 599273f942b8dc6f957487bb28f36694dab9dad2)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
513d89fef9 usb: increase USB_PORT_RESET_RECOVERY
10ms seems to be too strict for some configurations, so increase to
20ms.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1327

(cherry picked from commit e152944f1a16a4ff33b4e20b813ce4a54b884b90)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
7d042b0af1 bytgpio: expose PNP info
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1349

(cherry picked from commit 969484b53217cee65d6802f1954f0431cbfc6b45)
2025-03-25 19:28:38 -06:00
Ahmad Khalifa
703287df5e loader.conf.5: Correct terminal size
Signed-off-by: Ahmad Khalifa <ahmadkhalifa570@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1292

(cherry picked from commit 1dbbce9744500f2fa4d6ca5ec888835c0f7b9161)
2025-03-25 19:28:37 -06:00
Ahmad Khalifa
0a4a5b8cef efi_console: Stay inline with the UEFI spec
The UEFI spec states that the minimum garunteed terminal resolution is
80x25.

Signed-off-by: Ahmad Khalifa <ahmadkhalifa570@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1292
(cherry picked from commit 3b68c491d37196bb76a95bce3c02f7c6d5ba22fd)
2025-03-25 19:28:37 -06:00
Ahmad Khalifa
df872d66f2 loader: Increase buffer size to accommodate longer commands
The longest command we have is "efi-autoresizecons". That combined with
the two spaces before and after the command gives us a total of 23
characters including the null-terminator.

Also move the two trailing spaces to their own pager_output call so they
don't get truncated if the command is too long and increase the minimum
string length to 20 in order to fix alignment issues caused by the
increased buffer size.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1277

(cherry picked from commit ab08da5328b4175e399d8e59adc4dfad0eea24f1)
2025-03-25 19:28:37 -06:00
Ahmad Khalifa
1a8a24e340 acpi_iicbus: Shift slave address
The address is expected to need shifting.
see https://uefi.org/specs/ACPI/6.5/13_System_Mgmt_Bus_Interface_Specification.html#smbus-slave-addresses

Reviewed by: imp, markj, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1125

(cherry picked from commit 67677a654aa7456f18077ccbaa9c40f39a36d21a)
2025-03-25 19:28:37 -06:00
Ahmad Khalifa
4073e53e42 acpi_cmbat: Use nitems instead of sizeof
Reviewed by: imp, markj, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1125

(cherry picked from commit d0cc25f770aee068bcbaee89aa2f52cc5dd79dd5)
2025-03-25 19:28:37 -06:00
Philip Paeps
475082194a contrib/tzdata: import tzdata 2025b
Changes: https://github.com/eggert/tz/blob/2025b/NEWS

(cherry picked from commit d2cccdef30376b7de5643caae1ef035f8e6932f0)
2025-03-26 09:03:52 +08:00