2017-04-07-15-53 merged

Andrew Morton (1):
      docs-vm-transhuge-fix-few-trivial-typos-fix

Chris Salls (1):
      mm/mempolicy.c: fix error handling in set_mempolicy and mbind.

David Rientjes (2):
      mm, thp: fix setting of defer+madvise thp defrag mode
      mm, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff()

Huang Ying (3):
      mm, swap: Remove unused function prototype
      mm, swap: U=use kvzalloc to allocate some swap data structure
      mm, swap: sort swap entries before free

Jeffy Chen (1):
      mailmap: update Yakir Yang email address

Jerome Glisse (1):
      mm-hmm-devmem-device-memory-hotplug-using-zone_device-fix

Johannes Weiner (5):
      mm: vmscan: fix IO/refault regression in cache workingset transition
      mm: memcontrol: clean up memory.events counting function
      mm: memcontrol: re-use global VM event enum
      mm: memcontrol: re-use node VM page state enum
      mm: memcontrol: use node page state naming scheme for memcg

Jérôme Glisse (16):
      mm/memory/hotplug: add memory type parameter to arch_add/remove_memory
      mm/put_page: move ZONE_DEVICE page reference decrement v2
      mm/unaddressable-memory: new type of ZONE_DEVICE for unaddressable memory
      mm/ZONE_DEVICE/x86: add support for un-addressable device memory
      mm/migrate: new migrate mode MIGRATE_SYNC_NO_COPY
      mm/migrate: new memory migration helper for use with device memory
      mm/migrate: migrate_vma() unmap page from vma while collecting pages
      mm/hmm: heterogeneous memory management (HMM for short)
      mm/hmm/mirror: mirror process address space on device with HMM helpers
      mm/hmm/mirror: helper to snapshot CPU page table
      mm/hmm/mirror: device page fault handler
      mm/migrate: support un-addressable ZONE_DEVICE page in migration
      mm/migrate: allow migrate_vma() to alloc new page on empty entry
      mm/hmm/devmem: device memory hotplug using ZONE_DEVICE
      mm/hmm/devmem: dummy HMM device for ZONE_DEVICE memory
      hmm: heterogeneous memory management documentation

Mel Gorman (1):
      mm, vmscan: prevent kswapd sleeping prematurely due to mismatched classzone_idx -fix

Mike Kravetz (1):
      Documentation: vm, add hugetlbfs reservation overview

Ross Zwisler (1):
      dax: fix radix tree insertion race

SeongJae Park (1):
      Documentation/vm/transhuge.txt: fix trivial typos

Vlastimil Babka (4):
      mm: prevent potential recursive reclaim due to clearing PF_MEMALLOC
      mm: introduce memalloc_noreclaim_{save,restore}
      treewide: convert PF_MEMALLOC manipulations to new helpers
      mtd: nand: nandsim: convert to memalloc_noreclaim_*()
mm/mempolicy.c: fix error handling in set_mempolicy and mbind.

In the case that compat_get_bitmap fails we do not want to copy the
bitmap to the user as it will contain uninitialized stack data and leak
sensitive data.

Signed-off-by: Chris Salls <salls@cs.ucsb.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit cf01fb9985e8deb25ccf0ea54d916b8871ae0e62)
1 file changed