1. 25 7月, 2018 2 次提交
    • K
      swiotlb: clean up reporting · 7d63fb3a
      Kees Cook 提交于
      This removes needless use of '%p', and refactors the printk calls to
      use pr_*() helpers instead.
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Reviewed-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      7d63fb3a
    • R
      dma-mapping: relax warning for per-device areas · d27fb99f
      Robin Murphy 提交于
      The reasons why dma_free_attrs() should not be called from IRQ context
      are not necessarily obvious and somewhat buried in the development
      history, so let's start by documenting the warning itself to help anyone
      who does happen to hit it and wonder what the deal is.
      
      However, this check turns out to be slightly over-restrictive for the
      way that per-device memory has been spliced into the general API, since
      for that case we know that dma_declare_coherent_memory() has created an
      appropriate CPU mapping for the entire area and nothing dynamic should
      be happening. Given that the usage model for per-device memory is often
      more akin to streaming DMA than 'real' coherent DMA (e.g. allocating and
      freeing space to copy short-lived packets in and out), it is also
      somewhat more reasonable for those operations to happen in IRQ handlers
      for such devices.
      
      Therefore, let's move the irqs_disabled() check down past the per-device
      area hook, so that that gets a chance to resolve the request before we
      reach definite "you're doing it wrong" territory.
      Reported-by: NFredrik Noring <noring@nocrew.org>
      Tested-by: NFredrik Noring <noring@nocrew.org>
      Signed-off-by: NRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      d27fb99f
  2. 23 7月, 2018 4 次提交
    • L
      Linux 4.18-rc6 · d72e90f3
      Linus Torvalds 提交于
      d72e90f3
    • L
      Merge tag 'nvme-for-4.18' of git://git.infradead.org/nvme · 74413084
      Linus Torvalds 提交于
      Pull NVMe fixes from Christoph Hellwig:
      
       - fix a regression in 4.18 that causes a memory leak on probe failure
         (Keith Bush)
      
       - fix a deadlock in the passthrough ioctl code (Scott Bauer)
      
       - don't enable AENs if not supported (Weiping Zhang)
      
       - fix an old regression in metadata handling in the passthrough ioctl
         code (Roland Dreier)
      
      * tag 'nvme-for-4.18' of git://git.infradead.org/nvme:
        nvme: fix handling of metadata_len for NVME_IOCTL_IO_CMD
        nvme: don't enable AEN if not supported
        nvme: ensure forward progress during Admin passthru
        nvme-pci: fix memory leak on probe failure
      74413084
    • L
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 165ea0d1
      Linus Torvalds 提交于
      Pull vfs fixes from Al Viro:
       "Fix several places that screw up cleanups after failures halfway
        through opening a file (one open-coding filp_clone_open() and getting
        it wrong, two misusing alloc_file()). That part is -stable fodder from
        the 'work.open' branch.
      
        And Christoph's regression fix for uapi breakage in aio series;
        include/uapi/linux/aio_abi.h shouldn't be pulling in the kernel
        definition of sigset_t, the reason for doing so in the first place had
        been bogus - there's no need to expose struct __aio_sigset in
        aio_abi.h at all"
      
      * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        aio: don't expose __aio_sigset in uapi
        ocxlflash_getfile(): fix double-iput() on alloc_file() failures
        cxl_getfile(): fix double-iput() on alloc_file() failures
        drm_mode_create_lease_ioctl(): fix open-coded filp_clone_open()
      165ea0d1
    • A
      alpha: fix osf_wait4() breakage · f88a333b
      Al Viro 提交于
      kernel_wait4() expects a userland address for status - it's only
      rusage that goes as a kernel one (and needs a copyout afterwards)
      
      [ Also, fix the prototype of kernel_wait4() to have that __user
        annotation   - Linus ]
      
      Fixes: 92ebce5a ("osf_wait4: switch to kernel_wait4()")
      Cc: stable@kernel.org # v4.13+
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f88a333b
  3. 22 7月, 2018 16 次提交
  4. 21 7月, 2018 10 次提交
  5. 20 7月, 2018 8 次提交