diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-04-07 07:35:50 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-14 13:02:22 -0700 |
commit | 3fe6bb7272a1f409098795f65c1d0ab562cdcd9c (patch) | |
tree | 1e56122c78bd7a5a9c04028c59915753fc70e747 /net/sunrpc | |
parent | 3f9346cf211cdb10f053d7cb9752f7fd6723e16b (diff) |
mm: avoid wrapping vm_pgoff in mremap()
commit 982134ba62618c2d69fbbbd166d0a11ee3b7e3d8 upstream.
The normal mmap paths all avoid creating a mapping where the pgoff
inside the mapping could wrap around due to overflow. However, an
expanding mremap() can take such a non-wrapping mapping and make it
bigger and cause a wrapping condition.
Noticed by Robert Swiecki when running a system call fuzzer, where it
caused a BUG_ON() due to terminally confusing the vma_prio_tree code. A
vma dumping patch by Hugh then pinpointed the crazy wrapped case.
Reported-and-tested-by: Robert Swiecki <robert@swiecki.net>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions