]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_set_rbtree: handle element re-addition after deletion
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 20 May 2017 22:37:10 +0000 (00:37 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 23 May 2017 20:54:14 +0000 (22:54 +0200)
commit6dce4a781fa8b7d11569bfe9806025f44fa1d0a5
treed695906ddc133bee6c113f495eb1be9818ab02c3
parentd506d7c64a1d0b469d8a0908bb01c2764119e8b4
netfilter: nft_set_rbtree: handle element re-addition after deletion

The existing code selects no next branch to be inspected when
re-inserting an inactive element into the rb-tree, looping endlessly.
This patch restricts the check for active elements to the EEXIST case
only.

Fixes: 10652b0854dc ("netfilter: nft_rbtree: allow adjacent intervals with dynamic updates")
Reported-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Tested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c