RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1579492 - Race condition leads to report that index in memory is corrupt
Summary: Race condition leads to report that index in memory is corrupt
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kmod-kvdo
Version: 7.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Jaskiewicz
QA Contact: Jakub Krysl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-17 18:43 UTC by Thomas Jaskiewicz
Modified: 2021-09-03 12:06 UTC (History)
3 users (show)

Fixed In Version: 6.1.1.94
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 09:39:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3094 0 None None None 2018-10-30 09:40:09 UTC

Description Thomas Jaskiewicz 2018-05-17 18:43:18 UTC
Description of problem:

This is a problem we have been seeing in our nightly testing.  We do not have a way of reproducing the failure, but once or twice a month we see this kind of report:

Apr  2 09:33:00 parkst-31 kernel: [25652.104178] uds: zub:indexW: assertion "Delta list number (173) is out of range (171)" ((listNumber < deltaIndex->numLists)) failed at /var/lib/dkms/zubenelgenubi/1/build/uds/deltaIndex.c:1062
...
Apr  2 09:33:00 parkst-31 kernel: [25652.104326] uds: zub:indexW: index_0: searchLockedIndex() failed: UDS Error: Index data in memory is corrupt (1036)

Our RHEL8 work has required us to examine our multithreading of our code.  Historically we have coded to work on x86 hardware, but for RHEL8 we need to pay attention to proper use of atomic values and memory barriers.  As part of this work, we have found data race conditions in the UDS code that can lead to the failure asserted above in kern.log.


Version-Release number of selected component (if applicable):

All released versions of kmod-kvdo have these problems.


How reproducible:

Very difficult.  We see failures once or twice a month in our nightly testing.  The actual races were found by inspecting the source code.


Steps to Reproduce:
1. ??
2. ??

Actual results:
Expected results:

Obviouely no report of corruption.  The best suggestion is to run sanity tests and any basic operational testing that QA has developed.


Additional info:

We want to merge the RHEL8 work related to these races back to RHEL7.6.  It is a large change, but we have been testing it nightly in our RHEL8 code stream.

Comment 3 Jakub Krysl 2018-07-09 13:41:20 UTC
Regression testing passed on:
RHEL-7.6-20180626.0
kernel-3.10.0-915.el7
kmod-vdo-6.1.1.99-1.el7
vdo-6.1.1.99-2.el7

As there is no known way to reproduce this, setting to verified with SanityOnly.

Comment 5 errata-xmlrpc 2018-10-30 09:39:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3094


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