Page MenuHomeFreeBSD

x86/xen: fill hypercall page with int3
ClosedPublic

Authored by royger on Feb 16 2024, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 4 2024, 5:50 AM
Unknown Object (File)
Apr 29 2024, 9:06 AM
Unknown Object (File)
Apr 28 2024, 3:38 AM
Unknown Object (File)
Apr 22 2024, 9:28 AM
Unknown Object (File)
Feb 22 2024, 1:46 PM
Unknown Object (File)
Feb 22 2024, 12:54 PM
Unknown Object (File)
Feb 20 2024, 3:11 AM
Unknown Object (File)
Feb 18 2024, 6:44 PM
Subscribers

Details

Summary

Filling the hypercall page with nops is not helpful from a debugging point of
view, as for example attempting to execute an hypercall before the page is
initialized will result in the execution flow falling through into
xen_start32, making the mistake less obvious to spot.

Instead fill the page with int3 (0xcc) which will result in a #BP trap.

Sponsored by: Cloud Software Group

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable