aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRongwei Wang <[email protected]>2021-11-05 13:43:44 -0700
committerLinus Torvalds <[email protected]>2021-11-06 13:30:41 -0700
commit8468e937df1f31411d1e127fa38db064af051fe5 (patch)
treebf92936b01daff89a65228c810bf68a984d3f9eb /tools/perf/scripts/python
parent55fc0d91746759c71bc165bba62a2db64ac98e35 (diff)
mm, thp: fix incorrect unmap behavior for private pages
When truncating pagecache on file THP, the private pages of a process should not be unmapped mapping. This incorrect behavior on a dynamic shared libraries which will cause related processes to happen core dump. A simple test for a DSO (Prerequisite is the DSO mapped in file THP): int main(int argc, char *argv[]) { int fd; fd = open(argv[1], O_WRONLY); if (fd < 0) { perror("open"); } close(fd); return 0; } The test only to open a target DSO, and do nothing. But this operation will lead one or more process to happen core dump. This patch mainly to fix this bug. Link: https://lkml.kernel.org/r/[email protected] Fixes: eb6ecbed0aa2 ("mm, thp: relax the VM_DENYWRITE constraint on file-backed THPs") Signed-off-by: Rongwei Wang <[email protected]> Tested-by: Xu Yu <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Song Liu <[email protected]> Cc: William Kucharski <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Yang Shi <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Collin Fijalkovich <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions