linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch 2/5] Apply the PG_sensitive flag to mac80211 WEP key handling
@ 2009-05-20 18:47 Larry H.
  2009-05-21  4:52 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Larry H. @ 2009-05-20 18:47 UTC (permalink / raw)
  To: linux-kernel
  Cc: Linus Torvalds, linux-mm, Ingo Molnar, pageexec, linux-wireless

This patch deploys the use of the PG_sensitive page allocator flag
within the mac80211 driver, more specifically the handling of WEP
RC4 keys during encryption and decryption.

Signed-off-by: Larry H. <research@subreption.com>

---
 net/mac80211/wep.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6/net/mac80211/wep.c
===================================================================
--- linux-2.6.orig/net/mac80211/wep.c
+++ linux-2.6/net/mac80211/wep.c
@@ -155,7 +155,7 @@ int ieee80211_wep_encrypt(struct ieee802
 		return -1;
 
 	klen = 3 + key->conf.keylen;
-	rc4key = kmalloc(klen, GFP_ATOMIC);
+	rc4key = kmalloc(klen, GFP_ATOMIC | GFP_SENSITIVE);
 	if (!rc4key)
 		return -1;
 
@@ -243,7 +243,7 @@ int ieee80211_wep_decrypt(struct ieee802
 
 	klen = 3 + key->conf.keylen;
 
-	rc4key = kmalloc(klen, GFP_ATOMIC);
+	rc4key = kmalloc(klen, GFP_ATOMIC | GFP_SENSITIVE);
 	if (!rc4key)
 		return -1;
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch 2/5] Apply the PG_sensitive flag to mac80211 WEP key handling
  2009-05-20 18:47 [patch 2/5] Apply the PG_sensitive flag to mac80211 WEP key handling Larry H.
@ 2009-05-21  4:52 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2009-05-21  4:52 UTC (permalink / raw)
  To: Larry H.
  Cc: linux-kernel, Linus Torvalds, linux-mm, Ingo Molnar, pageexec,
	linux-wireless

"Larry H." <research@subreption.com> writes:

> This patch deploys the use of the PG_sensitive page allocator flag
> within the mac80211 driver, more specifically the handling of WEP
> RC4 keys during encryption and decryption.

Why? Always explain the reason for the change in commit log. For
example, I have no idea why you want to change this.

> Signed-off-by: Larry H. <research@subreption.com>

Please add your last name.

-- 
Kalle Valo

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-21  4:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-20 18:47 [patch 2/5] Apply the PG_sensitive flag to mac80211 WEP key handling Larry H.
2009-05-21  4:52 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox