Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5816504pxu; Wed, 23 Dec 2020 06:17:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4vaMZiZkIGH6Akv+8qj+oLTM427ho0gPXbo3Lzwc4IXar8YiWEs1PCBFCb5X211PhYjFS X-Received: by 2002:a17:907:971c:: with SMTP id jg28mr24366551ejc.85.1608733040977; Wed, 23 Dec 2020 06:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608733040; cv=none; d=google.com; s=arc-20160816; b=HUcjaYoToYJH8BqjKlrkej9uceDe8TKYnQCbLC1uhmuef5Zx05xIPoK7uB579l09YY Z76RMiceuedDVoNfEku1pybdDdwTZ214tM80Gfq1M1b1lPrFL4FElBSnNX3HCkj5MuYR X5cvdWzxeC1bG/YxwQGEafYBcWobcaX8E1gTr9yW6Q1m1825vLB9qX55ugB/dCTdbSKn Tj12hQkrYmwaVU8p88b8p54x/OtRPZotzAZaHVoAHr4nH12TAM9xgIFcgwcUD2D90T6L VzmaGBzct01X41kfqEcDY9+kqEycLSICUJYS1w/SHUj2+lis2x19c9u9HRAd4oTt3aHK h9dw== 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=AGNNvV5m3Q3suOd2yBr96CX8s8+0StC2qeeCODcZMr4=; b=whHHl2ij7Dmtf0efHICig3/X5oaN+4iCXdP3wvxUAMEaTnwwNVi4Q/60gPff/czG+A c1HKc+izZuCxAjFBwySy6CL57z1p+5JJh3Jzu6Z+x9Jm+sUVA/QTl/zEwdCCU02AGLVV xm+M8atM1CC2+PjllKzh8jNRCacHDgdhuPWPUonSVl9QK12H2IeHP5X0WDzW2+mxjn4e 7mswOkZMd3AkS5ZmX76waahZu2aPFZSsmMzfKq/09nOYncddheY+o61kZeVhsTYovlxY AYYZUk4MaKvmfF/WooCoCuuYBw+pn6qzybu3ZMd85oDrOeFMHumWagtl2k6X8MhsKywI sdCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KIaV3e3D; 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 k1si14035227eds.84.2020.12.23.06.16.58; Wed, 23 Dec 2020 06:17:20 -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=KIaV3e3D; 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 S1729196AbgLWOPZ (ORCPT + 99 others); Wed, 23 Dec 2020 09:15:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:56160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728737AbgLWOPX (ORCPT ); Wed, 23 Dec 2020 09:15:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C49D923159; Wed, 23 Dec 2020 14:14:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608732883; bh=KwOCRAIlT7Kx98f7TLXR6Mob/duwi21xCJsMOHNBw5I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KIaV3e3Dbo/54lFTWkVfg8ZAdYi23vEhNJ3c2TYplT71+CcQeD0DmA9NS1EvQ8AQp JXySB0GNDuMuk2X0Oy9mxV1MFlhdcpZa6hXsA+cyVORt7OaHNj8YVd/iIFU9pD/NOJ WzmUic3EgEXhvxqk9cSS1tL2RBPlmbgflYowg4VnwnH0HK2Z5rLrp8n38D5ZaG2TSs WCsrYsAv2qxSsZiGUPhv/vgdRdejt9ZWj7TzshLeoR9yzxuNDSvBtYTvEdZwKbOqzK IkfL7T4uY59SQjopGrn9h/K1AqzrngUtN+prHJYRCkSiefrOGyWPDcuUwbeNeyol1q V5dXygsSrG8aA== Date: Wed, 23 Dec 2020 09:14:41 -0500 From: Sasha Levin To: Andrea Parri Cc: Michael Kelley , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Saruhan Karademir , Haiyang Zhang , Jakub Kicinski , "David S. Miller" , "netdev@vger.kernel.org" , Wei Liu , "linux-hyperv@vger.kernel.org" Subject: Re: [PATCH AUTOSEL 4.14 40/66] hv_netvsc: Validate number of allocated sub-channels Message-ID: <20201223141441.GB2790422@sasha-vm> References: <20201223022253.2793452-1-sashal@kernel.org> <20201223022253.2793452-40-sashal@kernel.org> <20201223085931.GA2683@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20201223085931.GA2683@andrea> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 23, 2020 at 09:59:31AM +0100, Andrea Parri wrote: >On Wed, Dec 23, 2020 at 02:47:56AM +0000, Michael Kelley wrote: >> From: Sasha Levin Sent: Tuesday, December 22, 2020 6:22 PM >> > >> > From: "Andrea Parri (Microsoft)" >> > >> > [ Upstream commit 206ad34d52a2f1205c84d08c12fc116aad0eb407 ] >> > >> > Lack of validation could lead to out-of-bound reads and information >> > leaks (cf. usage of nvdev->chan_table[]). Check that the number of >> > allocated sub-channels fits into the expected range. >> > >> > Suggested-by: Saruhan Karademir >> > Signed-off-by: Andrea Parri (Microsoft) >> > Reviewed-by: Haiyang Zhang >> > Acked-by: Jakub Kicinski >> > Cc: "David S. Miller" >> > Cc: Jakub Kicinski >> > Cc: netdev@vger.kernel.org >> > Link: >> > https://lore.kernel.org/linux-hyperv/20201118153310.112404-1-parri.andrea@gmail.com/ >> > Signed-off-by: Wei Liu >> > Signed-off-by: Sasha Levin >> > --- >> > drivers/net/hyperv/rndis_filter.c | 5 +++++ >> > 1 file changed, 5 insertions(+) >> > >> >> Sasha -- This patch is one of an ongoing group of patches where a Linux >> guest running on Hyper-V will start assuming that hypervisor behavior might >> be malicious, and guards against such behavior. Because this is a new >> assumption, these patches are more properly treated as new functionality >> rather than as bug fixes. So I would propose that we *not* bring such patches >> back to stable branches. > >Thank you, Michael. Just to confirm, I agree with Michael's assessment >above and I join his proposal to *not* backport such patches to stable. I'll drop it then, thanks. -- Thanks, Sasha