[4.2.y-ckt stable] Patch "crypto: qat - don't use userspace pointer" has been added to staging queue

Kamal Mostafa kamal at canonical.com
Thu Jan 14 22:27:04 UTC 2016


This is a note to let you know that I have just added a patch titled

    crypto: qat - don't use userspace pointer

to the linux-4.2.y-queue branch of the 4.2.y-ckt extended stable tree 
which can be found at:

    http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-4.2.y-queue

This patch is scheduled to be released in version 4.2.8-ckt2.

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 4.2.y-ckt tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Kamal

---8<------------------------------------------------------------

>From cb796350cbcedea47507d27c15e1c6415aac40e7 Mon Sep 17 00:00:00 2001
From: Tadeusz Struk <tadeusz.struk at intel.com>
Date: Wed, 21 Oct 2015 14:57:09 -0700
Subject: crypto: qat - don't use userspace pointer

commit 176155dac13f528e0a58c14dc322623219365d91 upstream.

Bugfix - don't dereference userspace pointer.

Signed-off-by: Tadeusz Struk <tadeusz.struk at intel.com>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 drivers/crypto/qat/qat_common/adf_ctl_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/qat/qat_common/adf_ctl_drv.c b/drivers/crypto/qat/qat_common/adf_ctl_drv.c
index e056b9e..0f1d10c 100644
--- a/drivers/crypto/qat/qat_common/adf_ctl_drv.c
+++ b/drivers/crypto/qat/qat_common/adf_ctl_drv.c
@@ -198,7 +198,7 @@ static int adf_copy_key_value_data(struct adf_accel_dev *accel_dev,
 			goto out_err;
 		}

-		params_head = section_head->params;
+		params_head = section.params;

 		while (params_head) {
 			if (copy_from_user(&key_val, (void __user *)params_head,
--
1.9.1





More information about the kernel-team mailing list