libnvmm: Improve the page walker
* Implement A/D bit setting.
* Inject #PFs on non-present pages when emulating MMIOs. This is needed
for guests like Windows 2000 that aggressively page out memory that
they then use in MMIO operations.
* Fix the '64bit walk - present' test that failed in the previous
commit.
Obtained-from: NVMM Reference Implementation
libnvmm: Improve the correctness of page table walks
* Fix 32bit PAE: the top-level pdir doesn't have NX.
* Fix 32bit non-PAE: PTE_PS is ignored if CR4.PSE=0.
* Stop the walks early on if a required permission is not met.
* Take CR0.WP and EFER.NXE into account when evaluating permissions.
* Enforce SMEP/SMAP protections.
* Document the semantics of nvmm_gva_to_gpa() more clearly.
* Add unit-tests.
Note that the '64bit walk - present' test is failing, which will be
fixed in a later commit.
Obtained-from: NVMM Reference Implementation
testcases/libnvmm: Fully reset the VCPU after each test
Otherwise if a fault is pending it gets injected in the next test.
Obtained-from: NVMM Reference Implementation
libnvmm: Fix MOVZX emulation
The overridden operand_size was being used to select the register, and
this did not match the actual desired register size. This could result
in the wrong register being written to, for example EBP would be decoded
as CH.
Update the existing unit-test to exercise this case.
Obtained-from: NVMM Reference Implementation
[Clang] Fix crash in alignment builtins with null pointers (#224549)
Clang can crash when evaluating __builtin_align_up,
__builtin_align_down, or __builtin_is_aligned with a null pointer.
Avoid querying base alignment for pointers without an underlying object
during constant evaluation.
Null pointers are handled as always aligned values, while other
base-less pointers are rejected rather than interpreted using their
numeric address.
Assisted-by: GPT-5.6
AI was used to assist with code analysis, debugging, and drafting the PR
description. I personally debugged, reviewed and verified the changes,
tested the code, and fully understand the submitted contribution.
Fixes https://github.com/llvm/llvm-project/issues/216999
Co-authored-by: Timm Baeder <tbaeder at redhat.com>
x11-themes/ghostbsd-icons: Update to 26.10.0
Install the G logo icons into hicolor at stage time instead of copying
them in pkg-install, so pkg tracks them. Only the size directories and
scalable are copied so ghostbsd's index.theme does not replace hicolor's.
Drop the upstream icon-theme.cache files and depend on
gtk-update-icon-cache, whose pkg trigger regenerates the caches.
system: fix the -4/6 family and -n ambiguity as the gateway may also resolve
We still don't really use it since it isn't an IP address but
it also helps narrowing the scope of the deletion lookup.