Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5626275pxu; Wed, 23 Dec 2020 01:01:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwy0R4nWtU2wQeVWEzSSL2Fm5Z1t3EduqCeTVnJi9FM36t8KyTHuDE2KnCslZJeL9GNmrZX X-Received: by 2002:a17:907:2d0f:: with SMTP id gs15mr22814172ejc.455.1608714072134; Wed, 23 Dec 2020 01:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608714072; cv=none; d=google.com; s=arc-20160816; b=sTgVtR5+DQk1MT41OWf3B6e3RPMver/3rZYqnfH4tibNBjZ7/aAQ8ATccdfoX3hZvt 5wPjfyN5lykuYxu7u0bfUZsTNkSaFQ/74fAyFzrrD73mziqW4ynFyzbQAROjAp7Ou1U1 oyOwvDEBd8jZDHLxz3tXX3vDEiPRNbS7SdrPWkuVo/0ITdGBKlcSIMoe9ntIIIYhks0J KPJgjCJRXUU7MWYiUfVGf8n9ZJYPz1qfp30yflV6JS0fPo5ZrCSQ9H8Y6z0qu0aQcZEE DFKpviQraTB2I79qQDIEk81z//djNrenPnwtbVsuGXWSG2evB6APA2gxDR+ws7oB8lKp 5ooQ== 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=ES/8ieI8Kxtel9JlAtC3s+3/PUrp/OzcZLFZoDxjKqA=; b=CBS2PBoEs653uLwfMAnCrR83ukkGtHi3EW3SC78fEUj50VdqSXqFMyUlS8dGnk3Gde XWRYpMT3IBO/3ejjsl5dqsnLIrYf/p9fJBKmY6QL/KZ1EnEkwi0z6o0IKOBTLi2mS8u9 aCx0/Xi0/VijX1LXvJE1Mv7aI33BZVlHzdX2p5JwXEWlemxeBfIs7OuiuqxFXt8s5K8G 9a3vTixaumzsWczedWf3M7hRZlMUIyyTyE86QfChSMuKQ1j5A0Xcljz5HKg2FePgdBEW UjQ+L/PTKS8yvfGxMSA6fuszVBfbQq73xHooM11coVU0ftEkx9pw6QhHNeIAgb1A7tQR BSgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UEgPNhyU; 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 ga18si11677777ejc.66.2020.12.23.01.00.50; Wed, 23 Dec 2020 01:01:12 -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=UEgPNhyU; 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 S1728156AbgLWJAW (ORCPT + 99 others); Wed, 23 Dec 2020 04:00:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbgLWJAV (ORCPT ); Wed, 23 Dec 2020 04:00:21 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CDA3C0613D3; Wed, 23 Dec 2020 00:59:41 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id b9so21900399ejy.0; Wed, 23 Dec 2020 00:59:41 -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=ES/8ieI8Kxtel9JlAtC3s+3/PUrp/OzcZLFZoDxjKqA=; b=UEgPNhyUF5K0K5Vluw21w7F/F+PiR6V0PvyX0LR/kqwJFtEZ07Np/8GaGkf6SGP69p WQXYZ/f/6aWTTl8X3Cc3cf9FF3sAGnp9OzwnFWH/GpQm2fBmAxPvjZbazvjxFCcOr8PP ENqF5X7spWt4IKytN8sv4cXmTNazBVox1hQa/nZokeByRAi+RvwND43NMyD+NvXOiDYc ikYwybT2Wsr7aEzO/qBGt+2ivuPab/Et9sHbYC4P6sMD3ijFyWNNKwUbTv/zfvSA/GID V/hM1EWoh1hX0iztJ0kz5X1BdaD4EEnBg+2kMIAoimucpKP+fja//SMUNtbsLakkEXvD gsVQ== 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=ES/8ieI8Kxtel9JlAtC3s+3/PUrp/OzcZLFZoDxjKqA=; b=VAHgWKgvRoXOQE47++aGLmzrEuMT5SoNpJjfW/ltjR1rDe4hec0t0KJRU0p6QbUV6x +YJWhJh3x6xvWvvoV/MnUZ1H++6AIMsW+g+vvBHRYdytJnPH9reVwv+MSBft9sZsSWWq E+ScKTok7kGqcT/07pMLI0Put3nIzJypZ/wsz8cKhcxipQUIHKbarHOijWbzFh9Gamgu HwR8Yuec5MWsjXWeQU5N6AbcgG+k08HejDTv6HsB3i0TNOQqS2ft1Sb5om3oMab+RNWC c8+zWjfaNEuhtwWw2qOhgJ4iiHCEDBl1ALHINfHZ9jGzX5caNpRDX4yJcQ1cIc1TgY16 6U1A== X-Gm-Message-State: AOAM531ymATFTF+xm69xQMsHxT0mGo0mknPBI2oURJXEA3AyO5o+V2hv rhhsdBtjc62aSab/53icK2Q= X-Received: by 2002:a17:906:cb86:: with SMTP id mf6mr22786625ejb.57.1608713979695; Wed, 23 Dec 2020 00:59:39 -0800 (PST) Received: from andrea (host-95-239-64-30.retail.telecomitalia.it. [95.239.64.30]) by smtp.gmail.com with ESMTPSA id n2sm11289270ejj.24.2020.12.23.00.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 00:59:39 -0800 (PST) Date: Wed, 23 Dec 2020 09:59:31 +0100 From: Andrea Parri To: Michael Kelley Cc: Sasha Levin , "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: <20201223085931.GA2683@andrea> References: <20201223022253.2793452-1-sashal@kernel.org> <20201223022253.2793452-40-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Andrea