OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[android-x86/kernel.git]
/
arch
/
x86
/
include
/
asm
/
desc.h
diff --git
a/arch/x86/include/asm/desc.h
b/arch/x86/include/asm/desc.h
index
ec8be07
..
13c5ee8
100644
(file)
--- a/
arch/x86/include/asm/desc.h
+++ b/
arch/x86/include/asm/desc.h
@@
-21,6
+21,8
@@
static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *in
desc->type = (info->read_exec_only ^ 1) << 1;
desc->type |= info->contents << 2;
+ /* Set the ACCESS bit so it can be mapped RO */
+ desc->type |= 1;
desc->s = 1;
desc->dpl = 0x3;