- ansi_cprng-zero-out-key-data-on-exit.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     ansi_cprng: zero out key data on exit
has been removed from the -mm tree.  Its filename was
     ansi_cprng-zero-out-key-data-on-exit.patch

This patch was dropped because it is obsolete

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: ansi_cprng: zero out key data on exit
From: Neil Horman <nhorman@xxxxxxxxxxxxx>

Its been mentioned to me a few times that the ansi_cprng doesn't zero out
its data when a context is freed.  Given that we store key, and other seed
data in that structure, I think its probably a good idea that we zero it
out.  This patch does that.

Signed-off-by: Neil Horman <nhorman@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 crypto/ansi_cprng.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN crypto/ansi_cprng.c~ansi_cprng-zero-out-key-data-on-exit crypto/ansi_cprng.c
--- a/crypto/ansi_cprng.c~ansi_cprng-zero-out-key-data-on-exit
+++ a/crypto/ansi_cprng.c
@@ -266,6 +266,7 @@ done:
 static void free_prng_context(struct prng_context *ctx)
 {
 	crypto_free_cipher(ctx->tfm);
+	memset(ctx, 0, sizeof(struct prng_context));
 }
 
 static int reset_prng_context(struct prng_context *ctx,
_

Patches currently in -mm which might be from nhorman@xxxxxxxxxxxxx are

linux-next.patch
ansi_cprng-zero-out-key-data-on-exit.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux