Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1393096pxb; Sun, 17 Jan 2021 07:17:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeVqZqJ3bdVvnZgi2dOgckCvdoSa8GTRbuIp6KrHU49zkJhn742F9h4SZr/WvcD1dlIXzL X-Received: by 2002:a05:6402:4312:: with SMTP id m18mr14209072edc.99.1610896654037; Sun, 17 Jan 2021 07:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610896654; cv=none; d=google.com; s=arc-20160816; b=jm/rnJmRtKWlbq/uhudQbQBoMQ1PzPX7nM3EE7khJ+4bPwG+Wq9RK/n2gLfgvQp2NK tu1X+X5gsJXmq6+gjy1RpFKWhWKTbMrOkB3LUDZYGBlhT25r8nMfDvVu9n1UMkMk8tO9 dRj2MOd7fO5/MD5i5fxbHSTPdcZqEZYa/ubtRoKna6UfSnUmyvkaXovWC3uHZYhAc9Az c8D2Q9X2NFnsuQBKZ9e+Dy515m8f5wz7teoZMZaRQayjOnx/0AU1UNTcrV7FynQWNiKa 8CKqEtyqmn/cnnWYLxRKDC/RORM5A8+aHBPYcOyL30WlVdU6NL8jR8XPW59P74pKFdDi UkJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yxPKYVAYGFQ1uVQM2y606vIDhx9zjoEHxHnN55EZo98=; b=HcG52INbcuiGnHI9vt0uAfP8p/tO8oh87Q0MxwdL4BS3zRBIM8vm/aJHGDlVNrxBZ+ jAJy7v00ssy272zRVMSpYsaqynoHJRbwsQmB8hAAQJl+N+HXYrp+NAt+rLC5aHMwu0iF A4c61grCSCEprZOZN8eoux9i5LEQdQc+zDrIteOQ/UNPM3pjUB3vld07ez2Njs5qzZNx x8Zc2g2AfIQy0vzfZIxuMC1jFtIL/n4SQAM2YlK4bBGMHz0kRwAAtw0yw+xwYrlxbZcv sD0lzyhEQGXmGmGC2e59TBWdSr6aScCINhR3VBWVrhs5auVJzH6SZjvDRCuMe9ea22NP LfuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x36si7126391ede.401.2021.01.17.07.17.11; Sun, 17 Jan 2021 07:17:34 -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; 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 S1729523AbhAQPLZ (ORCPT + 99 others); Sun, 17 Jan 2021 10:11:25 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:35653 "EHLO mail-wr1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729494AbhAQPLR (ORCPT ); Sun, 17 Jan 2021 10:11:17 -0500 Received: by mail-wr1-f54.google.com with SMTP id l12so8824371wry.2; Sun, 17 Jan 2021 07:11:00 -0800 (PST) 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:user-agent; bh=yxPKYVAYGFQ1uVQM2y606vIDhx9zjoEHxHnN55EZo98=; b=TUVVHDczSAED4qTERg6ScXVXG6pdSeHnM7xdHdUaGtMng5gn+2Qn/oJLIbS182hc/w f7H5t9ODzo0lZ0HL4YdT84LopIZDUrICwV6Zpvtig0B6zKC7AooH/LNkbPQ7eJKx2fRy k40jkgJ4L1CVQxYRaM2Jj2/U/K1TNbZ7AGO4xBTk+Xp/bcnZWv7WHpC6GpEnQCxy/9/9 fDt291EmWIiHN9GSTd7r9Ht6GP9ekW7Qr2vBla3xI0pjKespB4s8fLJ0bcNCO/pYZu0l E55W+ZSsLlluv1OgfilcQlOg+fPv5PiJnKNvVN9BQWiZfaTTcOe/9peE+CtBfSRtHpQP ALZg== X-Gm-Message-State: AOAM530jgMI9U6aLeGz5uL3x9oTjKyxzxpm6k0m89sQbvSqUdCwdy9PT y3zFtfwOqU+wvpJtML5wzHY= X-Received: by 2002:adf:ef51:: with SMTP id c17mr22353048wrp.101.1610896234710; Sun, 17 Jan 2021 07:10:34 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id g1sm24246408wrq.30.2021.01.17.07.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 07:10:34 -0800 (PST) Date: Sun, 17 Jan 2021 15:10:32 +0000 From: Wei Liu To: Andrea Parri Cc: Jakub Kicinski , linux-kernel@vger.kernel.org, "K . Y . Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Michael Kelley , Saruhan Karademir , Juan Vazquez , linux-hyperv@vger.kernel.org, "David S. Miller" , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v2] hv_netvsc: Add (more) validation for untrusted Hyper-V values Message-ID: <20210117151032.sbhjryq2hs3ctnlx@liuwe-devbox-debian-v2> References: <20210114202628.119541-1-parri.andrea@gmail.com> <20210115203022.7005e66a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210116130201.GA1579@anparri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210116130201.GA1579@anparri> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 16, 2021 at 02:02:01PM +0100, Andrea Parri wrote: > On Fri, Jan 15, 2021 at 08:30:22PM -0800, Jakub Kicinski wrote: > > On Thu, 14 Jan 2021 21:26:28 +0100 Andrea Parri (Microsoft) wrote: > > > For additional robustness in the face of Hyper-V errors or malicious > > > behavior, validate all values that originate from packets that Hyper-V > > > has sent to the guest. Ensure that invalid values cannot cause indexing > > > off the end of an array, or subvert an existing validation via integer > > > overflow. Ensure that outgoing packets do not have any leftover guest > > > memory that has not been zeroed out. > > > > > > Reported-by: Juan Vazquez > > > Signed-off-by: Andrea Parri (Microsoft) > > > Cc: "David S. Miller" > > > Cc: Jakub Kicinski > > > Cc: Alexei Starovoitov > > > Cc: Daniel Borkmann > > > Cc: Andrii Nakryiko > > > Cc: Martin KaFai Lau > > > Cc: Song Liu > > > Cc: Yonghong Song > > > Cc: John Fastabend > > > Cc: KP Singh > > > Cc: netdev@vger.kernel.org > > > Cc: bpf@vger.kernel.org > > > --- > > > Applies to 5.11-rc3 (and hyperv-next). > > > > So this is for hyperv-next or should we take it via netdev trees? > > No preference, either way is good for me. To be clear: There is no dependency on any patch in hyperv-next, right? That's my understanding, but I would like to confirm it. Wei. > > Thanks, > Andrea