From 99d8325e9a43d70531b83c68864736c009a60c04 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 50a269dbc6..e52fcd4342 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; }