Commits
Alexey Kuznetsov authored and Pavel Emelianov committed 0d92a367a85
[PATCH] stack overflow in netlink (mainstream) Reply to NETLINK_FIB_LOOKUP messages were misrouted back to kernel, which resulted in infinite recursion and stack overflow. The bug is present in all kernel versions since the feature appeared. (linux 2.6.13, Jun 20th, 2005, commit 246955fe4c38bd706ae30e37c64892c94213775d, [NETLINK]: fib_lookup() via netlink) The patch also makes some minimal cleanup: 1. Return something consistent (-ENOENT) when fib table is missing 2. Do not crash when queue is empty (does not happen, but yet) 3. Put result of lookup Franlky, I would delete this thing instead of fixing. It looks ugly and was used only for debugging LC-trie. Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Acked-by: Dave Miller <davem@davemloft.net>