+++ This bug was initially created as a clone of Bug #1075652 +++ 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.2-1 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.