Apply the PG_sensitive flag to mac80211 WEP key handling
Subsystems (2)
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
@@ -155,7 +155,7 @@ int ieee80211_wep_encrypt(struct ieee802return -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>
Quoted 3 lines · Larry H.
This patch deploys the use of the
PG_sensitivepage 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
Signed-off-by Larry H. <[email protected]>
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>