FEX icon indicating copy to clipboard operation
FEX copied to clipboard

Driver: Check for PROT_EXEC on translation, gracefully handle SIGBUS

Open skmp opened this issue 3 years ago • 0 comments

Currently we'll happily translate pages without PROT_EXEC or not mapped at all.

We need to only permit code to run in guest mapped pages, and only ones with PROT_EXEC, or appropriately generate SIGSEGVs for the guest.

We also need to gracefully handle SIGBUSes during translation, eg from PROT_EXEC mappings that are out of range.

We also need FLTs for those.

skmp avatar Aug 31 '22 09:08 skmp