linux-imx/mm
Chris Salls 9840e8fb9e mm/mempolicy.c: fix error handling in set_mempolicy and mbind.
commit cf01fb9985 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2017-04-28 19:30:37 +02:00
..
backing-dev.c bdi: avoid oops on device removal 2014-05-05 13:36:28 +02:00
balloon_compaction.c mm/balloon_compaction: fix deflation when compaction is disabled 2016-05-13 15:09:38 +02:00
bootmem.c mm: kill free_all_bootmem_node() 2013-07-03 16:07:39 -07:00
bounce.c mm/bounce.c: fix a regression where MS_SNAP_STABLE (stable pages snapshotting) was ignored 2013-09-30 14:31:02 -07:00
cleancache.c mm: cleancache: clean up cleancache_enabled 2013-04-30 17:04:01 -07:00
compaction.c mm/balloon_compaction: redesign ballooned pages management 2016-05-13 15:09:25 +02:00
debug-pagealloc.c
dmapool.c dmapool: make DMAPOOL_DEBUG detect corruption of free marker 2012-12-11 17:22:24 -08:00
fadvise.c teach SYSCALL_DEFINE<n> how to deal with long long/unsigned long long 2013-03-03 22:46:22 -05:00
failslab.c
filemap_xip.c lift sb_start_write() out of ->write() 2013-04-09 14:12:56 -04:00
filemap.c mm, fs: check for fatal signals in do_generic_file_read() 2017-02-16 11:44:38 +01:00
fremap.c mm: fix bad rss-counter if remap_file_pages raced migration 2014-09-26 11:51:50 +02:00
frontswap.c mm: frontswap: invalidate expired data on a dup-store failure 2015-01-07 16:20:07 +01:00
highmem.c Some nice cleanups, and even a patch my wife did as a "live" demo for 2012-12-20 08:37:05 -08:00
huge_memory.c mm/huge_memory.c: respect FOLL_FORCE/FOLL_COW for thp 2017-03-28 15:48:04 +02:00
hugetlb_cgroup.c cgroup: pass around cgroup_subsys_state instead of cgroup in file methods 2013-08-08 20:11:24 -04:00
hugetlb.c mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd() 2017-04-10 14:21:33 +02:00
hwpoison-inject.c mm/hwpoison: fix the lack of one reference count against poisoned page 2013-09-30 14:31:03 -07:00
init-mm.c
internal.h mm, compaction: properly signal and act upon lock and need_sched() contention 2014-09-26 11:52:00 +02:00
interval_tree.c mm: add CONFIG_DEBUG_VM_RB build option 2012-10-09 16:22:42 +09:00
Kconfig hugetlb: restrict hugepage_migration_support() to x86_64 2014-07-02 12:06:08 +02:00
Kconfig.debug
kmemcheck.c
kmemleak-test.c
kmemleak.c mm: kmemleak: avoid false negatives on vmalloc'ed objects 2014-07-28 09:12:23 +02:00
ksm.c mm,ksm: fix endless looping in allocating memory when ksm enable 2016-10-07 10:03:57 +02:00
list_lru.c mm: list_lru: fix almost infinite loop causing effective livelock 2013-10-30 12:57:46 -07:00
maccess.c
madvise.c mm: madvise: fix MADV_WILLNEED on shmem swapouts 2014-09-26 11:51:58 +02:00
Makefile mm: per-thread vma caching 2014-09-26 11:51:57 +02:00
memblock.c memblock, numa: binary search node id 2013-09-11 15:57:51 -07:00
memcontrol.c mm: filemap: update find_get_pages_tag() to deal with shadow entries 2016-11-28 22:22:46 +01:00
memory_hotplug.c mm/memory_hotplug.c: check start_pfn in test_pages_in_a_zone() 2017-02-16 11:44:37 +01:00
memory-failure.c mm: soft-offline: check return value in second __get_any_page() call 2016-02-24 10:29:56 +01:00
memory.c mm: export symbol dependencies of is_zero_pfn() 2016-11-28 22:22:47 +01:00
mempolicy.c mm/mempolicy.c: fix error handling in set_mempolicy and mbind. 2017-04-28 19:30:37 +02:00
mempool.c mm/mempool.c: convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...) 2013-09-11 15:58:14 -07:00
migrate.c mm: migrate dirty page without clear_page_dirty_for_io etc 2016-07-21 08:36:14 +02:00
mincore.c mm + fs: prepare for non-page entries in page cache radix trees 2014-09-26 11:51:58 +02:00
mlock.c mm: try_to_unmap_cluster() should lock_page() before mlocking 2014-05-15 09:55:37 +02:00
mm_init.c mm: tune vm_committed_as percpu_counter batching size 2013-07-03 16:07:32 -07:00
mmap.c mm: fix anon_vma->degree underflow in anon_vma endless growing prevention 2015-05-15 09:10:59 +02:00
mmu_context.c mm: remove old aio use_mm() comment 2013-05-07 18:38:27 -07:00
mmu_notifier.c treewide: relase -> release 2013-06-28 14:34:33 +02:00
mmzone.c mm: rename page struct field helpers 2013-02-23 17:50:18 -08:00
mprotect.c mm: fix TLB flush race between migration, and change_protection_range 2014-01-09 12:25:14 -08:00
mremap.c mm, thp: close race between mremap() and split_huge_page() 2014-06-06 11:40:23 +02:00
msync.c
nobootmem.c mm: concentrate modification of totalram_pages into the mm core 2013-07-03 16:07:33 -07:00
nommu.c mm/nommu.c: fix arithmetic overflow in __vm_enough_memory() 2015-03-12 11:10:01 +01:00
oom_kill.c OOM, PM: OOM killed task shouldn't escape PM suspend 2014-11-13 19:02:40 +01:00
page_alloc.c mm/init: fix zone boundary creation 2017-01-26 17:40:31 +01:00
page_cgroup.c cgroup/kmemleak: add kmemleak_free() for cgroup deallocations. 2014-11-13 19:02:56 +01:00
page_io.c aio: Kill aio_rw_vect_retry() 2013-07-30 11:53:12 -04:00
page_isolation.c mm: fix invalid node in alloc_migrate_target() 2016-04-20 08:40:09 +02:00
page-writeback.c writeback: use |1 instead of +1 to protect against div by zero 2015-05-16 09:12:44 +02:00
pagewalk.c mm: pagewalk: call pte_hole() for VM_PFNMAP during walk_page_range 2015-02-09 10:19:54 +01:00
percpu-km.c
percpu-vm.c percpu: perform tlb flush after pcpu_map_pages() failure 2014-10-13 15:41:25 +02:00
percpu.c Revert "percpu: free percpu allocation info for uniprocessor system" 2014-11-13 19:02:07 +01:00
pgtable-generic.c mm: fix TLB flush race between migration, and change_protection_range 2014-01-09 12:25:14 -08:00
process_vm_access.c ptrace: use fsuid, fsgid, effective creds for fs access checks 2016-02-24 10:23:22 +01:00
quicklist.c
readahead.c mm/readahead.c: inline ra_submit 2014-09-26 11:51:59 +02:00
rmap.c mm: fix anon_vma->degree underflow in anon_vma endless growing prevention 2015-05-15 09:10:59 +02:00
shmem.c tmpfs: fix regression hang in fallocate undo 2016-08-19 09:50:53 +02:00
slab_common.c slab_common: fix the check for duplicate slab names 2014-07-30 18:02:39 +02:00
slab.c mm/slab: fix unexpected index mapping result of kmalloc_size(INDEX_NODE+1) 2015-10-28 16:38:09 +01:00
slab.h memcg: check that kmem_cache has memcg_params before accessing it 2013-08-28 19:26:38 -07:00
slob.c mm/sl[aou]b: Move kmallocXXX functions to common code 2013-09-04 20:51:33 +03:00
slub.c mm: optimize put_mems_allowed() usage 2014-09-26 11:51:56 +02:00
sparse-vmemmap.c sparse-vmemmap: specify vmemmap population range in bytes 2013-04-29 15:54:35 -07:00
sparse.c mm/sparse: introduce alloc_usemap_and_memmap 2013-09-11 15:58:01 -07:00
swap_state.c mm: page_alloc: convert hot/cold parameter and immediate callers to bool 2014-09-26 11:52:03 +02:00
swap.c mm/swap.c: flush lru pvecs on compound page arrival 2016-07-21 08:36:10 +02:00
swapfile.c swapfile: fix memory corruption via malformed swapfile 2016-11-24 16:23:42 +01:00
truncate.c mm: filemap: update find_get_pages_tag() to deal with shadow entries 2016-11-28 22:22:46 +01:00
util.c nick kvfree() from apparmor 2015-04-27 19:59:54 +02:00
vmacache.c mm: don't pointlessly use BUG_ON() for sanity check 2014-09-26 11:51:57 +02:00
vmalloc.c vmalloc: use rcu list iterator to reduce vmap_area_lock contention 2014-09-26 11:52:07 +02:00
vmpressure.c mm: vmpressure: fix sending wrong events on underflow 2017-03-13 21:40:24 +01:00
vmscan.c mm/vmscan.c: set correct defer count for shrinker 2017-01-26 17:22:37 +01:00
vmstat.c vmstat: explicitly schedule per-cpu work on the CPU we need it to run on 2016-02-12 08:58:05 +01:00
zbud.c mm/zbud: fix some trivial typos in comments 2013-09-11 15:57:35 -07:00
zswap.c mm/zswap: bugfix: memory leak when invalidate and reclaim occur concurrently 2013-12-04 11:05:27 -08:00