[NETLINK]: Infinite recursion in netlink.
authorAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Wed, 25 Apr 2007 20:07:28 +0000 (13:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2007 20:07:28 +0000 (13:07 -0700)
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.

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

Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found