mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
linux-user/arm: Mark the commpage executable
We're about to start validating PAGE_EXEC, which means that we've got to mark the commpage executable. We had been placing the commpage outside of reserved_va, which was incorrect and lead to an abort. Acked-by: Ilya Leoshkevich <iii@linux.ibm.com> Tested-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
fd28528ece
commit
fbd3c4cff6
2 changed files with 7 additions and 3 deletions
|
|
@ -34,9 +34,9 @@ static inline unsigned long arm_max_reserved_va(CPUState *cs)
|
|||
} else {
|
||||
/*
|
||||
* We need to be able to map the commpage.
|
||||
* See validate_guest_space in linux-user/elfload.c.
|
||||
* See init_guest_commpage in linux-user/elfload.c.
|
||||
*/
|
||||
return 0xffff0000ul;
|
||||
return 0xfffffffful;
|
||||
}
|
||||
}
|
||||
#define MAX_RESERVED_VA arm_max_reserved_va
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue