diff options
| author | Oleg Nesterov <[email protected]> | 2010-04-23 17:18:01 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-04-24 18:31:25 +0000 |
| commit | 31f2b0ebc01fd332cb0997f7ce9f9cde29af9e20 (patch) | |
| tree | fc9d4cb410052afcc56bb8442a2dbcb8950464a8 /lib/debugobjects.c | |
| parent | keys: fix an RCU warning (diff) | |
| download | kernel-31f2b0ebc01fd332cb0997f7ce9f9cde29af9e20.tar.gz kernel-31f2b0ebc01fd332cb0997f7ce9f9cde29af9e20.zip | |
rmap: anon_vma_prepare() can leak anon_vma_chain
If find_mergeable_anon_vma() succeeds but another thread installs
->anon_vma before we take ptl, then allocated == NULL but avc should be
freed. Change the code to check avc != NULL to detect this case.
Also, a couple of whitespace changes to make the critical section more
visible.
Signed-off-by: Oleg Nesterov <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Pete Zaitcev <[email protected]>
Cc: Borislav Petkov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
