1. 12 Oct, 2017 37 commits
  2. 08 Oct, 2017 3 commits
    • Greg Kroah-Hartman's avatar
      Linux 4.9.54 · f37eb7b5
      Greg Kroah-Hartman authored
      f37eb7b5
    • Gerald Schaefer's avatar
      s390/mm: make pmdp_invalidate() do invalidation only · 75903d40
      Gerald Schaefer authored
      commit 91c575b3 upstream.
      
      Commit 227be799 ("s390/mm: uninline pmdp_xxx functions from pgtable.h")
      inadvertently changed the behavior of pmdp_invalidate(), so that it now
      clears the pmd instead of just marking it as invalid. Fix this by restoring
      the original behavior.
      
      A possible impact of the misbehaving pmdp_invalidate() would be the
      MADV_DONTNEED races (see commits ced10803 and 58ceeb6b), although we
      should not have any negative impact on the related dirty/young flags,
      since those flags are not set by the hardware on s390.
      
      Fixes: 227be799 ("s390/mm: uninline pmdp_xxx functions from pgtable.h")
      Signed-off-by: default avatarGerald Schaefer <gerald.schaefer@de.ibm.com>
      Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      75903d40
    • Arnd Bergmann's avatar
      ttpci: address stringop overflow warning · 14b502e4
      Arnd Bergmann authored
      commit 69d3973a upstream.
      
      gcc-7.0.1 warns about old code in ttpci:
      
      In file included from drivers/media/pci/ttpci/av7110.c:63:0:
      In function 'irdebi.isra.2',
          inlined from 'start_debi_dma' at drivers/media/pci/ttpci/av7110.c:376:3,
          inlined from 'gpioirq' at drivers/media/pci/ttpci/av7110.c:659:3:
      drivers/media/pci/ttpci/av7110_hw.h:406:3: warning: 'memcpy': specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
         memcpy(av7110->debi_virt, (char *) &res, count);
      In function 'irdebi.isra.2',
          inlined from 'start_debi_dma' at drivers/media/pci/ttpci/av7110.c:376:3,
          inlined from 'gpioirq' at drivers/media/pci/ttpci/av7110.c:668:3:
      drivers/media/pci/ttpci/av7110_hw.h:406:3: warning: 'memcpy': specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
         memcpy(av7110->debi_virt, (char *) &res, count);
      
      Apparently, 'count' can be negative here, which will then get turned
      into a giant size argument for memcpy. Changing the sizes to 'unsigned
      int' instead seems safe as we already check for maximum sizes, and it
      also simplifies the code a bit.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      14b502e4