All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: don't call early_*map() post paging_init()
@ 2015-01-06 13:41 ` Leif Lindholm
  0 siblings, 0 replies; 30+ messages in thread
From: Leif Lindholm @ 2015-01-06 13:41 UTC (permalink / raw)
  To: msalter, linux-arm-kernel, linux-efi, will.deacon
  Cc: catalin.marinas, ard.biesheuvel

This (tiny) series resolves a fairly serious problem with
early_ioremap/iounmap/memremap/memunmap on arm64. These functions
cannot safely be called after paging_init(), but the sanity check
was not triggering.

As a result, a fixmap entry was incorrectly cleared during
early_initcalls on arm64 UEFI systems.

1/2 reworks the arm64 UEFI support code to not attempt these calls
and
2/2 enables the sanity check

Changes since v1:
- Rebased to v3.19-rc3
- Added 'Fixes:' tags
- Reworked 1/2 to restore call to efi_setup_idmap() to the original
  location in the boot process.

Leif Lindholm (2):
  arm64: don't make early_*map() calls post paging_init()
  arm64: call early_ioremap_reset() in paging_init()

 arch/arm64/include/asm/efi.h |  4 ++--
 arch/arm64/kernel/efi.c      | 27 ++++++++++++++-------------
 arch/arm64/kernel/setup.c    |  2 +-
 arch/arm64/mm/mmu.c          |  1 +
 4 files changed, 18 insertions(+), 16 deletions(-)

-- 
2.1.3

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2015-01-07 19:03 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06 13:41 [PATCH v2 0/2] arm64: don't call early_*map() post paging_init() Leif Lindholm
2015-01-06 13:41 ` Leif Lindholm
     [not found] ` <1420551673-31416-1-git-send-email-leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-01-06 13:41   ` [PATCH v2 1/2] arm64: don't make early_*map() calls " Leif Lindholm
2015-01-06 13:41     ` Leif Lindholm
     [not found]     ` <1420551673-31416-2-git-send-email-leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-01-06 20:35       ` Mark Salter
2015-01-06 20:35         ` Mark Salter
     [not found]         ` <1420576522.16211.30.camel-SI7Dh15yCUp82hYKe6nXyg@public.gmane.org>
2015-01-07 10:58           ` Will Deacon
2015-01-07 10:58             ` Will Deacon
2015-01-07 13:13             ` Ard Biesheuvel
2015-01-07 13:13               ` Ard Biesheuvel
     [not found]               ` <CAKv+Gu9NRRFZG0S6oFJqPG1+1O2-SZah4wqoi0YPofL33X3nJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-07 13:31                 ` Leif Lindholm
2015-01-07 13:31                   ` Leif Lindholm
     [not found]                   ` <20150107133109.GM3827-t77nlHhSwNqAroYi2ySoxKxOck334EZe@public.gmane.org>
2015-01-07 19:03                     ` Will Deacon
2015-01-07 19:03                       ` Will Deacon
2015-01-06 13:41   ` [PATCH v2 2/2] arm64: call early_ioremap_reset() in paging_init() Leif Lindholm
2015-01-06 13:41     ` Leif Lindholm
2015-01-06 13:59 ` [PATCH v2 0/2] arm64: don't call early_*map() post paging_init() Will Deacon
2015-01-06 13:59   ` Will Deacon
     [not found]   ` <20150106135941.GA3484-5wv7dgnIgG8@public.gmane.org>
2015-01-06 14:04     ` Ard Biesheuvel
2015-01-06 14:04       ` Ard Biesheuvel
     [not found]       ` <CAKv+Gu-nYC1VaJW6ULY0AantA681xZyxqqC+nQq91nj5t7w4OQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-06 15:52         ` Leif Lindholm
2015-01-06 15:52           ` Leif Lindholm
     [not found]           ` <20150106155208.GC3827-t77nlHhSwNqAroYi2ySoxKxOck334EZe@public.gmane.org>
2015-01-06 15:54             ` Ard Biesheuvel
2015-01-06 15:54               ` Ard Biesheuvel
2015-01-06 16:05               ` Will Deacon
2015-01-06 16:05                 ` Will Deacon
     [not found]                 ` <20150106160511.GD3484-5wv7dgnIgG8@public.gmane.org>
2015-01-06 16:23                   ` Ard Biesheuvel
2015-01-06 16:23                     ` Ard Biesheuvel
     [not found]                     ` <CAKv+Gu8nsdCiKM3fOZ6KSMKJ2-1==TyNv8W2Fo6R4jeO3AsgDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-06 19:18                       ` Will Deacon
2015-01-06 19:18                         ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.