From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:57190 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbdIEGWm (ORCPT ); Tue, 5 Sep 2017 02:22:42 -0400 Date: Tue, 5 Sep 2017 08:22:43 +0200 From: Greg KH To: Stephan =?iso-8859-1?Q?M=FCller?= Cc: herbert@gondor.apana.org.au, stable@vger.kernel.org, stable-commits@vger.kernel.org Subject: Re: [PATCH v5] crypto: only call put_page on referenced and used pages Message-ID: <20170905062243.GA15083@kroah.com> References: <150451824677121@kroah.com> <20170904102747.GA30155@kroah.com> <4873667.m4DXuR1bCz@positron.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4873667.m4DXuR1bCz@positron.chronox.de> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Sep 04, 2017 at 11:17:33PM +0200, Stephan M�ller wrote: > Hi Greg, > > > Nope, this broke the build, sorry. If you want it in 4.4-stable, please > > provide a backported patch. > > > The issue is the missing page_ref_count function which used to be > atomic_read(&page->_count). > > I am not fully sure how to properly provide a patch for old kernels. Below > is a manually created patch that compiles and has the same logic. Please > let me know if that patch is not suitable. That works great, thanks. > Note, this patch is only for 4.4 and earlier. This doesn't apply to 3.18-stable, is it needed there? thanks, greg k-h