Skip to contentSkip to conversation

Apply the PG_sensitive flag to mac80211 WEP key handling

PATCH In review Larry H. 2 participants 2 messages May 20, 2009 – May 21, 2009

Subsystems (2)
lore
Share & tools
lore

Larry H.

author
#0 lore raw

PATCH 2/5 Apply the PG_sensitive flag to mac80211 WEP key handling

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.

---
 net/mac80211/wep.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/mac80211/wep.c +2 -2
Index: 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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw
Quoted 3 lines · Larry H.

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.

Quoted 1 line

Please add your last name.

Signature · 7 lines
Kalle Valo

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