HardenedBSD/src 2bee560sys/dev/asmc asmc.c asmcvar.h, sys/dev/rge if_rge.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+435-2sys/dev/asmc/asmc.c
+126-0sys/tools/syscalls/scripts/syscall_json.lua
+60-11tests/sys/kqueue/kqueue_fork.c
+12-16sys/dev/rge/if_rge.c
+19-0sys/tools/syscalls/core/scarg.lua
+10-0sys/dev/asmc/asmcvar.h
+662-2915 files not shown
+700-3321 files

HardenedBSD/src d47429asys/dev/asmc asmc.c asmcvar.h, sys/dev/rge if_rge.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+435-2sys/dev/asmc/asmc.c
+126-0sys/tools/syscalls/scripts/syscall_json.lua
+60-11tests/sys/kqueue/kqueue_fork.c
+12-16sys/dev/rge/if_rge.c
+19-0sys/tools/syscalls/core/scarg.lua
+10-0sys/dev/asmc/asmcvar.h
+662-2915 files not shown
+700-3321 files

HardenedBSD/src 2a1745dsys/tools/syscalls/core scarg.lua

syscalls: Preserve the attributes of the args

Lightly parse and preserve the attributes of the args as attributes.

Sponsored by:           Netflix
Reviewed by:            brooks
Differential Revision:  https://reviews.freebsd.org/D56407
DeltaFile
+19-0sys/tools/syscalls/core/scarg.lua
+19-01 files

HardenedBSD/src b3b23f2sys/tools/syscalls/scripts syscall_json.lua

syscall: Create a script to export the data as json

Create a script to export the parsed data as json. Include the
annotations for the system call arguments, since they are helpful to
downstream uses.

Sponsored by:           Netflix
Reviewed by:            brooks
Differential Revision:  https://reviews.freebsd.org/D56408
DeltaFile
+126-0sys/tools/syscalls/scripts/syscall_json.lua
+126-01 files

HardenedBSD/src 62a19cdsys/i386/i386 locore.S mpboot.S, sys/kern subr_ticks.S

i386: mark the stack as non-executable

Sponsored by:           Netflix
Reviewed by:            jhb
Differential Revision:  https://reviews.freebsd.org/D56411
DeltaFile
+2-0sys/i386/i386/locore.S
+2-0sys/i386/i386/mpboot.S
+2-0sys/i386/i386/support.S
+2-0sys/i386/i386/swtch.S
+2-0sys/kern/subr_ticks.S
+2-0sys/i386/i386/sigtramp.S
+12-03 files not shown
+18-09 files

HardenedBSD/src f5d0b30sbin/ipf/ippool ippool.5

ippool(5): Correct example in man page

The example provided puts the semicolon in the wrong place. It must
come after the file:// specification, not in it.

MFC after:      1 week
DeltaFile
+1-1sbin/ipf/ippool/ippool.5
+1-11 files

HardenedBSD/src 51d2c38tests/sys/kqueue kqueue_fork.c

tests: kqueue: improve diagnostics for our CPONFORK test

Notably, confirm in the child that our close-on-fork fd is actually
closed, and break RECV_ALL out into a table and check each bit
individually to provide a better message when the test fails.

While we're here, just switch to waitid() rather than trying to identify
the point where we have to make the switch.  This reduces maintenance
slightly, as keeping our assertion static would require still adding to
a _RECV_ALL mask *just* for that purpose.

Reviewed by:    kib, markj (both slightly earlier version)
Differential Revision:  https://reviews.freebsd.org/D56372
DeltaFile
+60-11tests/sys/kqueue/kqueue_fork.c
+60-111 files

HardenedBSD/src 6fb5df5share/vt/keymaps Makefile

br.lenovo.kdb: add it to Makefile

This keyboard was implemented but wasn't actually installed to the
system.

Fixes: 9357c694e8dca627c25b15529e8435b2ab3dd48b
MFC after: 1 day
Relnotes: yes
DeltaFile
+1-0share/vt/keymaps/Makefile
+1-01 files

HardenedBSD/src 4390c37share/man/man4 rge.4, sys/dev/rge if_rge.c if_rge_sysctl.c

rge: add disable_aspm tunable for PCIe power management

Add a per-interface loader tunable dev.rge.%d.disable_aspm to
disable PCIe ASPM (L0s/L1) and ECPM on the RTL8125/8126/8127.

Disabling ASPM reduces latency at the cost of higher power
consumption. Default is off (ASPM left as configured by BIOS).

