kernel: vm: allow mmapping of the last page of the userspace.
This commit is contained in:
@@ -6402,7 +6402,7 @@ _user_map_file(const char* userName, void** userAddress, uint32 addressSpec,
|
|||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
}
|
}
|
||||||
if (!IS_USER_ADDRESS(address)
|
if (!IS_USER_ADDRESS(address)
|
||||||
|| !IS_USER_ADDRESS((addr_t)address + size)) {
|
|| !IS_USER_ADDRESS((addr_t)address + size - 1)) {
|
||||||
return B_BAD_ADDRESS;
|
return B_BAD_ADDRESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user