Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1376669pxb; Fri, 26 Feb 2021 09:11:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzX/+DyiN5bURudyZi03GYhPLx0rNe8gCkgm9vA06ZqL1N4zsUg/uf2PX672/NPGNETS+at X-Received: by 2002:a17:906:c1d7:: with SMTP id bw23mr1597660ejb.554.1614359514362; Fri, 26 Feb 2021 09:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614359514; cv=none; d=google.com; s=arc-20160816; b=o+3XGKlKKoKsUxy8DPrnNcnPZ2ycCFuNKgjEHBl/WlGSt6z9YJoYUYNY96H0eEVNTr WvkSeJeTNxNn8l/NcpUMhgM+nACC4B6xUitE7SND1LArQoGu0PFCMrD1f9JpK3RfspM+ IosYiai3P9eOXVXsY06TluCUyK71FWV/D0TSpnFZ6OLP3mVXVQxaCl/EpUB2zTU9j4Jw N0fFHDqoWbRjtcDA6DJNFqq1DMRTjgwx/nVNn4GYS+/VvH7k+YyWHxcnT/pDlLfNHhYY kjsu8VoxQfq6iw0TqQxanh28c39vTlYUhLqTf7XXSLgW0NyS+PGRJmtlAWPcZuoAbNAC lhrw== 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=wmRCvyVLmGCEjxRWK5ZCruoNoWT+D2whxABLizoS25s=; b=rWANf0ZP2gYw9kGDoU6XkQZlAFlVRd2K9y7nF4YUdqavXwQp38jBpvwWxorM8Kxduh IpO2rwDrICEw8PXV5aPZ6FU/X8wHDtxh9fLoJ7b5f4IEIKTr/fRnA7x65lzdC55NR2WZ nYeTvzFprvzi1LCowBdccq9MkimI1g5VVVJUshDFU8nSc5moZbvPOF1Y39Fzdfa8W1DZ 3oVRoaycgWid7xfW+u+de5CyDFAiQ1yzNvkCsflNox3TwxqoaBJ1QthPxseQLhFiGmbx XkZ/PQFBurMtjT61L38BygfFHwlAmdGFF26kOmRElYl/sTRi5XoBMjeWdTHOLPLG2K5D LcHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYW97vfB; 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 s21si6262529ejj.271.2021.02.26.09.11.17; Fri, 26 Feb 2021 09:11:54 -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=OYW97vfB; 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 S230045AbhBZRHS (ORCPT + 99 others); Fri, 26 Feb 2021 12:07:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:56998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbhBZRGg (ORCPT ); Fri, 26 Feb 2021 12:06:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7AADA64EEE; Fri, 26 Feb 2021 17:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614359154; bh=pS0c6BwAKO3ZjluaXv1iRIncVUi4cLS3BtdLS4xBl1w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OYW97vfBxwyIJC3LI6Bo+bbN81aYChOrzDRcDFF4KcMJ6XXu/fyXlIGBy2sMURUvs iCcslhVW/RtaSyebIs5i9HzYPlgiSEIPX0maW26wowsVgVXV2Y60zbRN9R7TDqj//s f1AtZtSoBFFAWjc8I/l59rDVAHLNJ8XD3d/1j2PY836c/TJuwz3LD8GKjIXBDRRqKk 3rsLNjBueLB2l3HEWN/GKnQ01ZVLiOJ5OGFwDU/aPLUSqlXmnXIMS340ToOtBb96OY s5//0MX13QizRySjeNUdMiJ7SXrlV9MCw7LQfWiYg9R76v6N7mBqvJgg5GbL3OLPyb dLDzLLOPMaM3g== Date: Fri, 26 Feb 2021 12:05:53 -0500 From: Sasha Levin To: Andrea Parri Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Juan Vazquez , Michael Kelley , Wei Liu , linux-hyperv@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.11 50/67] Drivers: hv: vmbus: Initialize memory to be sent to the host Message-ID: <20210226170553.GB473487@sasha-vm> References: <20210224125026.481804-1-sashal@kernel.org> <20210224125026.481804-50-sashal@kernel.org> <20210224131457.GA1920@anparri> <20210224133052.GA2058@anparri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210224133052.GA2058@anparri> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 24, 2021 at 02:30:52PM +0100, Andrea Parri wrote: >On Wed, Feb 24, 2021 at 02:16:00PM +0100, Andrea Parri wrote: >> On Wed, Feb 24, 2021 at 07:50:08AM -0500, Sasha Levin wrote: >> > From: "Andrea Parri (Microsoft)" >> > >> > [ Upstream commit e99c4afbee07e9323e9191a20b24d74dbf815bdf ] >> > >> > __vmbus_open() and vmbus_teardown_gpadl() do not inizialite the memory >> > for the vmbus_channel_open_channel and the vmbus_channel_gpadl_teardown >> > objects they allocate respectively. These objects contain padding bytes >> > and fields that are left uninitialized and that are later sent to the >> > host, potentially leaking guest data. Zero initialize such fields to >> > avoid leaking sensitive information to the host. >> > >> > Reported-by: Juan Vazquez >> > Signed-off-by: Andrea Parri (Microsoft) >> > Reviewed-by: Michael Kelley >> > Link: https://lore.kernel.org/r/20201209070827.29335-2-parri.andrea@gmail.com >> > Signed-off-by: Wei Liu >> > Signed-off-by: Sasha Levin >> >> Sasha - This patch is one of a 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. > >For future/similar cases: I'm wondering, is there some way to annotate a patch >with "please do not bring it back"? There's nothing explicit for the AUTOSEL stuff. A note in the changelog could work. -- Thanks, Sasha