From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9988C77B7C for ; Fri, 12 May 2023 00:23:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230307AbjELAXV (ORCPT ); Thu, 11 May 2023 20:23:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjELAXU (ORCPT ); Thu, 11 May 2023 20:23:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6357B1FE9 for ; Thu, 11 May 2023 17:23:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F3B57652B6 for ; Fri, 12 May 2023 00:23:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5547DC433D2; Fri, 12 May 2023 00:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683850998; bh=5L5SEdcmusEBTMOvKg2u4JT43OPbxYxrmeo7PfjWR3o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qcz0AikLWh5pOx39/bTEMa5BElYGdAJJI3X3lNd9wwQYGEvsdYnislO7m0ZgxWzJ1 I35FR1DU3ZJNfp4plSzsU3m3Ea4vpczgzJWhh7N/YtPkFScIcWr5iOzGQCibvLRK19 HohRpNl7akURUNFWVC/lcD/fDd0P3U1jSfkvnPzTChpuvtoPO/yxGZ+5do866TUQeO xtlDXeLwlh0s7okBey5314sXpj5ji+FynAuGiAc8or0EM2L3dpfibq4jtS9K/E1x+j Sbg9MzmfmJ0KmWSnhuEB7j/rsR+8WB5rsIUIsLY5sdGB7693fSrSAEQS3nH4zuli8z doRbz4nuvK0DA== Date: Thu, 11 May 2023 20:23:17 -0400 From: Sasha Levin To: Saurabh Sengar Cc: stable@vger.kernel.org Subject: Re: [PATCH 5.15] drm/hyperv: Don't overwrite dirt_needed value set by host Message-ID: References: <1683541802-14002-1-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1683541802-14002-1-git-send-email-ssengar@linux.microsoft.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, May 08, 2023 at 03:30:02AM -0700, Saurabh Sengar wrote: >[ Upstream commit 19b5e6659eaf537ebeac90ae30c7df0296fe5ab9 ] > >Existing code is causing a race condition where dirt_needed value is >already set by the host and gets overwritten with default value. Remove >this default setting of dirt_needed, to avoid overwriting the value >received in the channel callback set by vmbus_open. Removing this >setting also means the default value for dirt_needed is changed to false >as it's allocated by kzalloc which is similar to legacy hyperv_fb driver. > >Signed-off-by: Saurabh Sengar >Reviewed-by: Michael Kelley >Reviewed-by: Dexuan Cui Queued up, thanks! -- Thanks, Sasha