From: Johannes Berg <johannes.berg@xxxxxxxxx> Clear the rekey data on the stack to avoid leaving it there in case another place might leak some stack bytes. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx> --- net/wireless/nl80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index f4194af..51eb526 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -9062,6 +9062,7 @@ static int nl80211_set_rekey_data(struct sk_buff *skb, struct genl_info *info) err = rdev_set_rekey_data(rdev, dev, &rekey_data); out: wdev_unlock(wdev); + memset(&rekey_data, 0, sizeof(rekey_data)); return err; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html