Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2223585pxb; Sun, 18 Apr 2021 23:46:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb8VUn8LXcNsQhPRHi9WNZwZ6veTEH26pxOURHYxiIJszPmfxlhVkMAwuDUZdzwdMTuYKF X-Received: by 2002:a17:906:f283:: with SMTP id gu3mr20030640ejb.91.1618814762691; Sun, 18 Apr 2021 23:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618814762; cv=none; d=google.com; s=arc-20160816; b=UXFCoIw59RHi1tAAMSCiBH4LArWhBJsjMQrTTVUYvyUdgwKrTF6t/kjfJGd2ZnvJH8 N1KBoaoLpF7GVKcQuCD01gteful672c1Q/oVK+GfhRnq8v/apN+vOKBx2CNaRFBCiQ8w KkoQVYe46UNaJLofLmzLNgsdzyNYhJW+Z94IfPKv0SG+DLVMzGom4qyvh0gb2c6K/4zN Kz+r8DCLfUrNw9nliJow9gy9AbJ6+b1DrVaeSPDUUMj6N1TLl17Rp6P5Z3pKFgN3viti zeRsdr2H+M37GszSF6CRjjDuL4XDzo/3qJLSMAg0Ps5R51+TIFpCqbHYa//aTVj5NuSK ot4A== 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=mOILbOxKaCLuuk29abCrHQQ55Mtc0Vk9dYwreZ0htoA=; b=wg5Ei4gD7i4zvVvTkr7f+jKO5vV7eyh7yytwHFvbyg79OXqHPI3L1fLgSGguEAJupJ qa3ouuqTuPYpwyYzVsmSBEPnhTQV2zPTpe6xAcUBVCyEAQ/wv3Du9LQDuNkcJRGx9gVw 0s60uAi7q1Z2aXEG69jVC2ZIKLcHDppfRGeow11YQbe0r0VtD83qblrjwgoGYtCdaohl BB2DdXvtsKGoqpdw6fnBkwTmsyFsV7aFYfi/9y3qam17F4Vop4VLoKd+KF7QqWPAVfHC AbSuL62MF5tvCUN0G/DH5I3ZsbRGwLho93mwTrAe/5s2gJJIhIH07V342C77je0U2snB ud8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nF4FIohE; 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 q1si11058622ejy.298.2021.04.18.23.45.39; Sun, 18 Apr 2021 23:46:02 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nF4FIohE; 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 S233360AbhDSGKN (ORCPT + 99 others); Mon, 19 Apr 2021 02:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbhDSGKN (ORCPT ); Mon, 19 Apr 2021 02:10:13 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2573C06174A; Sun, 18 Apr 2021 23:09:43 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id u20so12923263wmj.0; Sun, 18 Apr 2021 23:09:43 -0700 (PDT) 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=mOILbOxKaCLuuk29abCrHQQ55Mtc0Vk9dYwreZ0htoA=; b=nF4FIohEVZVLA3vapskqUWdf6YBKQbEjzNSA7d+WKCtHheH4vSUlbfNK6LVG6MhRzu oZQtcG9Bh7JIp+46Sonuk04NyP20d9jIhIwGYVfxgKBGRqTyLXJnh8x43nIhxPTzsFkg 4dY2pRDUsrERQnXLLgrMUIKqitdGDzBEc6HM3htUmd+6SLHDnr580bWp4bR4Hk64+i/Z SOVAX1zRvTCMpf1LSTnJ/4BRRQx3f4ygAxGFvHnG2bY0D3u0oZIWznsWhdfLQkLYRHUb B0LeQcm+XjX703ekYFPtFJCa6lgo3wNbQUZB1CRlVsKrwBfXn/HV+NID8nmm8aF103b0 5MRg== 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=mOILbOxKaCLuuk29abCrHQQ55Mtc0Vk9dYwreZ0htoA=; b=I3rSHTxsq1Vu9w5XZ1U16C4bTpBvkT7Ha/wOzppakdmDcpmxHKjcUPDq6NNg6wB6d2 Ds02JuTg3ALKi27JmNBTXm2E2ZZ55+tu2VFp71VKl7+GdUEqAEcDL+rHCIqmprATQoqE oVwDgOFaveuWVM/rvaUaex9DMwgTmGsAeFex2L3LMsdWcDVgWyEFambtQdlEssbwDK+a D4S4eTzNAiJ0T/VaBtnBZeZgwuviUY1n2JJm0zkslg9EMASwWAyf8mXsvymMaFmnxc3r H0XcwcKpsjLTe1RNhrqd7KK62kq/sTYonxPLytv/TMQ5kfzz9rmaU2pa/p9vzSD6+Ael 2geg== X-Gm-Message-State: AOAM533xsTYlXJ8SV0FcrFgzbT8ha4SceE6sw8vPZTPLDI2iU28DmXuh B8ChDjpBpPUcVzglVdbun+I= X-Received: by 2002:a1c:4b11:: with SMTP id y17mr19414512wma.72.1618812582359; Sun, 18 Apr 2021 23:09:42 -0700 (PDT) Received: from anparri ([151.76.104.230]) by smtp.gmail.com with ESMTPSA id g84sm14476803wmg.42.2021.04.18.23.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 23:09:42 -0700 (PDT) Date: Mon, 19 Apr 2021 08:09:34 +0200 From: Andrea Parri To: Michael Kelley Cc: "linux-kernel@vger.kernel.org" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , "linux-hyperv@vger.kernel.org" Subject: Re: [PATCH] Drivers: hv: vmbus: Initialize unload_event statically Message-ID: <20210419060934.GA1410@anparri> References: <20210416143932.16512-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 Fri, Apr 16, 2021 at 03:25:03PM +0000, Michael Kelley wrote: > From: Andrea Parri (Microsoft) Sent: Friday, April 16, 2021 7:40 AM > > > > 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. > > Please leave a comment somewhere in the code itself that describes this > scenario so that somebody in the future doesn't decide it's OK to "simplify" the > initialization of unload_event. :-) Yes, will do for v2. Thanks, Andrea