]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:20:38 +0000 (09:20 +0100)
commit08856d5e0e455ca8f7c5b4be11b02e36920bba1e
treee98bdda3f9420322d96a9dde3de837df370d9ec1
parentcdd8fac7ad111e07d76872fffce0bc1cee7838c7
ipv6: Fix dump of specific table with strict checking

[ Upstream commit 73155879b3c1ac3ace35208a54a3a160ec520bef ]

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: 13e38901d46ca ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_fib.c