forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitd9e9a64
x86/mm/pti: Allocate a separate user PGD
Kernel page table isolation requires to have two PGDs. One for the kernel,which contains the full kernel mapping plus the user space mapping and onefor user space which contains the user space mappings and the minimal setof kernel mappings which are required by the architecture to be able totransition from and to user space.Add the necessary preliminaries.[ tglx: Split out from the big kaiser dump. EFI fixup from Kirill ]Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Reviewed-by: Borislav Petkov <bp@suse.de>Cc: Andy Lutomirski <luto@kernel.org>Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>Cc: Borislav Petkov <bp@alien8.de>Cc: Brian Gerst <brgerst@gmail.com>Cc: David Laight <David.Laight@aculab.com>Cc: Denys Vlasenko <dvlasenk@redhat.com>Cc: Eduardo Valentin <eduval@amazon.com>Cc: Greg KH <gregkh@linuxfoundation.org>Cc: H. Peter Anvin <hpa@zytor.com>Cc: Josh Poimboeuf <jpoimboe@redhat.com>Cc: Juergen Gross <jgross@suse.com>Cc: Linus Torvalds <torvalds@linux-foundation.org>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Will Deacon <will.deacon@arm.com>Cc: aliguori@amazon.comCc: daniel.gruss@iaik.tugraz.atCc: hughd@google.comCc: keescook@google.comSigned-off-by: Ingo Molnar <mingo@kernel.org>1 parent1c4de1f commitd9e9a64
4 files changed
+45
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
344 | 365 | | |
345 | 366 | | |
346 | 367 | | |
| |||
350 | 371 | | |
351 | 372 | | |
352 | 373 | | |
353 | | - | |
| 374 | + | |
354 | 375 | | |
355 | 376 | | |
356 | 377 | | |
357 | 378 | | |
358 | 379 | | |
359 | 380 | | |
| 381 | + | |
360 | 382 | | |
361 | 383 | | |
362 | 384 | | |
363 | 385 | | |
364 | 386 | | |
365 | 387 | | |
366 | 388 | | |
367 | | - | |
| 389 | + | |
368 | 390 | | |
369 | 391 | | |
370 | 392 | | |
371 | 393 | | |
372 | 394 | | |
373 | 395 | | |
| 396 | + | |
374 | 397 | | |
375 | 398 | | |
376 | 399 | | |
| |||
381 | 404 | | |
382 | 405 | | |
383 | 406 | | |
384 | | - | |
| 407 | + | |
385 | 408 | | |
| 409 | + | |
386 | 410 | | |
387 | 411 | | |
388 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | | - | |
| 361 | + | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
365 | | - | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| |||
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
210 | | - | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
0 commit comments
Comments
(0)