diff options
author | Davidlohr Bueso <[email protected]> | 2014-10-09 15:29:45 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-10-09 22:26:02 -0400 |
commit | cd2567b6850b1648236a4aab0513a04ebaea6aa8 (patch) | |
tree | 7321c0818a0d6af6ef2aa07dcc6e6f65757370cf /net/lapb/lapb_subr.c | |
parent | 7cc36bbddde5cd0c98f0c06e3304ab833d662565 (diff) |
m68k: call find_vma with the mmap_sem held in sys_cacheflush()
Performing vma lookups without taking the mm->mmap_sem is asking for
trouble. While doing the search, the vma in question can be modified or
even removed before returning to the caller. Take the lock (shared) in
order to avoid races while iterating through the vmacache and/or rbtree.
In addition, this guarantees that the address space will remain intact
during the CPU flushing.
Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions