From b8e3085e4e9608b301121c7065c84a3e51b94c74 Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Mon, 25 Jan 2016 11:19:43 +0200 Subject: cryptodev-qoriq: upgrade to 1.8 plus fsl patches upstream commit: 87b56e04b24c6d4be145483477eff7d3153290e9 Also: - move all fsl patches on top of cryptodev-1.8 - add CIOCHASH ioctl - fix incorrect tests initializations - modify yocto patches to match updated Makefiles Signed-off-by: Cristian Stoica --- ...4-fix-COMPAT_CIOCKEY-ioctl-command-number.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes-kernel/cryptodev/sdk_patches/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch (limited to 'recipes-kernel/cryptodev/sdk_patches/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch') diff --git a/recipes-kernel/cryptodev/sdk_patches/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch b/recipes-kernel/cryptodev/sdk_patches/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch new file mode 100644 index 00000000..72770863 --- /dev/null +++ b/recipes-kernel/cryptodev/sdk_patches/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch @@ -0,0 +1,29 @@ +From 53e4d0fe4a334dae3df32b2053e4ebdfda2e9148 Mon Sep 17 00:00:00 2001 +From: Tudor Ambarus +Date: Tue, 27 Oct 2015 15:51:02 +0200 +Subject: [PATCH 24/38] fix COMPAT_CIOCKEY ioctl command number + +CIOCKEY and COMPAT_CIOCKEY had different command numbers, +so that 32-bit applications got EINVAL error on 64-bit kernel. + +Signed-off-by: Tudor Ambarus +--- + cryptodev_int.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cryptodev_int.h b/cryptodev_int.h +index c83c885..cb005d7 100644 +--- a/cryptodev_int.h ++++ b/cryptodev_int.h +@@ -132,7 +132,7 @@ struct compat_crypt_auth_op { + /* compat ioctls, defined for the above structs */ + #define COMPAT_CIOCGSESSION _IOWR('c', 102, struct compat_session_op) + #define COMPAT_CIOCCRYPT _IOWR('c', 104, struct compat_crypt_op) +-#define COMPAT_CIOCKEY _IOW('c', 105, struct compat_crypt_kop) ++#define COMPAT_CIOCKEY _IOWR('c', 105, struct compat_crypt_kop) + #define COMPAT_CIOCASYNCCRYPT _IOW('c', 107, struct compat_crypt_op) + #define COMPAT_CIOCASYNCFETCH _IOR('c', 108, struct compat_crypt_op) + #define COMPAT_CIOCAUTHCRYPT _IOWR('c', 109, struct compat_crypt_auth_op) +-- +2.7.0 + -- cgit v1.2.3-54-g00ecf