Signed-off-by: Christos Longros <chris.longros at gmail.com>

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D56103
DeltaFile
+12-16sys/dev/rge/if_rge.c
+9-0share/man/man4/rge.4
+5-0sys/dev/rge/if_rge_sysctl.c
+1-0sys/dev/rge/if_rgevar.h
+27-164 files

HardenedBSD/src aae9068sys/dev/asmc asmc.c asmcvar.h

asmc: add automatic voltage/current/power/ambient sensor detection

Apple SMCs contain numerous undocumented voltage, current, power,
and ambient light sensors. This change adds automatic detection
and registration of these sensors as sysctls.

New sysctl trees:
  dev.asmc.0.voltage.*  - Voltage sensors (millivolts)
  dev.asmc.0.current.*  - Current sensors (milliamps)
  dev.asmc.0.power.*    - Power sensors (milliwatts)
  dev.asmc.0.ambient.*  - Ambient light sensors

Implementation:
- Scans all SMC keys at attach time via asmc_key_dump_by_index()
- Identifies sensors by key prefix patterns:
  - Voltage: VC*, VD*, VG*, VP*, VI*
  - Current: I{C,D,G,M,N,O,H,P,B,A,L}*
  - Power:   P{C,D,N,S,T,H,F,Z,z}*
  - Light:   ALV*, ALS*

    [24 lines not shown]
DeltaFile
+435-2sys/dev/asmc/asmc.c
+10-0sys/dev/asmc/asmcvar.h
+445-22 files

HardenedBSD/src 65ccf92sys/kern vfs_syscalls.c, sys/sys fcntl.h

openat(2): check that userspace pass known and allowed flags

(cherry picked from commit 8a5601cff1ea32ab63df1377f61620e4f91999b3)
DeltaFile
+6-0sys/sys/fcntl.h
+4-1sys/kern/vfs_syscalls.c
+10-12 files

HardenedBSD/src 52aed37lib/libthr libthr.3

libthr.3: describe SIGTHR

(cherry picked from commit 934a35ac2bbbcf8cd65d8824fa824eb5c6170c88)
DeltaFile
+19-0lib/libthr/libthr.3
+19-01 files

HardenedBSD/src 090c9easys/kern vfs_aio.c kern_event.c

kevent: do not check knote lists being empty before removing a knote

(cherry picked from commit 31069fdbdae1027a6f1af7d56d418de4428ac6d9)
DeltaFile
+2-4sys/kern/vfs_aio.c
+1-2sys/kern/kern_event.c
+3-62 files

HardenedBSD/src 46b2975lib/libthr libthr.3

libthr.3: describe what we mean by C runtime environment.

(cherry picked from commit fa912e3b9b5c074793bb1899f8256ea4baf72631)
DeltaFile
+6-0lib/libthr/libthr.3
+6-01 files

HardenedBSD/src ee3ef70lib/libsys fork.2

fork.2: note that all methods to pre-resolve symbols have consequences

(cherry picked from commit 660498986a8e56025d9d2f9c6a0813c09a27ba8e)
DeltaFile
+2-0lib/libsys/fork.2
+2-01 files

HardenedBSD/src 803a892include unistd.h

unistd.h: _Fork(2) is required by POSIX 2024

(cherry picked from commit f286933c950f6308117c8400f36f3160f6227491)
DeltaFile
+4-1include/unistd.h
+4-11 files

HardenedBSD/src 6c1672asys/kern subr_early.c

subr_early.c: cleanup includes

(cherry picked from commit 4da93b9a8a5411f7386e79053d9c46df29627594)
DeltaFile
+0-2sys/kern/subr_early.c
+0-21 files

HardenedBSD/src b49b3cclib/libsys ntp_adjtime.2

ntp_adjtime.2: Increase visibility

+ s/ntp/ntpd/ for correctness + apropos results in document description
+ silence a linter warning by escaping a period with a zero-width space

MFC after:      3 days
DeltaFile
+3-3lib/libsys/ntp_adjtime.2
+3-31 files

HardenedBSD/src 23b2b35sys/netinet6 nd6_rtr.c nd6.h, sys/powerpc/booke pmap.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+336-1sys/netinet6/nd6_rtr.c
+13-13sys/powerpc/include/tlb.h
+18-6sys/powerpc/mpc85xx/platform_mpc85xx.c
+17-6sys/powerpc/booke/pmap.c
+15-2usr.sbin/rtadvd/rtadvd.c
+13-1sys/netinet6/nd6.h
+412-2913 files not shown
+444-3419 files

