opnsense-src/lib/libc
Mark Johnston 53a2985c43 pkru: Fix handling of 1GB largepage mappings
pmap_pkru_update_range() did not handle the case where a PDPE has PG_PS
set.  More generally, the SET_PKRU and CLEAR_PKRU sysarch
implementations did not check whether the request covers a "boundary" vm
map entry.  Fix this, add the missing PG_PS test, and add some tests.

Approved by:	so
Security:	FreeBSD-SA-26:11.amd64
Security:	CVE-2026-6386
Reported by:	Nicholas Carlini <npc@anthropic.com>
Reviewed by:	kib, alc
Differential Revision:	https://reviews.freebsd.org/D56184
2026-04-29 22:12:56 +02:00
..
aarch64 libc/aarch64: Remove an unneeded weak symbol 2024-09-02 08:49:39 +00:00
amd64 lib/libc/amd64/string: fix overread condition in memccpy 2024-08-07 16:18:40 +02:00
arm libc: rename arm and i386 Ovfork.S to vfork.S 2024-01-02 16:58:42 +00:00
capability cap_rights_is_empty: add MLINK 2024-12-06 10:50:31 -05:00
compat-43 libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
csu libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
db libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
gdtoa libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
gen Fix incorrect version introduced in manual pages 2025-06-03 17:47:57 -06:00
gmon libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
i386 libc: rename arm and i386 Ovfork.S to vfork.S 2024-01-02 16:58:42 +00:00
iconv libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
include libc_private.h: use private namespace name for size_t 2024-04-30 04:14:52 +03:00
inet libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
isc libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
locale libc: locale: fix EUC shift check 2025-04-25 22:19:49 -05:00
md Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nameser libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
net link_addr: be more strict about address formats 2025-07-09 10:05:44 +02:00
nls libc: remove some XXX for russian translations of errnos 2024-11-09 21:31:29 +02:00
posix1e manuals: Fix "missing end of block" errors 2024-11-04 12:07:50 -04:00
powerpc libc: centralize a few numeric symbols 2023-12-13 22:08:14 +00:00
powerpc64 libc: centralize a few numeric symbols 2023-12-13 22:08:14 +00:00
powerpcspe libc/<arch>/sys/Makefile.inc: remove cruft 2023-12-13 22:08:13 +00:00
quad libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
regex regex: mixed sets are misidentified as singletons 2024-09-25 15:42:25 -05:00
resolv libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
riscv libc: don't needlessly add vfork.o to NOASM 2024-01-02 16:58:54 +00:00
rpc libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map 2024-05-29 11:40:18 -04:00
secure libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
softfloat libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
stdio libc/stdio: Increase BUF in vfprintf.c and vfwprintf.c 2025-03-25 19:28:39 -06:00
stdlib libc: allow __cxa_atexit handlers to be added during __cxa_finalize 2025-04-16 20:01:36 -05:00
stdtime strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
string libc: indicate existing functions that are POSIX 2024 2024-11-20 19:45:07 -05:00
sys Fix incorrect version introduced in manual pages 2025-06-03 17:47:57 -06:00
tests link_addr: be more strict about address formats 2025-07-09 10:05:44 +02:00
uuid libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
x86 pkru: Fix handling of 1GB largepage mappings 2026-04-29 22:12:56 +02:00
xdr rpc: Fix the definition of xdr_void() 2024-11-05 01:05:26 +00:00
yp libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map 2024-05-29 11:40:18 -04:00
libc.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libc_nossp.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile libc: enable initial-exec (IE) as default thread-local storage model on arm 2024-11-22 10:36:32 -05:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Versions.def Create namespace for the symbols added during 15-CURRENT cycle 2024-01-31 01:14:38 -06:00