Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1310863 > unrolled thread

[PATCH 4.2.y-ckt 012/305] crypto: qat - don't use userspace pointer

Started byKamal Mostafa <kamal@canonical.com>
First post2016-01-16 02:40 +0100
Last post2016-01-16 02:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.2.y-ckt 012/305] crypto: qat - don't use userspace pointer Kamal Mostafa <kamal@canonical.com> - 2016-01-16 02:40 +0100

#1310863 — [PATCH 4.2.y-ckt 012/305] crypto: qat - don't use userspace pointer

FromKamal Mostafa <kamal@canonical.com>
Date2016-01-16 02:40 +0100
Subject[PATCH 4.2.y-ckt 012/305] crypto: qat - don't use userspace pointer
Message-ID<qRo0q-5P2-25@gated-at.bofh.it>
4.2.8-ckt2 -stable review patch.  If anyone has any objections, please let me know.

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

From: Tadeusz Struk <tadeusz.struk@intel.com>

commit 176155dac13f528e0a58c14dc322623219365d91 upstream.

Bugfix - don't dereference userspace pointer.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Kamal Mostafa <kamal@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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web