1. 18 Jan, 2013 5 commits
  2. 17 Jan, 2013 4 commits
  3. 16 Jan, 2013 26 commits
  4. 15 Jan, 2013 5 commits
    • Daniel De Graaf's avatar
      xen/gntdev: remove erronous use of copy_to_user · 1affa98d
      Daniel De Graaf authored
      Since there is now a mapping of granted pages in kernel address space in
      both PV and HVM, use it for UNMAP_NOTIFY_CLEAR_BYTE instead of accessing
      memory via copy_to_user and triggering sleep-in-atomic warnings.
      Signed-off-by: default avatarDaniel De Graaf <dgdegra@tycho.nsa.gov>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      1affa98d
    • Daniel De Graaf's avatar
      xen/gntdev: correctly unmap unlinked maps in mmu notifier · 16a1d022
      Daniel De Graaf authored
      If gntdev_ioctl_unmap_grant_ref is called on a range before unmapping
      it, the entry is removed from priv->maps and the later call to
      mn_invl_range_start won't find it to do the unmapping. Fix this by
      creating another list of freeable maps that the mmu notifier can search
      and use to unmap grants.
      Signed-off-by: default avatarDaniel De Graaf <dgdegra@tycho.nsa.gov>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      16a1d022
    • Daniel De Graaf's avatar
      xen/gntdev: fix unsafe vma access · 2512f298
      Daniel De Graaf authored
      In gntdev_ioctl_get_offset_for_vaddr, we need to hold mmap_sem while
      calling find_vma() to avoid potentially having the result freed out from
      under us.  Similarly, the MMU notifier functions need to synchronize with
      gntdev_vma_close to avoid map->vma being freed during their iteration.
      Signed-off-by: default avatarDaniel De Graaf <dgdegra@tycho.nsa.gov>
      Reported-by: default avatarAl Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      2512f298
    • Andres Lagar-Cavilla's avatar
      xen/privcmd: Fix mmap batch ioctl. · 99beae6c
      Andres Lagar-Cavilla authored
      1. If any individual mapping error happens, the V1 case will mark *all*
      operations as failed. Fixed.
      
      2. The err_array was allocated with kcalloc, resulting in potentially O(n) page
      allocations. Refactor code to not use this array.
      Signed-off-by: default avatarAndres Lagar-Cavilla <andres@lagarcavilla.org>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      99beae6c
    • Konrad Rzeszutek Wilk's avatar
      Merge tag 'v3.7' into stable/for-linus-3.8 · 7bcc1ec0
      Konrad Rzeszutek Wilk authored
      Linux 3.7
      
      * tag 'v3.7': (833 commits)
        Linux 3.7
        Input: matrix-keymap - provide proper module license
        Revert "revert "Revert "mm: remove __GFP_NO_KSWAPD""" and associated damage
        ipv4: ip_check_defrag must not modify skb before unsharing
        Revert "mm: avoid waking kswapd for THP allocations when compaction is deferred or contended"
        inet_diag: validate port comparison byte code to prevent unsafe reads
        inet_diag: avoid unsafe and nonsensical prefix matches in inet_diag_bc_run()
        inet_diag: validate byte code to prevent oops in inet_diag_bc_run()
        inet_diag: fix oops for IPv4 AF_INET6 TCP SYN-RECV state
        mm: vmscan: fix inappropriate zone congestion clearing
        vfs: fix O_DIRECT read past end of block device
        net: gro: fix possible panic in skb_gro_receive()
        tcp: bug fix Fast Open client retransmission
        tmpfs: fix shared mempolicy leak
        mm: vmscan: do not keep kswapd looping forever due to individual uncompactable zones
        mm: compaction: validate pfn range passed to isolate_freepages_block
        mmc: sh-mmcif: avoid oops on spurious interrupts (second try)
        Revert misapplied "mmc: sh-mmcif: avoid oops on spurious interrupts"
        mmc: sdhci-s3c: fix missing clock for gpio card-detect
        lib/Makefile: Fix oid_registry build dependency
        ...
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      
      Conflicts:
      	arch/arm/xen/enlighten.c
      	drivers/xen/Makefile
      
      [We need to have the v3.7 base as the 'for-3.8' was based off v3.7-rc3
      and there are some patches in v3.7-rc6 that we to have in our branch]
      7bcc1ec0