Page MenuHomeFreeBSD

x86/xen: fill hypercall page with int3
ClosedPublic

Authored by royger on Feb 16 2024, 12:15 PM.
Tags
None
Referenced Files
F156928524: D43930.id134432.diff
Sun, May 17, 10:29 AM
F156927486: D43930.id134432.diff
Sun, May 17, 10:19 AM
Unknown Object (File)
Sun, May 10, 10:09 AM
Unknown Object (File)
Sun, May 10, 10:04 AM
Unknown Object (File)
Fri, May 8, 7:16 AM
Unknown Object (File)
Thu, May 7, 4:32 PM
Unknown Object (File)
Wed, May 6, 9:22 AM
Unknown Object (File)
Wed, May 6, 8:59 AM
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