Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp724994pxb; Tue, 2 Feb 2021 16:47:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZzAkWlbjUco9MzyqvgOcJ+5oWzmKzLhdtxPsePS30eI+cs4qikpAlhZXaKQutCAx6GK7t X-Received: by 2002:a17:906:1308:: with SMTP id w8mr614548ejb.396.1612313273193; Tue, 02 Feb 2021 16:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612313273; cv=none; d=google.com; s=arc-20160816; b=tf6Zh5Wc0BAfJ5uRKMh7pmmzWG3kWQ+l35ETG3WbdNtWuBxEifBXkNod3vyzS02+L7 6F4c9ZGmDF+32hPcwCD3t2nrNY7U9CtD07+TTrv5ESF9VylUOGffDcU5U7A+Y/tVC9UI eqp6eARjF1yUlGpwve9/vH3CZAjE8gk6TjIc6pUZiMgRvDRl+Uwabbi3X9emhKgty2Wf ngLua9DMZcUa7jnh2mR5jvqo18cldZKI5hsYskad7eiqUTVSUVEAPj4/Be3jTTje94No qPTzt6gKEQQ4GSb3XXcKuJ5b08ThBiPjOI0uUyR3elukJ3qtO1rLPK8lJLK1/8L/sfAM 15Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=h5rmdkq0ct79xFYmSCNZtRWodiMrpMGyI/sijc2Xq4E=; b=J2oLFDqeKH+gmt36ek47QPuCeyvDPDgzdTYnhWP4STlvgg2ZgePc+l4mpsdbl7PmJd dpNnzKDmBiXLRYNPYX/MQNRaJFXKkC3Q06PDqZOXyJcgc/EKI5EzR+gsiwPYwEaOE+yo e7Fbdu4UUh9051EgOb+BgN7wRxL8hU1KsFRaC/YPmY6iioHFyoJcgxllYOoPnCg1uhgl omqqYGGl8RBFU8DFwcOD9/oXf3MsjeqTcsdUF5F8Y5U1Ot9YxYG4CyCPoA56go1h34DK /T86wKGUXGHzrtf2zaiU+mQpzKXARw9SPFAvNq29vShcUiwGEhB0dQNrwUi/iNlTxIiU NJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BeRk3ub+; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si254564edi.26.2021.02.02.16.47.28; Tue, 02 Feb 2021 16:47:53 -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=@kernel.org header.s=k20201202 header.b=BeRk3ub+; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240097AbhBBTrr (ORCPT + 99 others); Tue, 2 Feb 2021 14:47:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:55052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233339AbhBBTqb (ORCPT ); Tue, 2 Feb 2021 14:46:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E51464E56; Tue, 2 Feb 2021 19:45:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612295150; bh=poFuQwQsU2PME8YffAn0GP6z1ZRy04N6vTW56FmDWAU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BeRk3ub+hI1w020CryLS6G2Q3R3dRZhe4CB9UcCOCBq8LdPnE45tf70c54dG2Yq60 51fv3tKH6juszMErCfKrglbb7Tgq+DsaUEf/ueLbpm7uaEIdui2pnqR6/YsIy/1saV PrTnqpr2jFrHerKTT0Mopvxz+9UTIZj0CbguvUIxRHo0HDKi29xN93GSz4Toa5hxKw jkEq8RDEV7Pvz0pooEdQ6mgcnQ9h8UmAF3uwX/Gw3Ge2lGFde+nazKvaWSat9r/Loy h1a6NCxCU1sGsEgkVMao43aNfULFK1GoTyCcm+539fwvDSj+l2+0BEO1CcVavtQ3Zi jVNuYpgXyPd0A== Date: Tue, 2 Feb 2021 11:45:49 -0800 From: Jakub Kicinski To: Andrea Parri Cc: davem@davemloft.net, 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: <20210202114549.7488f5bd@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210202081843.GA3923@anparri> References: <20210126162907.21056-1-parri.andrea@gmail.com> <161196780649.27852.15602248378687946476.git-patchwork-notify@kernel.org> <20210202081843.GA3923@anparri> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Feb 2021 09:18:43 +0100 Andrea Parri wrote: > 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? Fixes for bugs present in Linus's tree? You need to target the net tree, and give us instructions on how to resolve the conflict which will arise from merging net into net-next. > would you rather prefer me to squash these fixes into a v3? other? Networking trees are immutable, and v2 was already applied. We could do a revert, apply fix, apply v3, but we prefer to just handle the merge conflict.