diff options
| author | 2020-04-06 20:03:39 -0700 | |
|---|---|---|
| committer | 2020-04-07 10:43:37 -0700 | |
| commit | e39a4b332df69f6850efda5ce6d932ef14a39042 (patch) | |
| tree | bb60f7247fc676a15dacb899ca15a02881535877 /include/linux | |
| parent | Revert "mm/rmap.c: reuse mergeable anon_vma as parent when fork" (diff) | |
mm: set vm_next and vm_prev to NULL in vm_area_dup()
Set ->vm_next and ->vm_prev to NULL to prevent potential misuse from the
new duplicated vma.
Currently, only in fork path there are misuse for handling anon_vma. No
other bugs been revealed with this patch applied.
Signed-off-by: Li Xinhai <lixinhai.lxh@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@redhat.com>
Link: http://lkml.kernel.org/r/1581150928-3214-4-git-send-email-lixinhai.lxh@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
