]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jan 2021 12:49:14 +0000 (13:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jan 2021 12:49:14 +0000 (13:49 +0100)
added patches:
crypto-x86-crc32c-fix-building-with-clang-ias.patch

queue-4.19/crypto-x86-crc32c-fix-building-with-clang-ias.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/crypto-x86-crc32c-fix-building-with-clang-ias.patch b/queue-4.19/crypto-x86-crc32c-fix-building-with-clang-ias.patch
new file mode 100644 (file)
index 0000000..c8b3422
--- /dev/null
@@ -0,0 +1,39 @@
+From f73328c3192eb4b93d62673cdfb6c0da502a9d71 Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Wed, 27 May 2020 16:17:40 +0200
+Subject: crypto: x86/crc32c - fix building with clang ias
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit 44623b2818f4a442726639572f44fd9b6d0ef68c upstream.
+
+The clang integrated assembler complains about movzxw:
+
+arch/x86/crypto/crc32c-pcl-intel-asm_64.S:173:2: error: invalid instruction mnemonic 'movzxw'
+
+It seems that movzwq is the mnemonic that it expects instead,
+and this is what objdump prints when disassembling the file.
+
+Fixes: 6a8ce1ef3940 ("crypto: crc32c - Optimize CRC32C calculation with PCLMULQDQ instruction")
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+[jc: Fixed conflicts due to lack of 34fdce6981b9 ("x86: Change {JMP,CALL}_NOSPEC argument")]
+Signed-off-by: Jian Cai <jiancai@google.com>
+Cc: Nick Desaulniers <ndesaulniers@google.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/x86/crypto/crc32c-pcl-intel-asm_64.S |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/x86/crypto/crc32c-pcl-intel-asm_64.S
++++ b/arch/x86/crypto/crc32c-pcl-intel-asm_64.S
+@@ -170,7 +170,7 @@ continue_block:
+       ## branch into array
+       lea     jump_table(%rip), bufp
+-      movzxw  (bufp, %rax, 2), len
++      movzwq  (bufp, %rax, 2), len
+       lea     crc_array(%rip), bufp
+       lea     (bufp, len, 1), bufp
+       JMP_NOSPEC bufp
index 4307ae6dcb33ee61335fcbaf1ed882553f20ac38..633df495bc191a05a92e54d3fa8aa14027dbdf39 100644 (file)
@@ -1,3 +1,4 @@
 usb-ohci-make-distrust_firmware-param-default-to-false.patch
 compiler.h-raise-minimum-version-of-gcc-to-5.1-for-arm64.patch
 dm-integrity-fix-flush-with-external-metadata-device.patch
+crypto-x86-crc32c-fix-building-with-clang-ias.patch