{"push_id":1212528580,"size":1,"distinct_size":1,"ref":"refs/heads/6.0.1","head":"a23cb436371ef4fa53d3ae6f901b069fa466e562","before":"decceb9685e04d8b040c4dd672b22a33cc31daec","commits":[{"sha":"a23cb436371ef4fa53d3ae6f901b069fa466e562","author":{"name":"David Gibson","email":"d8099b0f90e53c29d29eb12a7a3caa5af4f12681@gibson.dropbear.id.au"},"message":"rtnetlink: Only supply IFLA_VF_PORTS information when RTEXT_FILTER_VF is set\n\n[ Upstream commit c53864fd60227de025cb79e05493b13f69843971 ]\n\nSince 115c9b81928360d769a76c632bae62d15206a94a (rtnetlink: Fix problem with\nbuffer allocation), RTM_NEWLINK messages only contain the IFLA_VFINFO_LIST\nattribute if they were solicited by a GETLINK message containing an\nIFLA_EXT_MASK attribute with the RTEXT_FILTER_VF flag.\n\nThat was done because some user programs broke when they received more data\nthan expected - because IFLA_VFINFO_LIST contains information for each VF\nit can become large if there are many VFs.\n\nHowever, the IFLA_VF_PORTS attribute, supplied for devices which implement\nndo_get_vf_port (currently the 'enic' driver only), has the same problem.\nIt supplies per-VF information and can therefore become large, but it is\nnot currently conditional on the IFLA_EXT_MASK value.\n\nWorse, it interacts badly with the existing EXT_MASK handling.  When\nIFLA_EXT_MASK is not supplied, the buffer for netlink replies is fixed at\nNLMSG_GOODSIZE.  If the information for IFLA_VF_PORTS exceeds this, then\nrtnl_fill_ifinfo() returns -EMSGSIZE on the first message in a packet.\nnetlink_dump() will misinterpret this as having finished the listing and\nomit data for this interface and all subsequent ones.  That can cause\ngetifaddrs(3) to enter an infinite loop.\n\nThis patch addresses the problem by only supplying IFLA_VF_PORTS when\nIFLA_EXT_MASK is supplied with the RTEXT_FILTER_VF flag set.\n\nSigned-off-by: David Gibson <david@gibson.dropbear.id.au>\nReviewed-by: Jiri Pirko <jiri@resnulli.us>\nSigned-off-by: David S. Miller <davem@davemloft.net>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","distinct":true,"url":"https://api.github.com/repos/dblockopp/G3_CooCoo_Kernel/commits/a23cb436371ef4fa53d3ae6f901b069fa466e562"}]}
{"actor":{"display_login":"dblockopp"}}