Commit 06aae683 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

s390/vdso: fix access-list entry initialization

The access-list entry is supposed to have the fetch-only bit set, however
a reserved bit got set instead.
Userspace isn't able to write to the page anyway since the accessed page
has the read-only bit set. So this saves us only for bad surprises in the
future if the reserved bit gets used.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 8cb04be8
...@@ -125,7 +125,7 @@ int vdso_alloc_per_cpu(struct _lowcore *lowcore) ...@@ -125,7 +125,7 @@ int vdso_alloc_per_cpu(struct _lowcore *lowcore)
psal[i] = 0x80000000; psal[i] = 0x80000000;
lowcore->paste[4] = (u32)(addr_t) psal; lowcore->paste[4] = (u32)(addr_t) psal;
psal[0] = 0x20000000; psal[0] = 0x02000000;
psal[2] = (u32)(addr_t) aste; psal[2] = (u32)(addr_t) aste;
*(unsigned long *) (aste + 2) = segment_table + *(unsigned long *) (aste + 2) = segment_table +
_ASCE_TABLE_LENGTH + _ASCE_USER_BITS + _ASCE_TYPE_SEGMENT; _ASCE_TABLE_LENGTH + _ASCE_USER_BITS + _ASCE_TYPE_SEGMENT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment