From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:49174 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754433AbdLNRq3 (ORCPT ); Thu, 14 Dec 2017 12:46:29 -0500 Date: Thu, 14 Dec 2017 18:46:32 +0100 From: Greg Kroah-Hartman To: Guenter Roeck Cc: stable@vger.kernel.org, Al Viro Subject: Re: [PATCH v4.4] more bio_map_user_iov() leak fixes Message-ID: <20171214174632.GF10610@kroah.com> References: <1513217907-29444-1-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1513217907-29444-1-git-send-email-linux@roeck-us.net> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Dec 13, 2017 at 06:18:27PM -0800, Guenter Roeck wrote: > From: Al Viro > > commit 2b04e8f6bbb196cab4b232af0f8d48ff2c7a8058 upstream. > > we need to take care of failure exit as well - pages already > in bio should be dropped by analogue of bio_unmap_pages(), > since their refcounts had been bumped only once per reference > in bio. > > Cc: stable@vger.kernel.org > Signed-off-by: Al Viro > Signed-off-by: Guenter Roeck > --- > Fixed conflicts. > Intended for v4.4.y. Does not apply to v3.18.y or older kernels. Many thanks for this, now applied. greg k-h