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 1025823 - race condition between kinit and rpcgssd
Summary: race condition between kinit and rpcgssd
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: krb5
Version: 6.4
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Nalin Dahyabhai
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 994246 1061410
TreeView+ depends on / blocked
 
Reported: 2013-11-01 16:49 UTC by Rui Gouveia
Modified: 2018-12-04 16:12 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-20 18:18:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rui Gouveia 2013-11-01 16:49:46 UTC
Description of problem:
In a system with Kerberized NFSv4, when the ticket expires, Kerberos tries to renew the ticket, but at the same time so does rpcgssd, it appears. Customer systems are experiencing this race condition and then mount fails.


Version-Release number of selected component (if applicable):
krb5-auth-dialog-0.13-3.el6.x86_64
krb5-devel-1.10.3-10.el6.x86_64
krb5-libs-1.10.3-10.el6.x86_64
krb5-workstation-1.10.3-10.el6.x86_64
nfs4-acl-tools-0.3.3-6.el6.x86_64
nfs-utils-1.2.3-26.el6.x86_64
nfs-utils-lib-1.1.5-6.el6.x86_64


How reproducible:
Uncertain.


Steps to Reproduce:
Given the very tight timings involved its difficult to trigger at just the right times.
Active Directory based domain (no special tunings):

1. start rpcgssd with -vvv debug
2. start rpcdebug -m rpc -s auth
3. allow rpcgssd to renew machine cred
4. trigger nfs mount to krb5 auth share at same moment.
5. review /var/log/messages for rpcdebug/rcpgssd log

alternatively you could reproduce by doing this.
1. start rpcgssd with -vvv debug
2. start rpcdebug -m rpc -s auth
3. do a kinit of the machine credentials to /tmp/krb5cc_machine_DOMAIN (same file as rpcgssd uses)
4. at same moment trigger a mount of a krb5 authenticated share.
5. review /var/log/messages for rpcdebug/rcpgssd log

For step 5 in either case , if you get the timings just right, you should see a debug trace similar to what i have shown on this case, ie:
 
1. machine credential refresh starts
2. mount starts
3. rpc errors with a GSS_S_CONTEXT_EXPIRED 0x000c0000 , mount fails with error -5
4. machine credential refresh finishes
5. from this point on mount will work.

NOTE: step 1-4 all happen in fractions of a second.



Actual results:
Race condition experienced, and mount fails.


Expected results:
Not the above.


Additional info:

Comment 2 RHEL Program Management 2013-11-01 17:20:15 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 7 Dmitri Pal 2014-02-20 18:18:11 UTC
This issue is addressed in RHEL7. This is a major change so it can't be ported back.


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