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)
Mon, Jul 13, 8:39 PM
Unknown Object (File)
Sat, Jul 11, 9:30 AM
Unknown Object (File)
Tue, Jul 7, 10:31 PM
Unknown Object (File)
Tue, Jul 7, 3:57 PM
Unknown Object (File)
Sun, Jul 5, 2:12 AM
Unknown Object (File)
Thu, Jul 2, 7:20 PM
Unknown Object (File)
Tue, Jun 30, 8:07 AM
Unknown Object (File)
Jun 12 2026, 12:21 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