ila: Fix rhashtable walker list corruption
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 26 Mar 2019 05:50:14 +0000 (13:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Mar 2019 05:46:16 +0000 (22:46 -0700)
commitb5f9bd15b88563b55a99ed588416881367a0ce5f
tree7cd224afea213e80a0da27b49e5dc3cf935bd3e5
parent79706ced7a982ebc60c2663a07ff4003847b8be6
ila: Fix rhashtable walker list corruption

ila_xlat_nl_cmd_flush uses rhashtable walkers allocated from the
stack but it never frees them.  This corrupts the walker list of
the hash table.

This patch fixes it.

Reported-by: syzbot+dae72a112334aa65a159@syzkaller.appspotmail.com
Fixes: b6e71bdebb12 ("ila: Flush netlink command to clear xlat...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ila/ila_xlat.c