aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <[email protected]>2014-07-23 14:00:08 -0700
committerLinus Torvalds <[email protected]>2014-07-23 15:10:54 -0700
commitc118678bc79e8241f9d3434d9324c6400d72f48a (patch)
tree211d140913df6b88299ae8b24df2f5209a8c7e66 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parentb1923b55af43a6febb976084bf30d1a4797c92c9 (diff)
mm: do not call do_fault_around for non-linear fault
Ingo Korb reported that "repeated mapping of the same file on tmpfs using remap_file_pages sometimes triggers a BUG at mm/filemap.c:202 when the process exits". He bisected the bug to d7c1755179b8 ("mm: implement ->map_pages for shmem/tmpfs"), although the bug was actually added by commit 8c6e50b0290c ("mm: introduce vm_ops->map_pages()"). The problem is caused by calling do_fault_around for a _non-linear_ fault. In this case pgoff is shifted and might become negative during calculation. Faulting around non-linear page-fault makes no sense and breaks the logic in do_fault_around because pgoff is shifted. Signed-off-by: Konstantin Khlebnikov <[email protected]> Reported-by: Ingo Korb <[email protected]> Tested-by: Ingo Korb <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Sasha Levin <[email protected]> Cc: Dave Jones <[email protected]> Cc: Ning Qu <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Cc: <[email protected]> [3.15.x] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions