aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2015-07-26 12:59:00 +0000
committerCatalin Marinas <[email protected]>2015-07-27 17:00:05 +0000
commitf91b1feada0b6f0a4d33648155b3ded2c4e0707e (patch)
tree4108b78d691b26c3dbf69ecc58a82bd6f44ff133 /tools/perf/scripts/python/netdev-times.py
parentLinux 4.2-rc4 (diff)
downloadkernel-f91b1feada0b6f0a4d33648155b3ded2c4e0707e.tar.gz
kernel-f91b1feada0b6f0a4d33648155b3ded2c4e0707e.zip
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 <[email protected]> Fixes: f84d02755f5a ("arm64: add EFI runtime services") Cc: <[email protected]> # 3.16+ Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions