{"id":2220603,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2220603/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260407163121.480871-3-vinicius.peixoto@canonical.com/","project":{"id":15,"url":"http://patchwork.ozlabs.org/api/1.1/projects/15/?format=json","name":"Ubuntu Kernel","link_name":"ubuntu-kernel","list_id":"kernel-team.lists.ubuntu.com","list_email":"kernel-team@lists.ubuntu.com","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260407163121.480871-3-vinicius.peixoto@canonical.com>","date":"2026-04-07T16:31:21","name":"[SRU,Q:linux-azure,v2,1/1] net: hv_netvsc: reject RSS hash key programming without RX indirection table","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ed74f7365dd1f4059e43b77336548e82871fd027","submitter":{"id":88880,"url":"http://patchwork.ozlabs.org/api/1.1/people/88880/?format=json","name":"Vinicius Peixoto","email":"vinicius.peixoto@canonical.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260407163121.480871-3-vinicius.peixoto@canonical.com/mbox/","series":[{"id":499001,"url":"http://patchwork.ozlabs.org/api/1.1/series/499001/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=499001","date":"2026-04-07T16:31:21","name":"azure: backport \"net: hv_netvsc: reject RSS hash key programming without RX indirection table\"","version":2,"mbox":"http://patchwork.ozlabs.org/series/499001/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2220603/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2220603/checks/","tags":{},"headers":{"Return-Path":"<kernel-team-bounces@lists.ubuntu.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=f4YQdh0a;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqsCh1gdDz1yGf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 02:31:43 +1000 (AEST)","from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1wA9Kx-0003t6-QK; Tue, 07 Apr 2026 16:31:35 +0000","from smtp-relay-internal-1.internal ([10.131.114.114]\n helo=smtp-relay-internal-1.canonical.com)\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <vinicius.peixoto@canonical.com>)\n id 1wA9Kw-0003sX-EF\n for kernel-team@lists.ubuntu.com; Tue, 07 Apr 2026 16:31:34 +0000","from mail-yw1-f199.google.com (mail-yw1-f199.google.com\n [209.85.128.199])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 3E3EE3F2C9\n for <kernel-team@lists.ubuntu.com>; Tue,  7 Apr 2026 16:31:34 +0000 (UTC)","by mail-yw1-f199.google.com with SMTP id\n 00721157ae682-79e095d7628so97070277b3.0\n for <kernel-team@lists.ubuntu.com>; Tue, 07 Apr 2026 09:31:34 -0700 (PDT)","from canonical.com ([2804:7f0:3f4:3d97:4277:b337:4d81:5e8b])\n by smtp.gmail.com with UTF8SMTPSA id\n 00721157ae682-7a3709ff99bsm70628387b3.26.2026.04.07.09.31.31\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 07 Apr 2026 09:31:31 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1775579494;\n bh=hQtGvhHa4oO7k7VhtLn0nl7i8KrwLTv+MXMtVwBod9U=;\n h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=f4YQdh0aAlei7d32Oo9p07UvVooYyLUcctlgyHezsZB0rfpQSvdBsb7oWFG6dfkH7\n 33UHJgBlFKpDn5mFxmEojQ9CX5ELihADt2q1/9MIQmtsadywUki1jFo82+konEfw9t\n GAxXJmRAXgKNUxrKxSckReDPvXXIzcjjEwVGMVmiubIKwhlh1XBIUatdhNNDl/QbU2\n aiC3bJoob2YgS+9wNYELncWGX3OUScb7SgbESVR2Z6L65zuYl+N1ZHHbI9iRoM5QvI\n lI+vSShwIxloLjd4Cn1JZVskPI3mIdqeLH7Je5fCL3eWK6zerfBh8kt9sv6catBcba\n cphQrjziBUBtZdOf1Mw+jWYQQVM47HIqdu67WiQHWQ4KO/sjroAooFgGfe6HU1F0+y\n DrsBOL5cXqIj8+0128ct9YO5vcd/0znYPFxjfkvXYi6A6ig3cYyQlKg/91kgIWoQOF\n 8bRmwBKthrL6e6icT9Be+674b1sOhMCngNs44h/mpfTpThLKyjTy8yF8EB0/6FLfgh\n IfMqy1hgPElR4D4QPGLY/wfxiM794yJ56G8fKZE05Jyzis/E7YyXOhqUULnMOEsaUG\n j9UghzVJh8nNlpzzJfqtSE33nmKsTXOe44uFwr2CL1K2wpur5ELVJCnFt9k4PZ+4Ms\n dUNSlQC8X6bNDIqUk/UrU2dI=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775579493; x=1776184293;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=hQtGvhHa4oO7k7VhtLn0nl7i8KrwLTv+MXMtVwBod9U=;\n b=H6blrmEsclwZanKQnBncqXEnaYIr7qU+7umo6ahcdmL8Q/kmb9fZKlBOvbnX3fmCxc\n paAo3nk2B2tIYmuZ3dvT6/U5oE4Qy8kF+PfbkDtt/LXuTzxehcouNs+/rhyYigfBlVnE\n exb3RrDlqMc9YnoybpPQYqk4w3PlMjg68X8X8qhNw1SetMHqJhja5juRPnebMqfiqE88\n 1zWgylFlroxPPe9bSc+mp+U8kuDuCHVFLPBqL84Rl806HSeB+Ma6p9nIoP5DYSwr1vOn\n bXtXPCGFJuCZMlu/PG0RjbNZtdUOatisAspouGTCN+pI6f1BcE5JfaecXntuaptCPfdX\n sCxg==","X-Gm-Message-State":"AOJu0YwpHI8YFCpAC2lBkstZdezSq8ZDOyyZL5llbwBNrqN4aNY9b8jf\n OJdzjqD3w+ShPu8i8LMZ8WF6DEtaQxhYmhxHAZyxFFQ2Bk7e4mQv/FWrRUJaF3uh2J8dL4HejyX\n 8SuwvG8J4X0Pbg+xLUYOmfVdZsh5D08D1Y4yk/IsVvkLbtIpQb/bWCLZ8wGppFnPupOIWQrC6cc\n Hf/zCzAxk60IAuP0OD","X-Gm-Gg":"AeBDiet2rhn6PDp1qDx4MdCHxDziSnvERong6/ZZ4VczatXrhfIcLFh7no2Qxr3PlLJ\n 7Q8sEd7O7uCQoJumqExvMdsZggfH7VoY1jjF4ZEejuVGeHhOl7gEY4oFOX6DmjX+Ge4lHMFAw4j\n 7RvotUM6hllUMHzd9lu8N/dEW7o2PM7yE7QMPe9J0Ei9WBsJ1ufGtWAjT35d0Tkm3XO4V/cywFT\n OoVPb107qUfO6xkKMlHtfMinZ8aYSi2ZKLOP8zGR401Ck0Oy/nnu6v/cAcUUNDwqHyE+r2cY/LS\n u2CgjnZls115bQ77jL4/wf71gKI3ogsc90lD3Gd5Y1FI1s3EO4Tfan2N25M71EsGYRdYmyXgck0\n 5BKK5lkq6+MefQ5i76Arm0vi5CArK0+yQtodX3qs=","X-Received":["by 2002:a05:690c:c501:b0:79a:c630:c404 with SMTP id\n 00721157ae682-7a4d5c5c893mr186323747b3.41.1775579492844;\n Tue, 07 Apr 2026 09:31:32 -0700 (PDT)","by 2002:a05:690c:c501:b0:79a:c630:c404 with SMTP id\n 00721157ae682-7a4d5c5c893mr186323177b3.41.1775579492086;\n Tue, 07 Apr 2026 09:31:32 -0700 (PDT)"],"From":"Vinicius Peixoto <vinicius.peixoto@canonical.com>","To":"kernel-team@lists.ubuntu.com","Subject":"[SRU][Q:linux-azure][PATCH v2 1/1] net: hv_netvsc: reject RSS hash\n key programming without RX indirection table","Date":"Tue,  7 Apr 2026 13:31:21 -0300","Message-ID":"<20260407163121.480871-3-vinicius.peixoto@canonical.com>","X-Mailer":"git-send-email 2.51.0","In-Reply-To":"<20260407163121.480871-1-vinicius.peixoto@canonical.com>","References":"<20260407163121.480871-1-vinicius.peixoto@canonical.com>","MIME-Version":"1.0","X-BeenThere":"kernel-team@lists.ubuntu.com","X-Mailman-Version":"2.1.20","Precedence":"list","List-Id":"Kernel team discussions <kernel-team.lists.ubuntu.com>","List-Unsubscribe":"<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>","List-Archive":"<https://lists.ubuntu.com/archives/kernel-team>","List-Post":"<mailto:kernel-team@lists.ubuntu.com>","List-Help":"<mailto:kernel-team-request@lists.ubuntu.com?subject=help>","List-Subscribe":"<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"kernel-team-bounces@lists.ubuntu.com","Sender":"\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>"},"content":"From: Aditya Garg <gargaditya@linux.microsoft.com>\n\nBugLink: https://bugs.launchpad.net/bugs/2142703\n\nRSS configuration requires a valid RX indirection table. When the device\nreports a single receive queue, rndis_filter_device_add() does not\nallocate an indirection table, accepting RSS hash key updates in this\nstate leads to a hang.\n\nFix this by gating netvsc_set_rxfh() on ndc->rx_table_sz and return\n-EOPNOTSUPP when the table is absent. This aligns set_rxfh with the device\ncapabilities and prevents incorrect behavior.\n\nFixes: 962f3fee83a4 (\"netvsc: add ethtool ops to get/set RSS key\")\nSigned-off-by: Aditya Garg <gargaditya@linux.microsoft.com>\nReviewed-by: Dipayaan Roy <dipayanroy@linux.microsoft.com>\nReviewed-by: Haiyang Zhang <haiyangz@microsoft.com>\nLink: https://patch.msgid.link/1768212093-1594-1-git-send-email-gargaditya@linux.microsoft.com\nSigned-off-by: Jakub Kicinski <kuba@kernel.org>\n(cherry picked from commit d23564955811da493f34412d7de60fa268c8cb50)\nSigned-off-by: Vinicius Peixoto <vinicius.peixoto@canonical.com>\n---\n drivers/net/hyperv/netvsc_drv.c | 3 +++\n 1 file changed, 3 insertions(+)","diff":"diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c\nindex 39c892e46cb0..25a358524a09 100644\n--- a/drivers/net/hyperv/netvsc_drv.c\n+++ b/drivers/net/hyperv/netvsc_drv.c\n@@ -1757,6 +1757,9 @@ static int netvsc_set_rxfh(struct net_device *dev,\n \t    rxfh->hfunc != ETH_RSS_HASH_TOP)\n \t\treturn -EOPNOTSUPP;\n \n+\tif (!ndc->rx_table_sz)\n+\t\treturn -EOPNOTSUPP;\n+\n \trndis_dev = ndev->extension;\n \tif (rxfh->indir) {\n \t\tfor (i = 0; i < ndc->rx_table_sz; i++)\n","prefixes":["SRU","Q:linux-azure","v2","1/1"]}