KernelTestFramework / ktf

Kernel Test Framework
BSD 2-Clause "Simplified" License
140 stars 18 forks source link

vmm: don't vmap non-canonical addresses #327

Closed sktt closed 11 months ago

sktt commented 11 months ago

Passing a non-canonical address to vmap would still map it, leading to #GP further down the line.

e.g., 0xffff000000000000 would map address for va=0. Let's just return NULL.

sktt commented 11 months ago

LGTM! Thanks, Johannes!

thanks for the great tip!