Routing table name lookup failure

Thomas Graf tgraf at infradead.org
Mon Oct 10 06:04:59 EDT 2011


On Mon, Oct 03, 2011 at 12:26:37PM -0700, Andrew Kraslavsky wrote:
> > I think I have tracked the problem down to __trans_list_clear, which is called by rtnl_route_read_table_names to flush any existing table_names list entries before repopulating it based on the contents of the specified file.
> >
> > in __trans_list_clear, all entries are freed but the list head's previous and next pointers are not reset so the list continues to hold references to freed memory.
> >
> > I created and applied the patch listed below to address this and it seems to do the trick.  Please take a look at it and see if it will be of use.

Good catch. Fix commited, thanks Andrew!



More information about the libnl mailing list