Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp118134pxb; Tue, 2 Feb 2021 00:22:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzH107MrHn0z+GsLCMB19KZu1FBgglK9Cirvluf/j+LQSq+ApQmkBG6j1wiVS19uDsR8Z3M X-Received: by 2002:a17:906:c04f:: with SMTP id bm15mr285693ejb.364.1612254175099; Tue, 02 Feb 2021 00:22:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612254175; cv=none; d=google.com; s=arc-20160816; b=Dl6W+WsjJyoIbkJmnsk+T3TCMaARbD84PlHOrd9gHjVoSOjwcDtaOR6jGSc3DxB+9m Ia0dcwtNRuDP7QY1J8zwRBbnwtb4Y+iBQ/plUahFcAIQrTyYCzry+WjyU01gR0s/NiAq MUgJh6zEjGQQF/hMAq4AIxo4g6bMv6915MdGaChV+E+VO9Zpfl4wdXmxM9O+7zANboNW G0l9hAa/FQfbQP+LWCUFNktAbdhuXC64kjguzWcXPngAJLsRT5uvqTAKnUyHfspEuJOq xh6PtdLLAyw8zBXabh+6GQh0NitozNs5FUIXEHuwcVv8tD80F6v6Gih76FZ5JEI7cesW HaZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3Kr9Epl1kAlnX6nt81Nq6kJoyLjYKyuMq30muLpi2p8=; b=gi+TQXumoqcxW+bQnJ7KsgwwzCs0N/1iarnOMxerhE9y0DfyO55h5dvsFCLO/xvCYC ncMPB5kOtZ1BEucxBtUafn2+8gPNMAJiV+blmWcFDmE9p5DIRv8ZoXTROjDZXycV6ltz 98WQlaWZVakuRTpG0Dp05wk8qFY2qsHZ+Ew4RL6vHwmCJcPf5IICKpb+oW+rmUU+ani0 50Qp08vMqyvOZXMA2GFm6Ko6w2isY/FMQeNx4/88M2dCm/zEGKLQGcA2NGLCguuHMdeS ZDQsQ4bySZyyc7aAVu5DfFtPWRzEoDfRnLXGE5gLfZr3OKzPp/CJ0SMsQqzP3NNKU09L gfmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kypzQ3DW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si2851605ejx.492.2021.02.02.00.22.08; Tue, 02 Feb 2021 00:22:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kypzQ3DW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232618AbhBBIU4 (ORCPT + 99 others); Tue, 2 Feb 2021 03:20:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232557AbhBBITg (ORCPT ); Tue, 2 Feb 2021 03:19:36 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECE59C061573; Tue, 2 Feb 2021 00:18:55 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id f16so1501787wmq.5; Tue, 02 Feb 2021 00:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3Kr9Epl1kAlnX6nt81Nq6kJoyLjYKyuMq30muLpi2p8=; b=kypzQ3DWrVZOA8QOrjdX2Sr1ociC5v585XN+sviQzHeBvVgYJ6vSYdBpZg+JzakTcq oXvyfzzCBCu6c+bNBfsjlIQDfQGmjXK1UuXTpDJ2AvQ/UtE3EmfWbUvaHsI2mdZsdc9y Art3KRmO587DP603ZjbxqylDmIzxdEmk3rEo5Kr4LZVvp08//ehHC9Yx3dRIw0rV7Yr/ 5ToBMqJaDRqZwogF0mUICL28A6eoxtBR9iLK6+B3hQOkGmy/BxVYg9FIdnvexCfaoefp maWOy+xDZ+w/wtDCBRL3ElP1/QYaGNRMWA47HgW5FjMYJBwinxDOzNyQY+/augRVirtW DDRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3Kr9Epl1kAlnX6nt81Nq6kJoyLjYKyuMq30muLpi2p8=; b=agJN4zt3BA0m9+dLV8iTtTMcNQQmXUArh4R4yu8D6zgCAiceScCqwD5Ca8rcEZMhe8 3tScppL7BGd22xUyL7w+nJh8p6RcH3wThZv9obNsP5uYPPJ/kefbL1EUstrS8JkahYxZ uChkLDf/U3/YS87E3kk4rcOJpUoi1rE13hKqURw92kBueBTTGx9x81HX8U4hVrFIo+QY ymK8vg798BGYQme4oBIeY3riZdhi7CkePJ889kOQ+gVXbPQepfXnaT67uI01xsbEsih2 WYpmUQDhWptOTSnY3BvKtP9CebbSmGTvTWA32BUxcALyHXd75xOJeEBSm8VVAi8ewEv2 tbAA== X-Gm-Message-State: AOAM533T876ukwtYwlZ62vw7Y86+A/8HfISLrHtXCxYk5tupXKuHhtCn 8m01ipQut6Wkx/ajNzHbbf4= X-Received: by 2002:a7b:cbd5:: with SMTP id n21mr2478654wmi.5.1612253934526; Tue, 02 Feb 2021 00:18:54 -0800 (PST) Received: from anparri (host-95-238-70-33.retail.telecomitalia.it. [95.238.70.33]) by smtp.gmail.com with ESMTPSA id c62sm1883575wmd.43.2021.02.02.00.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 00:18:54 -0800 (PST) Date: Tue, 2 Feb 2021 09:18:43 +0100 From: Andrea Parri To: kuba@kernel.org, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, mikelley@microsoft.com, linux-hyperv@vger.kernel.org, skarade@microsoft.com, juvazq@microsoft.com, netdev@vger.kernel.org Subject: Re: [PATCH v2 net-next] hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer Message-ID: <20210202081843.GA3923@anparri> References: <20210126162907.21056-1-parri.andrea@gmail.com> <161196780649.27852.15602248378687946476.git-patchwork-notify@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161196780649.27852.15602248378687946476.git-patchwork-notify@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi net maintainers, On Sat, Jan 30, 2021 at 12:50:06AM +0000, patchwork-bot+netdevbpf@kernel.org wrote: > Hello: > > This patch was applied to netdev/net-next.git (refs/heads/master): > > On Tue, 26 Jan 2021 17:29:07 +0100 you wrote: > > Pointers to receive-buffer packets sent by Hyper-V are used within the > > guest VM. Hyper-V can send packets with erroneous values or modify > > packet fields after they are processed by the guest. To defend against > > these scenarios, copy (sections of) the incoming packet after validating > > their length and offset fields in netvsc_filter_receive(). In this way, > > the packet can no longer be modified by the host. > > > > [...] > > Here is the summary with links: > - [v2,net-next] hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer > https://git.kernel.org/netdev/net-next/c/0ba35fe91ce3 I'd have some fixes on top of this and I'm wondering about the process: would you consider fixes/patches on top of this commit now? would you rather prefer me to squash these fixes into a v3? other? Thanks, Andrea