1. 06 10月, 2015 1 次提交
  2. 04 10月, 2015 4 次提交
  3. 12 9月, 2015 1 次提交
    • J
      fs/seq_file: convert int seq_vprint/seq_printf/etc... returns to void · 6798a8ca
      Joe Perches 提交于
      The seq_<foo> function return values were frequently misused.
      
      See: commit 1f33c41c ("seq_file: Rename seq_overflow() to
           seq_has_overflowed() and make public")
      
      All uses of these return values have been removed, so convert the
      return types to void.
      
      Miscellanea:
      
      o Move seq_put_decimal_<type> and seq_escape prototypes closer the
        other seq_vprintf prototypes
      o Reorder seq_putc and seq_puts to return early on overflow
      o Add argument names to seq_vprintf and seq_printf
      o Update the seq_escape kernel-doc
      o Convert a couple of leading spaces to tabs in seq_escape
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Joerg Roedel <jroedel@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6798a8ca
  4. 25 8月, 2015 1 次提交
  5. 18 8月, 2015 2 次提交
    • E
      iommu/fsl: Really fix init section(s) content · 57fb907d
      Emil Medve 提交于
      '0f1fb99b iommu/fsl: Fix section mismatch' was intended to address the modpost
      warning and the potential crash. Crash which is actually easy to trigger with a
      'unbind' followed by a 'bind' sequence. The fix is wrong as
      fsl_of_pamu_driver.driver gets added by bus_add_driver() to a couple of
      klist(s) which become invalid/corrupted as soon as the init sections are freed.
      Depending on when/how the init sections storage is reused various/random errors
      and crashes will happen
      
      'cd70d465 iommu/fsl: Various cleanups' contains annotations that go further down
      the wrong path laid by '0f1fb99b iommu/fsl: Fix section mismatch'
      
      Now remove all the incorrect annotations from the above mentioned patches (not
      exactly a revert) and those previously existing in the code, This fixes the
      modpost warning(s), the unbind/bind sequence crashes and the random
      errors/crashes
      
      Fixes: 0f1fb99b ("iommu/fsl: Fix section mismatch")
      Fixes: cd70d465 ("iommu/fsl: Various cleanups")
      Signed-off-by: NEmil Medve <Emilian.Medve@Freescale.com>
      Acked-by: NVarun Sethi <Varun.Sethi@freescale.com>
      Cc: stable@vger.kernel.org
      Tested-by: NMadalin Bucur <Madalin.Bucur@freescale.com>
      Signed-off-by: NJoerg Roedel <jroedel@suse.de>
      57fb907d
    • W
      iommu/io-pgtable-arm: Unmap and free table when overwriting with block · cf27ec93
      Will Deacon 提交于
      When installing a block mapping, we unconditionally overwrite a non-leaf
      PTE if we find one. However, this can cause a problem if the following
      sequence of events occur:
      
        (1) iommu_map called for a 4k (i.e. PAGE_SIZE) mapping at some address
            - We initialise the page table all the way down to a leaf entry
            - No TLB maintenance is required, because we're going from invalid
              to valid.
      
        (2) iommu_unmap is called on the mapping installed in (1)
            - We walk the page table to the final (leaf) entry and zero it
            - We only changed a valid leaf entry, so we invalidate leaf-only
      
        (3) iommu_map is called on the same address as (1), but this time for
            a 2MB (i.e. BLOCK_SIZE) mapping)
            - We walk the page table down to the penultimate level, where we
              find a table entry
            - We overwrite the table entry with a block mapping and return
              without any TLB maintenance and without freeing the memory used
              by the now-orphaned table.
      
      This last step can lead to a walk-cache caching the overwritten table
      entry, causing unexpected faults when the new mapping is accessed by a
      device. One way to fix this would be to collapse the page table when
      freeing the last page at a given level, but this would require expensive
      iteration on every map call. Instead, this patch detects the case when
      we are overwriting a table entry and explicitly unmaps the table first,
      which takes care of both freeing and TLB invalidation.
      
      Cc: <stable@vger.kernel.org>
      Reported-by: NBrian Starkey <brian.starkey@arm.com>
      Tested-by: NBrian Starkey <brian.starkey@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NJoerg Roedel <jroedel@suse.de>
      cf27ec93
  6. 17 8月, 2015 1 次提交
    • D
      scatterlist: use sg_phys() · db0fa0cb
      Dan Williams 提交于
      Coccinelle cleanup to replace open coded sg to physical address
      translations.  This is in preparation for introducing scatterlists that
      reference __pfn_t.
      
      // sg_phys.cocci: convert usage page_to_phys(sg_page(sg)) to sg_phys(sg)
      // usage: make coccicheck COCCI=sg_phys.cocci MODE=patch
      
      virtual patch
      
      @@
      struct scatterlist *sg;
      @@
      
      - page_to_phys(sg_page(sg)) + sg->offset
      + sg_phys(sg)
      
      @@
      struct scatterlist *sg;
      @@
      
      - page_to_phys(sg_page(sg))
      + sg_phys(sg) & PAGE_MASK
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      db0fa0cb
  7. 14 8月, 2015 9 次提交
  8. 13 8月, 2015 17 次提交
  9. 12 8月, 2015 4 次提交