Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
The keyutils testsuite has some new tests that show up some bugs in older versions of the keyutils package.
Firstly, the keyctl/show/valid test now checks that the output follows down through a set of nested keyrings more than two deep:
http://git.kernel.org/cgit/linux/kernel/git/dhowells/keyutils.git/commit/?id=67e435c3f1810bc0902698ea4ac4a85b4aef7e4f
Secondly, the keyctl/padd/useradd test now checks the size of the payload we can submit through "keyctl add ...".
The first is fixed here:
http://git.kernel.org/cgit/linux/kernel/git/dhowells/keyutils.git/commit/?id=96bae1cc9b062f669ed4ac322807e77e12d1b8fc
and the second here:
http://git.kernel.org/cgit/linux/kernel/git/dhowells/keyutils.git/commit/?id=df5cab5362695b92896a41a86556e9dad156419d
Version-Release number of selected component (if applicable):
keyutils-1.4-3
How reproducible:
Steps to Reproduce:
1. The keyctl/show/valid failure:
Do the following:
a=@s
a=`keyctl newring foo $a`
a=`keyctl newring foo $a`
a=`keyctl newring foo $a`
a=`keyctl newring foo $a`
a=`keyctl newring foo $a`
keyctl show
This should display five keyrings called 'foo' nested inside each other, with the first nested inside a keyring called '_ses'. If it shows fewer levels, it doesn't work.
2. The keyctl/padd/useradd failure:
Do the following:
dd if=/dev/zero bs=$((1024*1024-1)) count=1 | \
strace -eadd_key keyctl padd user a @s
And make sure that the fourth argument to add_key() is 0xfffff. If the command fails without calling add_key() or it truncates the buffer, then it didn't work.
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.
http://rhn.redhat.com/errata/RHBA-2014-1610.html