Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp663076pxj; Fri, 7 May 2021 17:54:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXzS/6jSYGP1vQMeTWeMIuvWsZxNKHNHR4wY0kf72XwrqyZr+QlbyYTS/ErX82NBIniRu4 X-Received: by 2002:a17:906:3544:: with SMTP id s4mr13355064eja.73.1620435261175; Fri, 07 May 2021 17:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620435261; cv=none; d=google.com; s=arc-20160816; b=qoWBiyQYgf5/S/BTUl4Zhro7F0jJOkANRggAbS94jCuUc+eV0B3LEM3g0kX/bF8n+i 2UXUEq1/YAEmIk5xWjU+KhAuOVIzKRXAQP3+rs9uwH9FKeaeU1Hul+3zoe1UK7H5pU1M J/ySgknAEppnnCAo0C0x+eHRI/F2yb/f9LwtKuO+W9lS1XjsHZdj7VK2ygSagrGUt0zi YrlY2oTS9AEbQS0EOWoLUMsYUsDQAa5o7LPsDH+2MOHv5vZXktQx38iAV4gnjvPcqR+0 aWq5ow4voIaCwH//5+HFTfC4SN7VvhhgZTDDJ5hOYzxSLVm9FK3vamUQU/14Tct9SZVr odnA== 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=n2i9lb1cDFHBhzulZlCy85ItUbUjzY2Rm3nibICrJL4=; b=lLh6Q01b59218K5qiT7jgIUAZ84N2TOoYEMgupGUUVKUS0O04sG1bWPXHxQiS7ilqY kMDYO8/y1FtGQAxj0s/NIr7C033pCrQl+8u0XA1h23qxgZFZ+rfreiCv3hn0Z3jxLx1m Vkg1PmAH1Z5vKteZPCUuXbiqhvOp8KfgkS7RI3VecErwwgrxiIxV/9VQlm9AnsgkWc6s s8yzUQHtKiJRHSA5P0npUdQy58u+6npIdLvoNnmo2dR2EixK3qA+quWczuH8nyu2Z19i BUowau7hTr0Z3GeSG+EJmCHqAKgg/Mgn8JM3hdYcqRQGM2iP6yMGbpeE4UTTZomTHzFK DQXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZV1zjl5d; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pk10si6257172ejb.359.2021.05.07.17.53.44; Fri, 07 May 2021 17:54:21 -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=@messagingengine.com header.s=fm2 header.b=ZV1zjl5d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230079AbhEHAm4 (ORCPT + 99 others); Fri, 7 May 2021 20:42:56 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:51323 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbhEHAm4 (ORCPT ); Fri, 7 May 2021 20:42:56 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 2A3295C00E5; Fri, 7 May 2021 20:41:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 07 May 2021 20:41:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=n2i9lb 1cDFHBhzulZlCy85ItUbUjzY2Rm3nibICrJL4=; b=ZV1zjl5dyQ4KgK80tuv4bQ EtTPysRfSZV1CFCyBHVdde2W53NrWG/RvNK4ZDBMoc+Y4fadZYGedvWbzUnyID4w K0d/SKLz/dfDGquCfTxQXNFAiCucDoq1cTTkvYWHUnV0d3gnQte38vw+/F+VVapD v14uO58mYnIt93XmaT3h56IHwlN06L3OasSh9+X2Qwfo51pfINqmpt2PnyY266uP vfzM2ECuskTi1z5DlqXadHQF91hjK0wvQE+rpGwpjV46iVoGnvnPewWgbOSADmJe DbTVRkgt8NxGblffxjjy6YlvIpVF0cl14DChipEeTTb6mfy7m41nh6922gfga/oQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdegfedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpeetveff iefghfekhffggeeffffhgeevieektedthfehveeiheeiiedtudegfeetffenucfkpheple durdeijedrjeelrdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtg homh X-ME-Proxy: Received: from mail-itl (ip5b434f04.dynamic.kabel-deutschland.de [91.67.79.4]) by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 May 2021 20:41:53 -0400 (EDT) Date: Sat, 8 May 2021 02:41:50 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Luca Fancellu Cc: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Boris Ostrovsky , Stefano Stabellini , stable@vger.kernel.org Subject: Re: [PATCH] xen/gntdev: fix gntdev_mmap() error exit path Message-ID: References: <20210423054038.26696-1-jgross@suse.com> <467B8109-C829-4755-8398-196E50090898@arm.com> <9cb9bd6c-8185-9741-31b9-8f6baf3848a3@suse.com> <92E0F915-499C-4471-B0C9-336494C5E31D@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pOlv8fsOYh8hH7v+" Content-Disposition: inline In-Reply-To: <92E0F915-499C-4471-B0C9-336494C5E31D@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pOlv8fsOYh8hH7v+ Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Sat, 8 May 2021 02:41:50 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Luca Fancellu Cc: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Boris Ostrovsky , Stefano Stabellini , stable@vger.kernel.org Subject: Re: [PATCH] xen/gntdev: fix gntdev_mmap() error exit path On Fri, Apr 23, 2021 at 08:04:57AM +0100, Luca Fancellu wrote: > > On 23 Apr 2021, at 08:00, Juergen Gross wrote: > > On 23.04.21 08:55, Luca Fancellu wrote: > >>> On 23 Apr 2021, at 06:40, Juergen Gross wrote: > >>>=20 > >>> Commit d3eeb1d77c5d0af ("xen/gntdev: use mmu_interval_notifier_insert= ") > >>> introduced an error in gntdev_mmap(): in case the call of > >>> mmu_interval_notifier_insert_locked() fails the exit path should not > >>> call mmu_interval_notifier_remove(), as this might result in NULL > >>> dereferences. > >>>=20 > >>> One reason for failure is e.g. a signal pending for the running > >>> process. > >>>=20 > >>> Fixes: d3eeb1d77c5d0af ("xen/gntdev: use mmu_interval_notifier_insert= ") > >>> Cc: stable@vger.kernel.org > >>> Reported-by: Marek Marczykowski-G=C3=B3recki > >>> Tested-by: Marek Marczykowski-G=C3=B3recki > >>> Signed-off-by: Juergen Gross (...) > Right, thanks, seems good to me. >=20 > Reviewed-by: Luca Fancellu Can somebody ack this fix please?=20 --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab --pOlv8fsOYh8hH7v+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmCV3k4ACgkQ24/THMrX 1yxJTwf+MztgRk40NrBaqMG3/vvS/xaYpsHaX6aDvKJn6O+2s6bkhNejJURDM7QW B048xcn16B4UTKoIr/6BuToivQKKaQyuX3Da8XstMYDJc6H70Eisf6o2YX33EvZS k0F+R6dnCKHb9DVWltZs4onpAAUlnKeaYIpu+dgsCISX9UoOo7ogmNANyLtZEYz+ BvzFd5vWrF5I6KOjVBxMSF0ENGi9y+YYelKfCYYe0E6DM1059WmxAuzRlc+PJv6j 9qGS46t0JkbVlIgV7O36Lw7/m25OvoxLBBb/ImH5yBo+uNMmCBUavR75U/9gInE3 RN3X65Zqr8gCKtldPPUG5Ro2bF1AcQ== =FcB0 -----END PGP SIGNATURE----- --pOlv8fsOYh8hH7v+--