These have been added to 15.0-CURRENT (see https://reviews.freebsd.org/D50482) I also see that there are AMD64_SET_PKRU and AMD64_CLEAR_PKRU (with i386 versions), haven't looked at them yet. That'll probably be another bugzilla item.
Without a fix just about everything crashes. As for the PKRU that looks like a big can of worms. It's kernel key signing for user mapped pages. We don't advertise the flags (pku and ospke) or support the amd64 opcodes (rdpkru and wrpkru). How would that interact with tools that replace malloc?
commit f7b087df5ccd4ac1c0803a5dfd168327dc25286c (HEAD -> master, origin/master, origin/HEAD) Author: Paul Floyd <pjfloyd@wanadoo.fr> Date: Thu May 29 08:52:28 2025 +0200 Bug 504936 - Add FreeBSD amd64 sysarch subcommands AMD64_SET_TLSBASE and AMD64_GET_TLSBASE