]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d72bda76b3f01c05322c6767f2e9278e2bf0dd6
tree7cd224afea213e80a0da27b49e5dc3cf935bd3e5
parent574554efd7d2a76e9b567c0326f900fc7bc1194e
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: e2660e37fe50 ("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