{"id":808814,"url":"http://patchwork.ozlabs.org/api/1.0/covers/808814/?format=json","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/1.0/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<cover.1504283683.git.mkubecek@suse.cz>","date":"2017-09-01T16:39:06","name":"[iproute2,0/2] fix \"ip link show dev ...\" for NICs with many VFs","submitter":{"id":11892,"url":"http://patchwork.ozlabs.org/api/1.0/people/11892/?format=json","name":"Michal Kubecek","email":"mkubecek@suse.cz"},"series":[{"id":1074,"url":"http://patchwork.ozlabs.org/api/1.0/series/1074/?format=json","date":"2017-09-01T16:39:16","name":"fix \"ip link show dev ...\" for NICs with many VFs","version":1,"mbox":"http://patchwork.ozlabs.org/series/1074/mbox/"}],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkQ2P4mk0z9t2x\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat,  2 Sep 2017 02:39:57 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752162AbdIAQjJ (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 1 Sep 2017 12:39:09 -0400","from mx2.suse.de ([195.135.220.15]:38395 \"EHLO mx1.suse.de\"\n\trhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP\n\tid S1751998AbdIAQjI (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tFri, 1 Sep 2017 12:39:08 -0400","from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254])\n\tby mx1.suse.de (Postfix) with ESMTP id F14F1AE7C;\n\tFri,  1 Sep 2017 16:39:06 +0000 (UTC)","by unicorn.suse.cz (Postfix, from userid 1000)\n\tid 9995FA0F21; Fri,  1 Sep 2017 18:39:06 +0200 (CEST)"],"X-Virus-Scanned":"by amavisd-new at test-mx.suse.de","Message-Id":"<cover.1504283683.git.mkubecek@suse.cz>","From":"Michal Kubecek <mkubecek@suse.cz>","Subject":"[PATCH iproute2 0/2] fix \"ip link show dev ...\" for NICs with many\n\tVFs","To":"Stephen Hemminger <stephen@networkplumber.org>","Cc":"netdev@vger.kernel.org, linux-kernel@vger.kernel.org","Date":"Fri,  1 Sep 2017 18:39:06 +0200 (CEST)","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"Two of our customers recently encountered problems with processing of large\nmessages produced by kernel in response to \"ip link show\" for NICs with\nmany (120-128) virtual functions. While some of them have been already\naddressed in recent versions of iproute2, some still persist.\n\nPatch 1 adds check to handle the case when a message fits into the\nbuffer in rtnl_talk() but not into the buffer in iplink_get().\n\nPatch 2 increases the buffer size in iplink_get() to suffice even for\nNICs with 128 VFs. \n\nNote: after applying patch 2, patch 1 seems useless as both buffers have\nthe same size so that the check cannot actually trigger. However, as we\ncannot guarantee they will always stay the same, I believe the check\nshould still be added.\n\nMichal Kubecek (2):\n  iplink: check for message truncation in iplink_get()\n  iplink: double the buffer size also in iplink_get()\n\n ip/iplink.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)"}