Skip to content
Snippets Groups Projects
Commit db0bddbd authored by Pekka Enberg's avatar Pekka Enberg
Browse files

mmu: Fix msync() vma range walk


The tst-mmap.so test case noticed the following breakage in msync():

  Running mmap tests
  Assertion failed: msync(buf, 4096*9, MS_ASYNC) == 0
  (../../tests/tst-mmap.cc: main: 207)
  Aborted

The problem is that msync() uses the contains function which checks if
[start, end) is in a vma range but we really are interested in whether
the vma intersects with [start, end).

Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 5f43b6a5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment