Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp463989pxb; Wed, 24 Feb 2021 06:54:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEKMPxGF9G0x3uF+uqYamWGikJGtlYaatHkWykICV7eYqxsVkExyrRVsCMAlNNrACud/9X X-Received: by 2002:aa7:cd87:: with SMTP id x7mr34654049edv.210.1614178449726; Wed, 24 Feb 2021 06:54:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614178449; cv=none; d=google.com; s=arc-20160816; b=Rqu95D7UKcqLWWGbAN6TgKJgp9z/WGSVb7MEPvPzUxB+lWOjpNFctI2HOoYXl2tFVZ lw+POzC84ZHmPTKMcgyIKPQj2f2RzSc3hhR44Xd2wInu7YjijMFP4qVj35RMG50T5pjJ 57R1clBfkAu1S3FquaQEdPTHgn/kqZVSTqz5lApaxRKei5Iz0450/Cq4WGc/KmmmpOQy L0ZQ3IN+iHKniVh3HcsvbdFdVbcGGANcfvS6IvyoefXDYFyNBXckBzikhkbuu+c2ehgQ O6NsAyZVMDvMyXSy18YWIl80bgCf5njFo9l9d646z4Zus7HeaXObgAHzxTTn1/MmFlZ8 BKAw== 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=+D22QqFza76XYDyI5h+Kb2jRVllujtZ/ibY1WzgnNsQ=; b=STEWV+BHP2Zb5joYAEnGch4n80q7uepm9shh9QgZQSyas3oiBV5yE71lmB8zNJQb+R 3+ExEQXm5YKjHhRGUMAMi7QX0ztt6Yli1y/y1TsF0P4gVGETjsWEOw9ZMSyFiRrbwwme Ft4WuvRDVUpj8/Va4zc6wAPlRcy7Q7tHbpTzjOaKmdiyO4ZYoeqVie9sVrL4G9tAkR3/ 3YnpRZRwjiX2lv9Z9uTs8KJWWs/9CepPPT2z3uKoGZta4IEMdzIL5Z/rQX0vJ1PEpQi/ YVtfwwIoIR1QuhAshua1W/9RFe5cLyerJZdugZAr8caMZSGcDHbKH6yX/A58PFInRAS7 wKXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oKUu2AHH; 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 dn4si1620600ejc.205.2021.02.24.06.53.44; Wed, 24 Feb 2021 06:54:09 -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=oKUu2AHH; 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 S237181AbhBXOst (ORCPT + 99 others); Wed, 24 Feb 2021 09:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237155AbhBXNek (ORCPT ); Wed, 24 Feb 2021 08:34:40 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA198C06121E; Wed, 24 Feb 2021 05:31:01 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id g3so2466075edb.11; Wed, 24 Feb 2021 05:31:01 -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=+D22QqFza76XYDyI5h+Kb2jRVllujtZ/ibY1WzgnNsQ=; b=oKUu2AHHj+H7wa2vWELhYt/uQghh+NrEpE5TV0p/V8g+CMHuLrhHdMQK3iF/td5O2y ZCfIflnBKDKUxlDgEXeOM3iiqKr6WNiI+jf3NsDVQ0mwyH0tEm5zPwKefwtloKLoLnel 9OgsDv/Ekeih0VuRxPfbmo6PNM53RZ3kHc8e3FOoOZdIA+PRlS+RoazSSfVR3ZRtKOeQ zSh26k78uRGpMjd+rBqGN51k05uewZ+8vXJLSEaCj+QMFwrQx/JA/xwmO5vPIqSXalyO WcgymuW+ZnoagwIQGK9rWOWK28GmXxtjUJu2XUB4MwFK9xDNezQUvY/V74LzDcwxC6qC x0/Q== 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=+D22QqFza76XYDyI5h+Kb2jRVllujtZ/ibY1WzgnNsQ=; b=Iyy05Pt5A1+BasZRrs3sh44BxOlltSthvdyndO2b7wTRnyJL5EhWUAO4ZrKZta/wPR w75/yoT3+8JuYDG1hGo/xRJVl4NUY2jfQ9lEHKLIExsofGOR/0dDToRuh0xBb3JqeJAz iP56Hn3JZ0HMbshuzdtRjKfktPJ0mInjP8bILRfkNx30Neo3MyCWTOCpzbrKJqq4zQxJ tqRfrk5wrTzn1hmy0YGfi6We7OMjwhQcZwew8xpuVqP40rN/w6NF4pHdbR4MOjQq3XSL 6qSZCnd+yAvwf7/vA4KsuBIJUzQH5olew9bGS+Kx+4FPBTqF+Zic3hqRMYW9GiYkTKL6 KEwA== X-Gm-Message-State: AOAM531XcxYVG4erS+FDKtZkvudq+aUJrqUYsutxvhGop0av7YoJZsWc Ft/44yvQdaF16LGTb7srEr8= X-Received: by 2002:aa7:cf16:: with SMTP id a22mr950855edy.288.1614173460533; Wed, 24 Feb 2021 05:31:00 -0800 (PST) Received: from anparri (host-82-59-6-76.retail.telecomitalia.it. [82.59.6.76]) by smtp.gmail.com with ESMTPSA id t8sm1302210ejr.71.2021.02.24.05.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 05:31:00 -0800 (PST) Date: Wed, 24 Feb 2021 14:30:52 +0100 From: Andrea Parri To: Sasha Levin 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: <20210224133052.GA2058@anparri> References: <20210224125026.481804-1-sashal@kernel.org> <20210224125026.481804-50-sashal@kernel.org> <20210224131457.GA1920@anparri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210224131457.GA1920@anparri> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"? Thanks, Andrea