]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix dump of specific table with strict checking
authorDavid Ahern <dsahern@gmail.com>
Thu, 3 Jan 2019 02:26:13 +0000 (18:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jan 2019 04:15:43 +0000 (20:15 -0800)
commit9c092655bd41c577de7e5faa3360f7dcb4515222
tree04bc99f43ce1958357b9f739616486bf465c9156
parent0ee5566530f27ab2b49665ba87555d5e78ce376e
ipv6: Fix dump of specific table with strict checking

Dump of a specific table with strict checking enabled is looping. The
problem is that the end of the table dump is not marked in the cb. When
dumping a specific table, cb args 0 and 1 are not used (they are the hash
index and entry with an hash table index when dumping all tables). Re-use
args[0] to hold a 'done' flag for the specific table dump.

Fixes: aa904c774702c ("net/ipv6: Plumb support for filtering route dumps")
Reported-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c