]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] NETLINK: Infinite recursion in netlink.
authorAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Wed, 25 Apr 2007 20:59:03 +0000 (20:59 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Apr 2007 21:12:21 +0000 (14:12 -0700)
commit9bc1779885f4ce1a4257c5640c70b75d2ae124ad
tree18bf20f98c39a00706761ecf8704eb009b205b98
parent89c8f056a30781d9713f4e7f7a2d6cc849758790
[PATCH] NETLINK: Infinite recursion in netlink.

[NETLINK]: Infinite recursion in netlink.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/fib_frontend.c