KernelTestFramework / ktf

Kernel Test Framework
BSD 2-Clause "Simplified" License
139 stars 20 forks source link

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

Closed sktt closed 1 year ago

sktt commented 1 year 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 1 year ago

LGTM! Thanks, Johannes!

thanks for the great tip!