forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit49275fe
x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy
The kernel is very erratic as to which pagetables have _PAGE_USER set. Thevsyscall page gets lucky: it seems that all of the relevant pagetables areamong the apparently arbitrary ones that set _PAGE_USER. Rather thanrelying on chance, just explicitly set _PAGE_USER.This will let us clean up pagetable setup to stop setting _PAGE_USER. Theadded code can also be reused by pagetable isolation to manage the_PAGE_USER bit in the usermode tables.[ tglx: Folded paravirt fix from Juergen Gross ]Signed-off-by: Andy Lutomirski <luto@kernel.org>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Cc: Borislav Petkov <bp@alien8.de>Cc: Brian Gerst <brgerst@gmail.com>Cc: Dave Hansen <dave.hansen@linux.intel.com>Cc: David Laight <David.Laight@aculab.com>Cc: H. Peter Anvin <hpa@zytor.com>Cc: Josh Poimboeuf <jpoimboe@redhat.com>Cc: Juergen Gross <jgross@suse.com>Cc: Kees Cook <keescook@chromium.org>Cc: Linus Torvalds <torvalds@linux-foundation.org>Cc: Peter Zijlstra <peterz@infradead.org>Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent146122e commit49275fe
1 file changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
332 | 362 | | |
333 | 363 | | |
334 | 364 | | |
335 | 365 | | |
336 | 366 | | |
337 | | - | |
| 367 | + | |
338 | 368 | | |
339 | 369 | | |
340 | 370 | | |
341 | 371 | | |
| 372 | + | |
| 373 | + | |
342 | 374 | | |
343 | 375 | | |
344 | 376 | | |
| |||
0 commit comments
Comments
(0)