linux/arch
Ard Biesheuvel f91b1feada arm64/efi: map the entire UEFI vendor string before reading it
At boot, the UTF-16 UEFI vendor string is copied from the system
table into a char array with a size of 100 bytes. However, this
size of 100 bytes is also used for memremapping() the source,
which may not be sufficient if the vendor string exceeds 50
UTF-16 characters, and the placement of the vendor string inside
a 4 KB page happens to leave the end unmapped.

So use the correct '100 * sizeof(efi_char16_t)' for the size of
the mapping.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Fixes: f84d02755f ("arm64: add EFI runtime services")
Cc: <stable@vger.kernel.org> # 3.16+
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2015-07-27 18:00:05 +01:00
..
alpha
arc
arm MMC core: 2015-07-24 16:43:16 -07:00
arm64 arm64/efi: map the entire UEFI vendor string before reading it 2015-07-27 18:00:05 +01:00
avr32
blackfin
c6x
cris
frv
h8300
hexagon
ia64
m32r m32r: Add ioreadXX/iowriteXX big-endian mmio accessors 2015-07-23 18:08:28 -07:00
m68k
metag
microblaze
mips
mn10300
nios2
openrisc
parisc
powerpc
s390 s390: adapt entry.S to the move of thread_struct 2015-07-20 13:22:18 +02:00
score
sh
sparc
tile tile: use free_bootmem_late() for initrd 2015-07-23 14:11:09 -04:00
um
unicore32
x86 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-07-26 11:46:32 -07:00
xtensa
.gitignore
Kconfig