VirtualBox

Changeset 101521 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Oct 20, 2023 2:29:27 PM (14 months ago)
Author:
vboxsync
Message:

HMR0A.asm: The code handled Linux's read-only GDT in addition to the already existing support for PaX's KERNEXEC based variant. However, in contrast to upstream Linux's implementation, there's no writable alias mapping of the GDT available under PaX KERNEXEC. The CR0.WP toggling method must therefore be used in this case. Contribution from Mathias Krause. Thanks! bugref:8864

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0A.asm

    r98103 r101521  
    439439ALIGNCODE(8)
    440440.gdt_readonly_or_need_writable:
    441         test    edi, VMX_RESTORE_HOST_GDT_NEED_WRITABLE
    442         jnz     .gdt_readonly_need_writable
     441        test    edi, VMX_RESTORE_HOST_GDT_READ_ONLY
     442        jz      .gdt_readonly_need_writable
    443443.gdt_readonly:
    444444        mov     rcx, cr0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette