Bug 1527825 - Incorrect page lock order when accessing OPD tree
Summary: Incorrect page lock order when accessing OPD tree
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libdb
Version: 27
Hardware: All
OS: Linux
urgent
unspecified
Target Milestone: ---
Assignee: Petr Kubat
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-20 08:32 UTC by Petr Kubat
Modified: 2017-12-28 02:52 UTC (History)
27 users (show)

Fixed In Version: libdb-5.3.28-27.fc27
Clone Of: 1349779
Environment:
Last Closed: 2017-12-28 02:52:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
libdb deadlock reproducer (20.00 KB, application/x-tar)
2017-12-20 08:41 UTC, Petr Kubat
no flags Details

Description Petr Kubat 2017-12-20 08:32:16 UTC
+++ This bug was initially created as a clone of Bug #1349779 +++

libdb does not lock its internal buffers in correct order when accessing pages located in a off-page duplicate (OPD) tree while doing operations on a cursor.

As a result of this a race condition is possible where a writer process can access the primary tree first and then the OPD tree, locking the pages accessed, while a reader process can do the same in reverse order. This causes a deadlock in libdb since neither of the processes release their respective locks.

This is a Fedora clone of a bug originally found in RHEL, for detailed information about the issue please check the original bug.

Comment 1 Petr Kubat 2017-12-20 08:41:49 UTC
Created attachment 1370347 [details]
libdb deadlock reproducer

Comment 3 Fedora Update System 2017-12-20 11:38:13 UTC
libdb-5.3.28-27.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-4eff8b26bc

Comment 4 Fedora Update System 2017-12-21 20:25:41 UTC
libdb-5.3.28-27.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-4eff8b26bc

Comment 5 Fedora Update System 2017-12-28 02:52:06 UTC
libdb-5.3.28-27.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.