HardenedBSD/src 1abf532sys/netinet6 nd6_rtr.c nd6.h, sys/powerpc/booke pmap.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+336-1sys/netinet6/nd6_rtr.c
+13-13sys/powerpc/include/tlb.h
+18-6sys/powerpc/mpc85xx/platform_mpc85xx.c
+17-6sys/powerpc/booke/pmap.c
+15-2usr.sbin/rtadvd/rtadvd.c
+13-1sys/netinet6/nd6.h
+412-2913 files not shown
+444-3419 files

HardenedBSD/src cddcca7sys/conf newvers.sh, usr.bin/yacc config.h

15.1: Update stable/15 to -PRERELEASE

This marks the start of the FreeBSD 15.1 release cycle; the stable/15
tree is now in "code slush".

Developers are encouraged to prioritize fixing bugs (and/or merging bug
fixes from HEAD) over new features at this time.  Commit approval from
re@ is not required but if new features introduce problems they may be
removed from the release.

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+2-2sys/conf/newvers.sh
+1-1usr.bin/yacc/config.h
+3-32 files

HardenedBSD/src 19887b9sbin/ifconfig Makefile

ifconfig: Do not build geneve with WITHOUT_NETLINK_SUPPORT

geneve(4) is netlink-only, therefore, don't build it with
WITHOUT_NETLINK_SUPPORT=1 set.

Reported by:    kp
Fixes:          688e289ee904 ("ifconfig: Add support for geneve (netlink)")
Differential Revision: https://reviews.freebsd.org/D55184
DeltaFile
+1-1sbin/ifconfig/Makefile
+1-11 files

HardenedBSD/src a249ddfsys/powerpc/powerpc intr_machdep.c

powerpc/intr setup: Don't check intr name for IPI

Since whether or not the irq is an IPI is passed into
powerpc_setup_intr_int(), use this as the check for IPI instead of
checking the name string.
DeltaFile
+1-1sys/powerpc/powerpc/intr_machdep.c
+1-11 files

HardenedBSD/src 603a29bsys/powerpc/mpc85xx platform_mpc85xx.c

mpc85xx: Support timebase sync on T-series devices

Freescale T-series QorIQ devices use a different register to twiddle the
timebase enable.
DeltaFile
+18-6sys/powerpc/mpc85xx/platform_mpc85xx.c
+18-61 files

HardenedBSD/src 1fc50a4sys/powerpc/booke pmap.c, sys/powerpc/include tlb.h spr.h

powerpc/pmap: Add support for page sizes found on E6500

E6500 cores (MMUv2) support all powers-of-2 page sizes from 4k to 1TB,
not just powers of 4.  By using the other page sizes (8k, 32k, etc) we
can save on TLB1 space, saving up to ~1/3 of used TLB1 entries.
DeltaFile
+13-13sys/powerpc/include/tlb.h
+17-6sys/powerpc/booke/pmap.c
+5-0sys/powerpc/include/spr.h
+35-193 files

HardenedBSD/src 2fc5810sys/dev/etherswitch/e6000sw e6000sw.c

e6000/fdt: Ignore disabled switch ports

Instead of trying to parse a bogus node, just skip it if marked
disabled.
DeltaFile
+2-0sys/dev/etherswitch/e6000sw/e6000sw.c
+2-01 files

HardenedBSD/src 680e6e3sys/dev/etherswitch/e6000sw e6000sw.c e6000swreg.h

etherswitch: Add minimal support for mv88e6170 switch
DeltaFile
+4-0sys/dev/etherswitch/e6000sw/e6000sw.c
+1-0sys/dev/etherswitch/e6000sw/e6000swreg.h
+5-02 files

HardenedBSD/src 6a3e222usr.bin/yacc config.h

yacc: Fix SYSTEM_NAME

This usually gets bumped by re@ when the version number changes in
sys/conf/newvers.sh, but apparently we forgot for the past two major
versions.
DeltaFile
+1-1usr.bin/yacc/config.h
+1-11 files

HardenedBSD/src 0dac997sys/kern kern_descrip.c

file: Fix a format string assertion

Reported by:    Jenkins
Fixes:          e75b324c93a1 ("kern_descrip.c: Clarify allocation and freeing of fd map in fdgrowtable()")
DeltaFile
+1-1sys/kern/kern_descrip.c
+1-11 files

HardenedBSD/src bebc1a5sys/netinet in_mcast.c

in_mcast: Fix a lock leak in inp_set_source_filters()

MFC after:      3 days
Reported by:    Claude Opus 4.6
DeltaFile
+1-0sys/netinet/in_mcast.c
+1-01 files