kern: don't allow mapping device pages as executable on abi 26.x+
This commit is contained in:
@@ -185,6 +185,11 @@ namespace ams::kern {
|
||||
/* Validate that the intended kernel version isn't too high for us to support. */
|
||||
R_UNLESS(m_capabilities.GetIntendedKernelVersion() <= ams::svc::SupportedKernelVersion, svc::ResultInvalidCombination());
|
||||
|
||||
/* Enable mapping device pages as executable on legacy processes. */
|
||||
if (m_capabilities.GetIntendedKernelMajorVersion() < 26) {
|
||||
m_page_table.GetBasePageTable().AllowDeviceMappingOfExecPages();
|
||||
}
|
||||
|
||||
/* Create and clear the process local region. */
|
||||
R_TRY(this->CreateThreadLocalRegion(std::addressof(m_plr_address)));
|
||||
m_plr_heap_address = this->GetThreadLocalRegionPointer(m_plr_address);
|
||||
|
||||
Reference in New Issue
Block a user