Return-path: Received: from oblivion.subreption.com ([66.240.236.22]:48686 "EHLO mail.subreption.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754750AbZETSyw (ORCPT ); Wed, 20 May 2009 14:54:52 -0400 Date: Wed, 20 May 2009 11:47:13 -0700 From: "Larry H." To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , linux-mm@kvack.org, Ingo Molnar , pageexec@freemail.hu, linux-wireless@vger.kernel.org Subject: [patch 2/5] Apply the PG_sensitive flag to mac80211 WEP key handling Message-ID: <20090520184713.GB10756@oblivion.subreption.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: 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. --- 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;