summaryrefslogtreecommitdiff
path: root/net/wireless/lib80211_crypt_tkip.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-07-17 08:17:55 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2018-07-20 16:31:43 +0300
commit9f8aac0be21ed5f99bd5ba0ff315d710737d1794 (patch)
treed0aa94d3846720a7bfe8bbc396529a21a120da90 /net/wireless/lib80211_crypt_tkip.c
parenta12486ebe104190a6c10557134014290afa98370 (diff)
downloadlinux-9f8aac0be21ed5f99bd5ba0ff315d710737d1794.tar.xz
netfilter: nf_tables: fix memory leaks on chain rename
The new name is stored in the transaction metadata, on commit, the pointers to the old and new names are swapped. Therefore in abort and commit case we have to free the pointer in the chain_trans container. In commit case, the pointer can be used by another cpu that is currently dumping the renamed chain, thus kfree needs to happen after waiting for rcu readers to complete. Fixes: b7263e071a ("netfilter: nf_tables: Allow chain name of up to 255 chars") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/wireless/lib80211_crypt_tkip.c')
0 files changed, 0 insertions, 0 deletions