Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp65668pxy; Tue, 20 Apr 2021 12:46:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+S5JwgBm6HUxH2QSSFbTqRJMqXI/aR2fOboTxVONWOj3BtzTuIHVRKW7DSxm7R0libsAh X-Received: by 2002:a17:906:c058:: with SMTP id bm24mr29359564ejb.335.1618947973744; Tue, 20 Apr 2021 12:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618947973; cv=none; d=google.com; s=arc-20160816; b=0p+tjOG2mcfu7d0JnRKcCs+WC6IbZw+3APC75vJ1KrO9Jw6c++GoxrpAdykx/ydE0c vztlMH1WfpIp38onZyrS+VDbSl9701SarWIlfEXJYefDbTfxnIrz6VPOeO/RD67KkM6J 9XRJFHGngSMEoPNUM6H4jyTahBEz8l3glLfu6XN4O0EESuHH8vOXjjaBA6ipoZwnVd7b 7mAU9SWwua5cBElwk+D8BAoc9riuXdqH8pLHwFxwDEx2WUsPlMIA9QUyXjr4MClqbyhK QrAanP17uksfcIy5T7GkjOvJ91wmms1Riy/C9upIg7/RlmiXHiBh9Tgkssl6fbpR4Mpm n2Mw== 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; bh=sMMGdr7JEy8BvSwLQ/yZhzlMoyLP4uO6JbljwCQU/Ko=; b=OcA1YUO+j1FqQIDJ+s1OQJERBa3owC/88WDDZjMqHdiJcz0U0ikide4eg4qs++d+cp 0Z4jpFJNdbF0q1deIRIsVMTOgo8fCAm+/RJtFtfWUaDQNZmVFfWSOzRTYNaPONZ1i1cY sYA3tIc33G0kcjmXlTus+tgMogyf9qxtGGV8/t2mGHLOqWOLt4yu00kP6CHh7PRgQszF ls5+/f/TIT2elBRnXK5870HLe9d4Nt2yL1d2pP2vxGhUGkB0tzmpeQpXWrMMzuH2jLpL tVulrnpCs/tft09bTvnUw1VkpeMT7AMnXPsU7NV++VLl++hTNjtGm74KeJ4KYCsnXn2u waNQ== 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 d12si17406696ejj.594.2021.04.20.12.44.55; Tue, 20 Apr 2021 12:46:13 -0700 (PDT) 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 S233682AbhDTTlY (ORCPT + 99 others); Tue, 20 Apr 2021 15:41:24 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:43638 "EHLO mail-wm1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233541AbhDTTlX (ORCPT ); Tue, 20 Apr 2021 15:41:23 -0400 Received: by mail-wm1-f49.google.com with SMTP id p10-20020a1c544a0000b02901387e17700fso1742424wmi.2; Tue, 20 Apr 2021 12:40:51 -0700 (PDT) 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=sMMGdr7JEy8BvSwLQ/yZhzlMoyLP4uO6JbljwCQU/Ko=; b=Pcm/ZBmiyLYzF7T3yiuB8ehfgFUIlmg7JZ16tTxx7RRG0HmwnTwSfwPyM+69nsPGl/ 3gG+LoeVN0WKYhFSkIX539H34QFA5122GJB3Y4YN3cRwiAKkqfuyfIQl/bj1lJKfdFwE IhThTyN5fT/09muV7ebgm0H6bEYHMdKOSHy8BzFz7vCPCqmXQE6a46htXNqTu/5kFz6y JEUuhdoan4FkGGMToo0lK6fXnFlZSnhkO80Fsm7itz3dL9YtIGiYWiLXwAWFhWgxY1KL g0JjK80KATEomO0vx7RNDSh9JcxE5PiT3HLXFj1T6VKzDQbmTwDPd02upSCF83y2dQX/ YPpQ== X-Gm-Message-State: AOAM533SX8Rj1vYyaZCH+SZqptbZeHkx92deFzFIOongY3FczQ2MZok4 QWY1VW+pTxYUbZ/NbN7lhdU= X-Received: by 2002:a05:600c:3217:: with SMTP id r23mr6022499wmp.98.1618947651004; Tue, 20 Apr 2021 12:40:51 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id u2sm5487183wmm.5.2021.04.20.12.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 12:40:50 -0700 (PDT) Date: Tue, 20 Apr 2021 19:40:49 +0000 From: Wei Liu To: Michael Kelley Cc: "Andrea Parri (Microsoft)" , "linux-kernel@vger.kernel.org" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , "linux-hyperv@vger.kernel.org" Subject: Re: [PATCH v2] Drivers: hv: vmbus: Initialize unload_event statically Message-ID: <20210420194049.vsmax7bseebb324x@liuwe-devbox-debian-v2> References: <20210420014350.2002-1-parri.andrea@gmail.com> 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 Tue, Apr 20, 2021 at 04:50:56AM +0000, Michael Kelley wrote: > From: Andrea Parri (Microsoft) Sent: Monday, April 19, 2021 6:44 PM > > > > If a malicious or compromised Hyper-V sends a spurious message of type > > CHANNELMSG_UNLOAD_RESPONSE, the function vmbus_unload_response() will > > call complete() on an uninitialized event, and cause an oops. > > > > Reported-by: Michael Kelley > > Signed-off-by: Andrea Parri (Microsoft) > > --- > > Changes since v1[1]: > > - add inline comment in vmbus_unload_response() > > > > [1] https://lore.kernel.org/linux-hyperv/20210416143932.16512-1-parri.andrea@gmail.com/ > > > > drivers/hv/channel_mgmt.c | 7 ++++++- > > drivers/hv/connection.c | 2 ++ > > 2 files changed, 8 insertions(+), 1 deletion(-) > > > > Reviewed-by: Michael Kelley Applied to hyperv-next. Thanks.