1
1
Nathan Hjelm a64a7c8a0a btl/vader: fix issues with xpmem registration invalidation
This commit fixes an issue discovered in the XPMEM registration cache. It
was possible for a registration to be invalidated by multiple threads
leading to a double-free situation or re-use of an invalidated registration.

This commit fixes the issue by setting the INVALID flag on a registation
when it will be deleted. The flag is set while iterating over the tree
to take advantage of the fact that a registration can not be removed
from the VMA tree by a thread while another thread is traversing the VMA
tree.

References #6524
References #7030
Closes #6534

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
(cherry picked from commit f86f805be1145ace46b570c5c518555b38e58cee)
2020-01-19 13:42:00 -08:00
..
2018-10-17 16:16:36 -06:00
2017-04-15 09:30:18 -07:00
2018-03-20 16:07:53 +00:00
2015-06-23 20:59:57 -07:00
2019-08-26 23:48:34 -07:00
2017-07-12 17:31:25 -03:00
2015-06-23 20:59:57 -07:00