Re: [Devel] [PATCH rh7] tcache: fix use-after-free in tcache_invalidate_node_pages()

2016-01-10 Thread Konstantin Khlebnikov
On Tue, Dec 8, 2015 at 7:39 PM, Vladimir Davydov wrote: > On Tue, Dec 08, 2015 at 06:52:50PM +0300, Andrey Ryabinin wrote: >> tcache_invalidate_node_pages() temporarly drops/takes back node->tree_lock. >> Once lock was dropped, another thread might remove and free the next slot. >> Don't drop the

Re: [Devel] [PATCH rh7] tcache: fix use-after-free in tcache_invalidate_node_pages()

2015-12-08 Thread Vladimir Davydov
On Tue, Dec 08, 2015 at 06:52:50PM +0300, Andrey Ryabinin wrote: > tcache_invalidate_node_pages() temporarly drops/takes back node->tree_lock. > Once lock was dropped, another thread might remove and free the next slot. > Don't drop the looks. > > https://jira.sw.ru/browse/PSBM-42104 > > Signed-o

[Devel] [PATCH rh7] tcache: fix use-after-free in tcache_invalidate_node_pages()

2015-12-08 Thread Andrey Ryabinin
tcache_invalidate_node_pages() temporarly drops/takes back node->tree_lock. Once lock was dropped, another thread might remove and free the next slot. Don't drop the looks. https://jira.sw.ru/browse/PSBM-42104 Signed-off-by: Andrey Ryabinin --- mm/tcache.c | 13 +++-- 1 file changed, 3