]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
netfilter: nft_set_rbtree: incorrect assumption on lower interval lookups
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Mar 2017 17:15:11 +0000 (18:15 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Mar 2017 12:48:32 +0000 (13:48 +0100)
commitf9121355eb6f9babadb97bf5b34ab0cce7764406
treef9746cf87c81314ae6092e413b33474ed0b39bc5
parentda2f27e9e615d1c799c9582b15262458da61fddc
netfilter: nft_set_rbtree: incorrect assumption on lower interval lookups

In case of adjacent ranges, we may indeed see either the high part of
the range in first place or the low part of it. Remove this incorrect
assumption, let's make sure we annotate the low part of the interval in
case of we have adjacent interva intervals so we hit a matching in
lookups.

Reported-by: Simon Hanisch <hanisch@wh2.tu-dresden.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c