summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorHardik Garg <hargar@linux.microsoft.com>2026-09-11 17:51:46 +0000
committerWei Liu <wei.liu@kernel.org>2026-09-19 16:02:34 -0700
commit874194a8de75fc2f4d1fb70c670b289b7e48f93e (patch)
tree40537f86c49bc1cf5cb0637796374858c5dbf498 /tools/lib/python/kdoc/python_version.py
parentd5e689696017dfef8cd6f4eac895e6d23fa4a7bb (diff)
downloadlinux-next-874194a8de75fc2f4d1fb70c670b289b7e48f93e.tar.gz
linux-next-874194a8de75fc2f4d1fb70c670b289b7e48f93e.zip
mshv_vtl: Check per-CPU register page before mmap
Register-page setup is optional for each CPU. If allocation or registration fails, mshv_vtl_configure_reg_page() warns and leaves that CPU's reg_page NULL, but initial context setup continues successfully. Meanwhile, successful setup on another CPU sets the global mshv_has_reg_page flag. mshv_vtl_fault() checks this global flag before selecting the requested CPU's register page. With mixed setup results across online CPUs, the check passes even for a CPU with no register page, reaching get_page(NULL) when userspace faults in that mapping. Check the selected per-CPU register page before taking its reference and return VM_FAULT_SIGBUS if it is absent. Fixes: 7bfe3b8ea6e3 ("Drivers: hv: Introduce mshv_vtl driver") Cc: stable@vger.kernel.org Signed-off-by: Hardik Garg <hargar@linux.microsoft.com> Reviewed-by: Naman Jain <namjain@linux.microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions