diff options
author | Nikita Ioffe <ioffe@google.com> | 2019-12-04 15:51:18 +0000 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2019-12-04 15:51:18 +0000 |
commit | 38421d7e8aa4bb58207c9a00f7c4ff34b4255178 (patch) | |
tree | 9643ef3a569a1b176a5aaa2fc742f78555f9e534 /apexer/apexer.py | |
parent | 22e163240d54e73daa7127f95643ff19107eda7e (diff) |
apexd: fix race condition in dm-device manipulation
Note, this is a rather rare race condition.
When creating/deleting dm-devices apexd is wrongly waiting on the
corresponding path (i.e. /dev/block/dm-XX) to be created/deleted, which
can cause a race condition in case another process is creating/deleting
a dm-device at the same time, because the paths can be re-used.
Instead apexd now uses overloads of
DeviceMapper::CreateDevice/DeleteDevice that accept a timeout and wait
for the dm-device **unique path** to be created/deleted.
Bug: 122059364
Test: apest apexservice_test
Change-Id: Ie66db6cb8d615139a0f7ff8a844b7b022c7f7ecc
Diffstat (limited to 'apexer/apexer.py')
0 files changed, 0 insertions, 0 deletions