]> git.proxmox.com Git - mirror_iproute2.git/commit
libnetlink: __rtnl_talk_iov should only loop max iovlen times
authorDavid Ahern <dsahern@gmail.com>
Thu, 1 Mar 2018 22:43:08 +0000 (14:43 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Mar 2018 21:30:34 +0000 (13:30 -0800)
commit3dec72672f7b293ad773568c2c4a0d11fa8c4529
tree90ad748de9a97f9b6c2640722de3753fe6a4083c
parent06867c371958773e39b4ccac07cfe3e2fff2ea55
libnetlink: __rtnl_talk_iov should only loop max iovlen times

William reported ip hanging and bisected to a recent commit for batching
allowing more than 1 command to be sent per message. The loop over
recvmsg should never cycle more than iovlen times -- 1 response for
each command in the message.

Fixes: 72a2ff3916e5 ("lib/libnetlink: Add a new function rtnl_talk_iov")
Signed-off-by: David Ahern <dsahern@gmail.com>
lib/libnetlink.c