This is a note to let you know that I've just added the patch titled
S390: KEYS: Enable the compat keyctl wrapper on s390x
to the 3.0-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
s390-keys-enable-the-compat-keyctl-wrapper-on-s390x.patch
and it can be found in the queue-3.0 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 1d057720609ed052a6371fe1d53300e5e6328e94 Mon Sep 17 00:00:00 2001
From: David Howells <[email protected]>
Date: Fri, 24 Feb 2012 18:01:27 +0100
Subject: S390: KEYS: Enable the compat keyctl wrapper on s390x
From: David Howells <[email protected]>
commit 1d057720609ed052a6371fe1d53300e5e6328e94 upstream.
Enable the compat keyctl wrapper on s390x so that 32-bit s390 userspace can
call the keyctl() syscall.
There's an s390x assembly wrapper that truncates all the register values to
32-bits and this then calls compat_sys_keyctl() - but the latter only exists if
CONFIG_KEYS_COMPAT is enabled, and the s390 Kconfig doesn't enable it.
Without this patch, 32-bit calls to the keyctl() syscall are given an ENOSYS
error:
[root@devel4 ~]# keyctl show
Session Keyring
-3: key inaccessible (Function not implemented)
Signed-off-by: David Howells <[email protected]>
Acked-by: [email protected]
Cc: Carsten Otte <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Cc: [email protected]
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
arch/s390/Kconfig | 3 +++
1 file changed, 3 insertions(+)
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -228,6 +228,9 @@ config COMPAT
config SYSVIPC_COMPAT
def_bool y if COMPAT && SYSVIPC
+config KEYS_COMPAT
+ def_bool y if COMPAT && KEYS
+
config AUDIT_ARCH
def_bool y
Patches currently in stable-queue which might be from [email protected] are
queue-3.0/s390-keys-enable-the-compat-keyctl-wrapper-on-s390x.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html