Alan Cox
34b4e4aa3c
fix NULL pointer dereference in __vm_enough_memory()
...
The new exec code inserts an accounted vma into an mm struct which is not
current->mm. The existing memory check code has a hard coded assumption
that this does not happen as does the security code.
As the correct mm is known we pass the mm to the security method and the
helper function. A new security test is added for the case where we need
to pass the mm and the existing one is modified to pass current->mm to
avoid the need to change large amounts of code.
(Thanks to Tobias for fixing rejects and testing)
Signed-off-by: Alan Cox <[email protected] >
Cc: WU Fengguang <[email protected] >
Cc: James Morris <[email protected] >
Cc: Tobias Diedrich <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2007-08-22 19:52:45 -07:00
..
allocpercpu.c
Slab allocators: Replace explicit zeroing with __GFP_ZERO
2007-07-17 10:23:02 -07:00
backing-dev.c
remove mm/backing-dev.c:congestion_wait_interruptible()
2007-07-16 09:05:52 -07:00
bootmem.c
bounce.c
[BLOCK] Get rid of request_queue_t typedef
2007-07-24 09:28:11 +02:00
fadvise.c
filemap.c
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
2007-08-11 16:01:06 -07:00
filemap.h
filemap_xip.c
mm: fault feedback #2
2007-07-19 10:04:41 -07:00
fremap.c
only allow nonlinear vmas for ram backed filesystems
2007-07-19 10:04:41 -07:00
highmem.c
Create the ZONE_MOVABLE zone
2007-07-17 10:22:59 -07:00
hugetlb.c
fix hugetlb page allocation leak
2007-07-24 12:24:59 -07:00
internal.h
Make page->private usable in compound pages
2007-05-07 12:12:53 -07:00
Kconfig
Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION
2007-07-29 16:45:38 -07:00
madvise.c
speed up madvise_need_mmap_write() usage
2007-07-16 09:05:36 -07:00
Makefile
CONFIG_BOUNCE to avoid useless inclusion of bounce buffer logic
2007-07-17 10:23:02 -07:00
memory.c
remove handle_mm_fault export
2007-07-21 17:49:16 -07:00
memory_hotplug.c
memory hotplug: fix unnecessary calling of init_currenty_empty_zone()
2007-06-01 08:18:29 -07:00
mempolicy.c
mm: Remove slab destructors from kmem_cache_create().
2007-07-20 10:11:58 +09:00
mempool.c
Slab allocators: Replace explicit zeroing with __GFP_ZERO
2007-07-17 10:23:02 -07:00
migrate.c
memory unplug: isolate_lru_page fix
2007-07-26 11:35:17 -07:00
mincore.c
mlock.c
do not limit locked memory when RLIMIT_MEMLOCK is RLIM_INFINITY
2007-07-16 09:05:37 -07:00
mmap.c
fix NULL pointer dereference in __vm_enough_memory()
2007-08-22 19:52:45 -07:00
mmzone.c
mprotect.c
mm: variable length argument support
2007-07-19 10:04:45 -07:00
mremap.c
mm: variable length argument support
2007-07-19 10:04:45 -07:00
msync.c
Detach sched.h from mm.h
2007-05-21 09:18:19 -07:00
nommu.c
fix NULL pointer dereference in __vm_enough_memory()
2007-08-22 19:52:45 -07:00
oom_kill.c
oom: print points as unsigned long
2007-07-31 15:39:36 -07:00
page-writeback.c
move page writeback acounting out of macros
2007-07-19 10:04:52 -07:00
page_alloc.c
Do not trigger OOM-killer for high-order allocation failures
2007-07-31 15:39:36 -07:00
page_io.c
pdflush.c
Freezer: make kernel threads nonfreezable by default
2007-07-17 10:23:02 -07:00
prio_tree.c
quicklist.c
Quicklists for page table pages
2007-05-07 12:12:54 -07:00
readahead.c
readahead: sanify file_ra_state names
2007-07-19 10:04:44 -07:00
rmap.c
mm: Remove slab destructors from kmem_cache_create().
2007-07-20 10:11:58 +09:00
shmem.c
mm: Remove slab destructors from kmem_cache_create().
2007-07-20 10:11:58 +09:00
shmem_acl.c
slab.c
slab: correctly handle __GFP_ZERO
2007-07-24 12:24:59 -07:00
slob.c
slob: reduce list scanning
2007-07-21 17:49:16 -07:00
slub.c
SLUB: Fix dynamic dma kmalloc cache creation
2007-08-09 21:57:16 -07:00
sparse.c
sparsemem: ensure we initialise the node mapping for SPARSEMEM_STATIC
2007-08-22 19:52:44 -07:00
swap.c
Add suspend-related notifications for CPU hotplug
2007-05-09 12:30:56 -07:00
swap_state.c
Add __GFP_MOVABLE for callers to flag allocations from high memory that may be migrated
2007-07-17 10:22:59 -07:00
swapfile.c
Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION
2007-07-29 16:45:38 -07:00
thrash.c
Bug in mm/thrash.c function grab_swap_token()
2007-05-11 08:29:32 -07:00
tiny-shmem.c
truncate.c
mm: merge populate and nopage into fault (fixes nonlinear)
2007-07-19 10:04:41 -07:00
util.c
add kstrndup
2007-07-18 08:47:39 -07:00
vmalloc.c
lguest: export symbols for lguest as a module
2007-07-19 10:04:52 -07:00
vmscan.c
synchronous lumpy reclaim: wait for page writeback when directly reclaiming contiguous areas
2007-08-22 19:52:45 -07:00
vmstat.c
Remove fs.h from mm.h
2007-07-29 17:09:29 -07:00