summaryrefslogtreecommitdiff
path: root/keypair.h
blob: f65a88c0001a390e322c41951a8012788142d349 (plain)
1
2
3
4
5
6
7
#ifndef KEYPAIR_H
#define KEYPAIR_H

extern void generate_keypair(void);
extern void verify_keypair(void);

#endif /* KEYPAIR_H */
ected'>includemode:
authorJohannes Berg <johannes.berg@intel.com>2017-01-02 11:19:29 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-01-02 11:28:25 +0100
commit35f432a03e41d3bf08c51ede917f94e2288fbe8c (patch)
tree67eed715e449fb7460f834c32edf723f2b4efa05 /tools
parenteb7903bb83cc1db31a9124d4cc8a1bddebe26e33 (diff)
mac80211: initialize fast-xmit 'info' later
In ieee80211_xmit_fast(), 'info' is initialized to point to the skb that's passed in, but that skb may later be replaced by a clone (if it was shared), leading to an invalid pointer. This can lead to use-after-free and also later crashes since the real SKB's info->hw_queue doesn't get initialized properly. Fix this by assigning info only later, when it's needed, after the skb replacement (may have) happened. Cc: stable@vger.kernel.org Reported-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools')