From 4357b6617c507092b7beb9382371355ca04e7db3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 23 May 2016 17:22:24 -0400 Subject: [PATCH] zebra: Fix zebra to exit on recvmsg buffer overrun When zebra receives a recvmsg buffer from the kernel silently exit so that watchquagga will notice and then restart zebra. Ticket: CM-11130 Signed-off-by: Donald Sharp Reviewed-by: Vivek Venkatraman --- zebra/rt_netlink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 251b55c0c6..b0e680b7a9 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -327,6 +327,12 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *, break; zlog (NULL, LOG_ERR, "%s recvmsg overrun: %s", nl->name, safe_strerror(errno)); + /* + * In this case we are screwed. + * There is no good way to + * recover zebra at this point. + */ + exit (-1); continue; } -- 2.39.5