Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1431770
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 05/29] x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables() |
| Date | 2016-06-27 09:20 +0200 |
| Message-ID | <rOyZP-5wh-11@gated-at.bofh.it> (permalink) |
| References | <rOyZP-5wh-13@gated-at.bofh.it> <rOqfT-8f8-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Andy Lutomirski <luto@kernel.org> wrote: >kernel_unmap_pages_in_pgd() is dangerous: if a pgd entry in >init_mm.pgd were to be cleared, callers would need to ensure that >the pgd entry hadn't been propagated to any other pgd. > >Its only caller was efi_cleanup_page_tables(), and that, in turn, >was unused, so just delete both functions. This leaves a couple of >other helpers unused, so delete them, too. > >Cc: Matt Fleming <matt@codeblueprint.co.uk> >Cc: linux-efi@vger.kernel.org >Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk> >Signed-off-by: Andy Lutomirski <luto@kernel.org> >--- > arch/x86/include/asm/efi.h | 1 - > arch/x86/include/asm/pgtable_types.h | 2 -- > arch/x86/mm/pageattr.c | 28 ---------------------------- > arch/x86/platform/efi/efi.c | 2 -- > arch/x86/platform/efi/efi_32.c | 3 --- > arch/x86/platform/efi/efi_64.c | 5 ----- > 6 files changed, 41 deletions(-) Acked-by: Borislav Petkov <bp@suse.de> -- Sent from a small device: formatting sucks and brevity is inevitable.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 05/29] x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables() Andy Lutomirski <luto@kernel.org> - 2016-06-27 00:00 +0200 Re: [PATCH v4 05/29] x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables() Borislav Petkov <bp@alien8.de> - 2016-06-27 09:20 +0200
csiph-web