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)
Fri, Mar 7, 3:15 AM
Unknown Object (File)
Feb 26 2025, 9:33 PM
Unknown Object (File)
Feb 23 2025, 8:47 AM
Unknown Object (File)
Jan 13 2025, 10:42 PM
Unknown Object (File)
Dec 1 2024, 6:27 AM
Unknown Object (File)
Nov 24 2024, 11:41 PM
Unknown Object (File)
Nov 23 2024, 11:08 AM
Unknown Object (File)
Nov 21 2024, 4:28 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