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


Groups > linux.kernel > #1333766 > unrolled thread

[PATCH 4.3 005/200] crypto: qat - dont use userspace pointer

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-02-15 00:20 +0100
Last post2016-02-15 00:20 +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.3 005/200] crypto: qat - dont use userspace pointer Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-02-15 00:20 +0100

#1333766 — [PATCH 4.3 005/200] crypto: qat - dont use userspace pointer

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-02-15 00:20 +0100
Subject[PATCH 4.3 005/200] crypto: qat - dont use userspace pointer
Message-ID<r2e7p-154-47@gated-at.bofh.it>
4.3-stable review patch.  If anyone has any objections, please let me know.

------------------

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/crypto/qat/qat_common/adf_ctl_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 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(struc
 			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,

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web