Re: Linux 4.15.1

2018-02-04 Thread Greg KH
diff --git a/Makefile b/Makefile
index c8b8e902d5a4..af101b556ba0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 15
-SUBLEVEL = 0
+SUBLEVEL = 1
 EXTRAVERSION =
 NAME = Fearless Coyote
 
diff --git a/arch/x86/crypto/aesni-intel_asm.S 
b/arch/x86/crypto/aesni-intel_asm.S
index 3d09e3aca18d..12e8484a8ee7 100644
--- a/arch/x86/crypto/aesni-intel_asm.S
+++ b/arch/x86/crypto/aesni-intel_asm.S
@@ -90,30 +90,6 @@ SHIFT_MASK: .octa 0x0f0e0d0c0b0a09080706050403020100
 ALL_F:  .octa 0x
 .octa 0x
 
-.section .rodata
-.align 16
-.type aad_shift_arr, @object
-.size aad_shift_arr, 272
-aad_shift_arr:
-.octa 0x
-.octa 0xff0C
-.octa 0x0D0C
-.octa 0xff0E0D0C
-.octa 0x0F0E0D0C
-.octa 0xff0C0B0A0908
-.octa 0x0D0C0B0A0908
-.octa 0xff0E0D0C0B0A0908
-.octa 0x0F0E0D0C0B0A0908
-.octa 0xff0C0B0A090807060504
-.octa 0x0D0C0B0A090807060504
-.octa 0xff0E0D0C0B0A090807060504
-.octa 0x0F0E0D0C0B0A090807060504
-.octa 0xff0C0B0A09080706050403020100
-.octa 0x0D0C0B0A09080706050403020100
-.octa 0xff0E0D0C0B0A09080706050403020100
-.octa 0x0F0E0D0C0B0A09080706050403020100
-
-
 .text
 
 
@@ -257,6 +233,37 @@ aad_shift_arr:
pxor  \TMP1, \GH# result is in TMP1
 .endm
 
+# Reads DLEN bytes starting at DPTR and stores in XMMDst
+# where 0 < DLEN < 16
+# Clobbers %rax, DLEN and XMM1
+.macro READ_PARTIAL_BLOCK DPTR DLEN XMM1 XMMDst
+cmp $8, \DLEN
+jl _read_lt8_\@
+mov (\DPTR), %rax
+MOVQ_R64_XMM %rax, \XMMDst
+sub $8, \DLEN
+jz _done_read_partial_block_\@
+   xor %eax, %eax
+_read_next_byte_\@:
+shl $8, %rax
+mov 7(\DPTR, \DLEN, 1), %al
+dec \DLEN
+jnz _read_next_byte_\@
+MOVQ_R64_XMM %rax, \XMM1
+   pslldq $8, \XMM1
+por \XMM1, \XMMDst
+   jmp _done_read_partial_block_\@
+_read_lt8_\@:
+   xor %eax, %eax
+_read_next_byte_lt8_\@:
+shl $8, %rax
+mov -1(\DPTR, \DLEN, 1), %al
+dec \DLEN
+jnz _read_next_byte_lt8_\@
+MOVQ_R64_XMM %rax, \XMMDst
+_done_read_partial_block_\@:
+.endm
+
 /*
 * if a = number of total plaintext bytes
 * b = floor(a/16)
@@ -273,62 +280,30 @@ aad_shift_arr:
 XMM2 XMM3 XMM4 XMMDst TMP6 TMP7 i i_seq operation
 MOVADQ SHUF_MASK(%rip), %xmm14
movarg7, %r10   # %r10 = AAD
-   movarg8, %r12   # %r12 = aadLen
-   mov%r12, %r11
+   movarg8, %r11   # %r11 = aadLen
pxor   %xmm\i, %xmm\i
pxor   \XMM2, \XMM2
 
cmp$16, %r11
-   jl _get_AAD_rest8\num_initial_blocks\operation
+   jl _get_AAD_rest\num_initial_blocks\operation
 _get_AAD_blocks\num_initial_blocks\operation:
movdqu (%r10), %xmm\i
PSHUFB_XMM %xmm14, %xmm\i # byte-reflect the AAD data
pxor   %xmm\i, \XMM2
GHASH_MUL  \XMM2, \TMP3, \TMP1, \TMP2, \TMP4, \TMP5, \XMM1
add$16, %r10
-   sub$16, %r12
sub$16, %r11
cmp$16, %r11
jge_get_AAD_blocks\num_initial_blocks\operation
 
movdqu \XMM2, %xmm\i
+
+   /* read the last <16B of AAD */
+_get_AAD_rest\num_initial_blocks\operation:
cmp$0, %r11
je _get_AAD_done\num_initial_blocks\operation
 
