1. 30 4月, 2015 1 次提交
    • D
      arm64: add missing PAGE_ALIGN() to __dma_free() · 2cff98b9
      Dean Nelson 提交于
      __dma_alloc() does a PAGE_ALIGN() on the passed in size argument before
      doing anything else. __dma_free() does not. And because it doesn't, it is
      possible to leak memory should size not be an integer multiple of PAGE_SIZE.
      
      The solution is to add a PAGE_ALIGN() to __dma_free() like is done in
      __dma_alloc().
      
      Additionally, this patch removes a redundant PAGE_ALIGN() from
      __dma_alloc_coherent(), since __dma_alloc_coherent() can only be called
      from __dma_alloc(), which already does a PAGE_ALIGN() before the call.
      
      Cc: stable@vger.kernel.org
      Acked-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NDean Nelson <dnelson@redhat.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      2cff98b9
  2. 27 4月, 2015 1 次提交
    • M
      arm64: dma-mapping: always clear allocated buffers · 6829e274
      Marek Szyprowski 提交于
      Buffers allocated by dma_alloc_coherent() are always zeroed on Alpha,
      ARM (32bit), MIPS, PowerPC, x86/x86_64 and probably other architectures.
      It turned out that some drivers rely on this 'feature'. Allocated buffer
      might be also exposed to userspace with dma_mmap() call, so clearing it
      is desired from security point of view to avoid exposing random memory
      to userspace. This patch unifies dma_alloc_coherent() behavior on ARM64
      architecture with other implementations by unconditionally zeroing
      allocated buffer.
      
      Cc: <stable@vger.kernel.org> # v3.14+
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      6829e274
  3. 21 3月, 2015 1 次提交
  4. 28 2月, 2015 1 次提交
  5. 24 1月, 2015 1 次提交
  6. 10 10月, 2014 1 次提交
  7. 02 10月, 2014 1 次提交
  8. 22 9月, 2014 1 次提交
  9. 09 5月, 2014 1 次提交
    • C
      arm64: Clean up the default pgprot setting · a501e324
      Catalin Marinas 提交于
      The primary aim of this patchset is to remove the pgprot_default and
      prot_sect_default global variables and rely strictly on predefined
      values. The original goal was to be able to run SMP kernels on UP
      hardware by not setting the Shareability bit. However, it is unlikely to
      see UP ARMv8 hardware and even if we do, the Shareability bit is no
      longer assumed to disable cacheable accesses.
      
      A side effect is that the device mappings now have the Shareability
      attribute set. The hardware, however, should ignore it since Device
      accesses are always Outer Shareable.
      
      Following the removal of the two global variables, there is some PROT_*
      macro reshuffling and cleanup, including the __PAGE_* macros (replaced
      by PAGE_*).
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Acked-by: NWill Deacon <will.deacon@arm.com>
      a501e324
  10. 04 5月, 2014 2 次提交
  11. 24 3月, 2014 3 次提交
  12. 28 2月, 2014 1 次提交
  13. 27 2月, 2014 2 次提交
  14. 26 2月, 2014 1 次提交
  15. 05 2月, 2014 1 次提交
  16. 20 12月, 2013 2 次提交
  17. 08 10月, 2012 1 次提交
  18. 17 9月, 2012 1 次提交