netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net PATCH 0/2] ipv4: Fix memory leaks and reference issues in fib
@ 2016-11-15 10:46 Alexander Duyck
  2016-11-15 10:46 ` [net PATCH 1/2] ipv4: Restore fib_trie_flush_external function and fix call ordering Alexander Duyck
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Alexander Duyck @ 2016-11-15 10:46 UTC (permalink / raw)
  To: netdev; +Cc: davem

This series fixes one major issue and one minor issue in the fib tables.

The major issue is that we had lost the functionality that was flushing the
local table entries from main after we had unmerged the two tries.  In
order to regain the functionality I have performed a partial revert and
then moved the functionality for flushing the external entries from main
into fib_unmerge.

The minor issue was a memory leak that could occur in the event that we
weren't able to add an alias to the local trie resulting in the fib alias
being leaked.

---

Alexander Duyck (2):
      ipv4: Restore fib_trie_flush_external function and fix call ordering
      ipv4: Fix memory leak in exception case for splitting tries


 include/net/ip_fib.h    |    1 +
 net/ipv4/fib_frontend.c |   20 ++++++++++----
 net/ipv4/fib_trie.c     |   69 ++++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 84 insertions(+), 6 deletions(-)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-11-16 18:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 10:46 [net PATCH 0/2] ipv4: Fix memory leaks and reference issues in fib Alexander Duyck
2016-11-15 10:46 ` [net PATCH 1/2] ipv4: Restore fib_trie_flush_external function and fix call ordering Alexander Duyck
2016-11-15 18:30   ` Eric Dumazet
2016-11-15 19:51   ` Jiri Pirko
2016-11-15 20:29     ` Duyck, Alexander H
2016-11-15 20:31       ` Jiri Pirko
2016-11-15 20:49         ` Duyck, Alexander H
2016-11-15 20:52           ` Jiri Pirko
2016-11-15 21:01             ` Duyck, Alexander H
2016-11-15 21:07               ` Jiri Pirko
2016-11-15 21:11                 ` Duyck, Alexander H
2016-11-15 10:46 ` [net PATCH 2/2] ipv4: Fix memory leak in exception case for splitting tries Alexander Duyck
2016-11-15 18:24   ` Eric Dumazet
2016-11-16 18:25 ` [net PATCH 0/2] ipv4: Fix memory leaks and reference issues in fib David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).