-   pxor   %xmm\i,%xmm\i
-
-   /* read the last <16B of AAD. since we have at least 4B of
-   data right after the AAD (the ICV, and maybe some CT), we can
-   read 4B/8B blocks safely, and then get rid of the extra stuff */
-_get_AAD_rest8\num_initial_blocks\operation:
-   cmp$4, %r11
-   jle_get_AAD_rest4\num_initial_blocks\operation
-   movq   (%r10), \TMP1
-   add$8, %r10
-   sub$8, %r11
-   pslldq $8, \TMP1
-   psrldq $8, %xmm\i
-   pxor   \TMP1, %xmm\i
-   jmp_get_AAD_rest8\num_initial_blocks\operation
-_get_AAD_rest4\num_initial_blocks\operation:
-   cmp$0, %r11
-   jle_get_AAD_rest0\num_initial_blocks\operation
-   mov(%r10), %eax
-   movq   %rax, \TMP1
-   add$4, %r10
-   sub$4, %r10
-   pslldq $12, \TMP1
-   psrldq $4, %xmm\i
-   pxor   \TMP1, %xmm\i
-_get_AAD_rest0\num_initial_blocks\operation:
-   /* finalize: shift out the extra bytes we read, and align
-   lef

Linux 4.15.1

2018-02-04 Thread Greg KH
rupts when port is opened
  Input: synaptics-rmi4 - do not delete interrupt memory too early

Fabio Estevam (1):
  serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS

Fabrice Gasnier (1):
  iio: adc: stm32: fix scan of multiple channels with DMA

Ganesh Mahendran (1):
  android: binder: use VM_ALLOC to get vm area

Gaurav Kohli (1):
  tty: fix data race between tty_init_dev and flush of buf

Gilad Ben-Yossef (2):
  staging: ccree: NULLify backup_info when unused
  staging: ccree: fix fips event irq handling build

Greg Kroah-Hartman (2):
  USB: serial: pl2303: new device id for Chilitag
  Linux 4.15.1

Hans de Goede (1):
  USB: cdc-acm: Do not log urb submission errors on disconnect

Hauke Mehrtens (1):
  crypto: ecdh - fix typo in KPP dependency of CRYPTO_ECDH

Hemant Kumar (1):
  usb: f_fs: Prevent gadget unbind if it is already unbound

Jason Gerecke (1):
  HID: wacom: Fix reporting of touch toggle (WACOM_HID_WD_MUTE_DEVICE) 
events

Jesse Chan (4):
  power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
  gpio: iop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
  gpio: ath79: add missing MODULE_DESCRIPTION/LICENSE
  mtd: nand: denali_pci: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE

Jia-Ju Bai (1):
  USB: serial: io_edgeport: fix possible sleep-in-atomic

Joel Stanley (1):
  tools/gpio: Fix build error with musl libc

Johan Hovold (1):
  USB: serial: simple: add Motorola Tetra driver

Junaid Shahid (2):
  crypto: aesni - Fix out-of-bounds access of the data buffer in 
generic-gcm-aesni
  crypto: aesni - Fix out-of-bounds access of the AAD buffer in 
generic-gcm-aesni

Linus Walleij (1):
  gpio: Fix kernel stack leak to userspace

Lukas Wunner (1):
  Bluetooth: hci_serdev: Init hci_uart proto_lock to avoid oops

Lyude Paul (1):
  igb: Free IRQs when device is hotplugged

Martijn Coenen (1):
  ANDROID: binder: remove waitqueue when thread exits.

Masahiro Yamada (1):
  serial: 8250_of: fix return code when probe function fails to get reset

Matthew Garrett (1):
  x86/efi: Clarify that reset attack mitigation needs appropriate userspace

Mike Rapoport (1):
  ima/policy: fix parsing of fsuuid

Narcisa Ana Maria Vasile (1):
  iio: chemical: ccs811: Fix output of IIO_CONCENTRATION channels

OKAMOTO Yoshiaki (1):
  usb: option: Add support for FS040U modem

Oliver Neukum (2):
  CDC-ACM: apply quirk for card reader
  usb: uas: unconditionally bring back host after reset

Patrice Chotard (1):
  gpio: stmpe: i2c transfer are forbiden in atomic context

Raghava Aditya Renukunta (2):
  scsi: aacraid: Fix udev inquiry race condition
  scsi: aacraid: Fix hang in kdump

Sabrina Dubroca (2):
  crypto: aesni - fix typo in generic_gcmaes_decrypt
  crypto: aesni - add wrapper for generic gcm(aes)

Shuah Khan (2):
  usbip: prevent bind loops on devices attached to vhci_hcd
  usbip: list: don't list devices attached to vhci_hcd

Stefan Agner (1):
  spi: imx: do not access registers while clocks disabled

Stephan Mueller (2):
  crypto: aesni - handle zero length dst buffer
  crypto: af_alg - whitelist mask and type

Takashi Iwai (1):
  ALSA: hda - Reduce the suspend time consumption for ALC256

Tomas Winkler (1):
  mei: me: allow runtime pm for platform with D0i3

Wei Yongjun (2):
  serial: 8250_uniphier: fix error return code in uniphier_uart_probe()
  test_firmware: fix missing unlock on error in config_num_requests_store()



signature.asc
Description: PGP signature